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


Performing analysis on: 4FGL_J0539.9-2839_daily_bin1441
RA = 84.9952, Dec = -28.6585
tmin = 612835201, tmax = 613094401
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='713137', job_status='RUN', time_executed='2021-08-23 14:51:08.393992', time_epoch_executed='1629755468.39' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1441'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/713137

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/713137/ft1_4FGL_J0539.9-2839_daily_bin1441.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/713137/ft2_4FGL_J0539.9-2839_daily_bin1441.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/713137/ft1_4FGL_J0539.9-2839_daily_bin1441.fits outfile=/scratch/kocevski/713137/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1441.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=612835201.0 tmax=613094401.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.08
user 2.69
sys 1.33

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/713137/ft2_4FGL_J0539.9-2839_daily_bin1441.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/713137/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1441.fits evtable="EVENTS" outfile="/scratch/kocevski/713137/ft1_filtered_4FGL_J0539.9-2839_daily_bin1441.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.63
user 0.34
sys 1.27

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/713137/ft1_filtered_4FGL_J0539.9-2839_daily_bin1441.fits" evtable="EVENTS" scfile=/scratch/kocevski/713137/ft2_4FGL_J0539.9-2839_daily_bin1441.fits sctable="SC_DATA" outfile=/scratch/kocevski/713137/ltcube_612835201_613094401_4FGL_J0539.9-2839_daily_bin1441.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/713137/ft2_4FGL_J0539.9-2839_daily_bin1441.fits
.....................!
real 15.42
user 13.87
sys 1.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/713137/ft1_filtered_4FGL_J0539.9-2839_daily_bin1441.fits evtable="EVENTS" scfile=/scratch/kocevski/713137/ft2_4FGL_J0539.9-2839_daily_bin1441.fits sctable="SC_DATA" expcube=/scratch/kocevski/713137/ltcube_612835201_613094401_4FGL_J0539.9-2839_daily_bin1441.fits outfile=/scratch/kocevski/713137/expmap_612835201_613094401_4FGL_J0539.9-2839_daily_bin1441.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/713137/ltcube_612835201_613094401_4FGL_J0539.9-2839_daily_bin1441.fits
.....................!
real 193.55
user 187.19
sys 5.96

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/713137/ft1_filtered_4FGL_J0539.9-2839_daily_bin1441.fits scfile=/scratch/kocevski/713137/ft2_4FGL_J0539.9-2839_daily_bin1441.fits outfile=/scratch/kocevski/713137/cmap_612835201_613094401_4FGL_J0539.9-2839_daily_bin1441.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.65
user 0.38
sys 1.24

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/713137/ft1_filtered_4FGL_J0539.9-2839_daily_bin1441.fits scfile=/scratch/kocevski/713137/ft2_4FGL_J0539.9-2839_daily_bin1441.fits outfile=/scratch/kocevski/713137/cmap_HighResolution_612835201_613094401_4FGL_J0539.9-2839_daily_bin1441.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.66
user 0.38
sys 1.24

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/713137/ft1_filtered_4FGL_J0539.9-2839_daily_bin1441.fits evtable="EVENTS" scfile=/scratch/kocevski/713137/ft2_4FGL_J0539.9-2839_daily_bin1441.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/713137/Model_4FGL_J0539.9-2839_daily_bin1441.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/713137/ft1_filtered_4FGL_J0539.9-2839_daily_bin1441.fits.....................!
real 90.83
user 87.98
sys 2.58

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    116.36       1.0000         .10000E-03   10000.    
     2 'norm      '    .21876E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.796       1.0000         .10000E-03   10000.    
     4 'norm      '    1.3133       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .24609       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.8428       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .81887E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.7525       1.0000         .10000E-03   10000.    
    16 'norm      '    2.0309       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .19810E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    49.036       1.0000         .10000E-03   10000.    
    19 'Prefactor '    81.147       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.4450       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10266E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.6542       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.2872       1.0000         .10000E-03   10000.    
    26 'norm      '    15.271       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2228       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .99983       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=   7545.650     FROM MIGRAD    STATUS=CONVERGED    696 CALLS     3575 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          116.41        123.89        .30961E-05   -.65022E-05
   2  norm          .10001E-03    2.2968        .87520E-06** at limit **
   3  Prefactor     12.804        7.6808        .16001E-06   -.13355E-03
   4  norm          1.3134        .28821        .14583E-07   -.60724E-03
   5  Prefactor     .10000E-03    32.623        .86013E-06** at limit **
   6  norm          .10000E-03    39.202        .13216E-05** at limit **
   7  Prefactor     .10000E-03    .75315        .35552E-08** at limit **
   8  norm          .24786        1.2189        .29549E-07    .40064E-03
   9  Prefactor     .10000E-03    11.898       -.91473E-07** at limit **
  10  Prefactor     .10000E-03    1.3078        .93304E-08** at limit **
  11  Prefactor     .10000E-03    2.6484        .48397E-08** at limit **
  12  Prefactor     .10000E-03    5.0994        .49377E-07** at limit **
  13  norm          4.8443        4.3622        .22132E-06   -.14940E-04
  14  Prefactor     .10001E-03    78.849       -.68583E-05** at limit **
  15  norm          5.7535        2.8521        .10580E-06   -.43674E-04
  16  norm          2.0358        13.109       -.53837E-06   -.28911E-04
  17  Prefactor     .10001E-03    5.8973        .12881E-05** at limit **
  18  Prefactor     49.102        91.598        .15521E-05    .15976E-04
  19  Prefactor     81.144        52.171        .62940E-07   -.42440E-05
  20  Prefactor     7.4227        31.326       -.14086E-05    .32298E-05
  21  Prefactor     .10000E-03    48.153       -.18560E-05** at limit **
  22  norm          .10000E-03    3.3769        .37207E-06** at limit **
  23  Prefactor     .10000E-03    24.284        .26434E-06** at limit **
  24  Prefactor     5.6541        5.4428        .12487E-06   -.30834E-04
  25  Prefactor     3.2885        32.512        .77805E-06    .14983E-04
  26  norm          15.271        21.546        .32422E-06   -.11847E-05
  27  Normalizat    1.2228        .21914       -.13164E-05   -.60792E-04
  28  Prefactor     .99979        .15592       -.78625E-06   -.65969E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 116.411
  norm       = 0.000100005
  Prefactor  = 12.8037
  norm       = 1.3134
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.247864
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.84434
  Prefactor  = 0.000100011
  norm       = 5.75355
  norm       = 2.03579
  Prefactor  = 0.000100013
  Prefactor  = 49.1018
  Prefactor  = 81.1442
  Prefactor  = 7.42275
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.65408
  Prefactor  = 3.28853
  norm       = 15.2714
  Normalizat = 1.2228
  Prefactor  = 0.999789
 **********
 **   18 **HESSE 
 **********

 FCN=   7545.650     FROM HESSE     STATUS=OK           525 CALLS     4100 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          116.41        123.21        .18649E-03   -1.3546    
   2  norm          .10001E-03    19.482        .21385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.804        7.7041        .11198E-03   -1.4992    
   4  norm          1.3134        .28842        .21051E-04   -1.5479    
   5  Prefactor     .10000E-03    32.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    39.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .75554        .73587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .24786        2.4619        .17771E-02   -1.5608    
   9  Prefactor     .10000E-03    11.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.3114        .96991E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.6498        .13805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.1041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.8443        4.3442        .16134E-03   -1.5268    
  14  Prefactor     .10001E-03    91.831        .56140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.7535        2.8802        .95735E-04   -1.5228    
  16  norm          2.0358        13.126        .14514E-02   -1.5423    
  17  Prefactor     .10001E-03    16.853        .32947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     49.102        91.982        .57265E-04   -1.4305    
  19  Prefactor     81.144        52.204        .44586E-04   -1.3904    
  20  Prefactor     7.4227        30.979        .14699E-03   -1.5163    
  21  Prefactor     .10000E-03    47.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.4128        .15579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    24.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.6541        5.4291        .16893E-03   -1.5232    
  25  Prefactor     3.2885        32.194        .22332E-03   -1.5345    
  26  norm          15.271        21.564        .10249E-03   -1.4926    
  27  Normalizat    1.2228        .26058        .29770E-03   -.85901    
  28  Prefactor     .99979        .18363        .24618E-03   -.92737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60677e-09
Minuit parameter uncertainties:
  1  123.48
  2  0.000626133
  3  7.70469
  4  0.288425
  5  2.75692e-05
  6  9.25936e-06
  7  1.62408e-06
  8  1.56209
  9  1.14158e-05
  10  2.05469e-06
  11  2.87586e-06
  12  9.33723e-07
  13  4.34445
  14  0.00203397
  15  2.88027
  16  10.3417
  17  0.000943359
  18  92.2496
  19  52.2331
  20  30.355
  21  0.000194833
  22  2.50579e-06
  23  2.3957e-05
  24  5.42961
  25  20.5928
  26  21.5746
  27  0.260859
  28  0.183748
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  5.754e+00  2.880e+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.998e-01  1.837e-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.223e+00  2.609e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.97
Ra Dec: 84.995 -28.659
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 1.21e-07 +/- 6.06e-08
Energy Flux (Fixed Index): 2.85e-05 +/- 1.43e-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) = 7545.25228582
delta logL = 0.397796204698

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7545.25148958
delta logL = 0.398592440347

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5894       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2415       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1727       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0290       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=   7545.251     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      234 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5894        34.181        .46973E-02    .14426E-02
   2  alpha         3.2415        3.9869        .37341        .10588E-03
   3  Normalizat    1.1727        .92255E-01    .68496E-01    .57456E-05
   4  Prefactor     1.0290        .75470E-01    .41342E-01    .17630E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.58939
  alpha      = 3.24149
  Normalizat = 1.17265
  Prefactor  = 1.02896
 **********
 **   18 **HESSE 
 **********

 FCN=   7545.251     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5894        3.2349        .78514E-04   -1.5279    
   2  alpha         3.2415        .74770        .15709E-01    .30113    
   3  Normalizat    1.1727        .24643        .30305E-03   -.87452    
   4  Prefactor     1.0290        .18147        .24316E-03   -.91770    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55658e-10
Minuit parameter uncertainties:
  1  3.23498
  2  0.760495
  3  0.24667
  4  0.181575
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/713137': 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) = 7545.25148958
delta logL = 0.39859244076

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  4.589e+00  3.235e+00  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  3.241e+00  7.605e-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.029e+00  1.816e-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.173e+00  2.467e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.94
Ra Dec: 84.995 -28.659
Photon Index (Free Index): 3.24 +/- 0.76
Photon Flux (Free Index): 1.55e-07 +/- 7.52e-08
Energy Flux (Free Index): 2.84e-05 +/- 1.34e-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/713137/cmap_HighResolution_612835201_613094401_4FGL_J0539.9-2839_daily_bin1441.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.21e-07', energy_flux2='2.84e-05', photon_flux_error='6.06e-08', dlogl='3.99e-01', energy_flux='2.85e-05', photon_flux2='1.55e-07', job_status='DONE', time_completed='2021-08-23 15:04:35.946091', photon_index_error2='0.76', photon_index2='3.24', ts='5.97', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.34e-05', EG='1.22', time_epoch_completed='1629756275.95', return_code='0', job_id='713137', GAL2='1.03', EG2='1.17', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='7.52e-08', ts2='6.94', photon_index='2.68' WHERE bin_id='1441' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 15:04:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 713137: <4FGL_J0539.9-2839_daily_bin1441> in cluster <slac> Done

Job <4FGL_J0539.9-2839_daily_bin1441> 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) <bullet0067>, 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:04:36 2021
Results reported at Mon Aug 23 15:04:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin1441 84.9952 -28.6585 612835201 613094401 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 :                                   823.46 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             316.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            857 sec.

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

