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


Performing analysis on: 4FGL_J0539.9-2839_daily_bin1021
RA = 84.9952, Dec = -28.6585
tmin = 503971201, tmax = 504230401
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='710109', job_status='RUN', time_executed='2021-08-23 14:40:57.596636', time_epoch_executed='1629754857.6' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1021'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/710109

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/710109/ft1_4FGL_J0539.9-2839_daily_bin1021.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/710109/ft2_4FGL_J0539.9-2839_daily_bin1021.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/710109/ft1_4FGL_J0539.9-2839_daily_bin1021.fits outfile=/scratch/kocevski/710109/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1021.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=503971201.0 tmax=504230401.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.36
user 3.82
sys 0.50

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/710109/ft1_filtered_4FGL_J0539.9-2839_daily_bin1021.fits" evtable="EVENTS" scfile=/scratch/kocevski/710109/ft2_4FGL_J0539.9-2839_daily_bin1021.fits sctable="SC_DATA" outfile=/scratch/kocevski/710109/ltcube_503971201_504230401_4FGL_J0539.9-2839_daily_bin1021.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/710109/ft2_4FGL_J0539.9-2839_daily_bin1021.fits
.....................!
real 12.15
user 11.48
sys 0.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/710109/ft1_filtered_4FGL_J0539.9-2839_daily_bin1021.fits evtable="EVENTS" scfile=/scratch/kocevski/710109/ft2_4FGL_J0539.9-2839_daily_bin1021.fits sctable="SC_DATA" expcube=/scratch/kocevski/710109/ltcube_503971201_504230401_4FGL_J0539.9-2839_daily_bin1021.fits outfile=/scratch/kocevski/710109/expmap_503971201_504230401_4FGL_J0539.9-2839_daily_bin1021.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/710109/ltcube_503971201_504230401_4FGL_J0539.9-2839_daily_bin1021.fits
.....................!
real 190.86
user 185.71
sys 4.79

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/710109/ft1_filtered_4FGL_J0539.9-2839_daily_bin1021.fits scfile=/scratch/kocevski/710109/ft2_4FGL_J0539.9-2839_daily_bin1021.fits outfile=/scratch/kocevski/710109/cmap_503971201_504230401_4FGL_J0539.9-2839_daily_bin1021.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.79
user 0.36
sys 0.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/710109/ft1_filtered_4FGL_J0539.9-2839_daily_bin1021.fits scfile=/scratch/kocevski/710109/ft2_4FGL_J0539.9-2839_daily_bin1021.fits outfile=/scratch/kocevski/710109/cmap_HighResolution_503971201_504230401_4FGL_J0539.9-2839_daily_bin1021.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.82
user 0.36
sys 0.43

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/710109/ft1_filtered_4FGL_J0539.9-2839_daily_bin1021.fits evtable="EVENTS" scfile=/scratch/kocevski/710109/ft2_4FGL_J0539.9-2839_daily_bin1021.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/710109/Model_4FGL_J0539.9-2839_daily_bin1021.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/710109/ft1_filtered_4FGL_J0539.9-2839_daily_bin1021.fits.....................!
real 62.03
user 60.31
sys 1.54

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    2.2936       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2441       1.0000         .10000E-03   10000.    
     4 'norm      '    .22075       1.0000         .10000E-03   10000.    
     5 'Prefactor '    81.670       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.3946       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12114E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .25678E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11286E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .29167E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    58.010       1.0000         .10000E-03   10000.    
    22 'norm      '    .20467E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.603       1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.936       1.0000         .10000E-03   10000.    
    25 'Prefactor '    20.665       1.0000         .10000E-03   10000.    
    26 'norm      '    45.804       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1529       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .82605       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=   4751.282     FROM MIGRAD    STATUS=CONVERGED    711 CALLS     3574 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    88.598       -.17998E-06** at limit **
   2  norm          2.2932        5.2784       -.76934E-06   -.28991E-04
   3  Prefactor     5.2431        7.1782        .87872E-07    .13350E-05
   4  norm          .22076        .23374        .35163E-07   -.15057E-03
   5  Prefactor     81.686        98.690       -.60252E-07    .10962E-04
   6  norm          .10000E-03    61.200       -.51301E-07** at limit **
   7  Prefactor     .10000E-03    4.0834       -.39328E-07** at limit **
   8  norm          8.3941        3.8596        .12798E-06    .73807E-04
   9  Prefactor     .10000E-03    14.085       -.30124E-07** at limit **
  10  Prefactor     .10000E-03    6.3175        .11918E-06** at limit **
  11  Prefactor     .10000E-03    13.030       -.44921E-06** at limit **
  12  Prefactor     .10000E-03    5.4151       -.34770E-07** at limit **
  13  norm          .10000E-03    4.0682        .10095E-06** at limit **
  14  Prefactor     .10000E-03    140.81       -.42895E-05** at limit **
  15  norm          .10000E-03    1.6167       -.88187E-07** at limit **
  16  norm          .10000E-03    5.3327       -.34222E-07** at limit **
  17  Prefactor     .10000E-03    5.0892       -.10458E-06** at limit **
  18  Prefactor     .10000E-03    90.858       -.12919E-06** at limit **
  19  Prefactor     .10000E-03    98.165        .72050E-06** at limit **
  20  Prefactor     .10000E-03    106.57        .64885E-05** at limit **
  21  Prefactor     58.034        68.896       -.86856E-06   -.32610E-04
  22  norm          .10000E-03    47.629       -.27023E-05** at limit **
  23  Prefactor     25.618        20.038       -.49734E-06   -.81832E-04
  24  Prefactor     11.952        8.5121       -.11181E-05   -.26268E-03
  25  Prefactor     20.674        36.405       -.77960E-07   -.46630E-04
  26  norm          45.800        35.932        .14238E-07   -.22893E-04
  27  Normalizat    1.1530        .25110        .94026E-06   -.92426E-04
  28  Prefactor     .82597        .17035       -.62652E-06   -.29270E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.29322
  Prefactor  = 5.24307
  norm       = 0.220756
  Prefactor  = 81.6859
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.39415
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 58.0339
  norm       = 0.000100002
  Prefactor  = 25.6184
  Prefactor  = 11.9524
  Prefactor  = 20.6736
  norm       = 45.7996
  Normalizat = 1.15304
  Prefactor  = 0.825973
 **********
 **   18 **HESSE 
 **********

 FCN=   4751.282     FROM HESSE     STATUS=OK           517 CALLS     4091 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    88.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.2932        5.2973        .11181E-02   -1.5405    
   3  Prefactor     5.2431        7.1810        .17553E-03   -1.5250    
   4  norm          .22076        .22206        .32690E-03   -1.5614    
   5  Prefactor     81.686        98.605        .44445E-04   -1.3898    
   6  norm          .10000E-03    61.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.1784        .27145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.3941        3.8275        .84896E-04   -1.5128    
   9  Prefactor     .10000E-03    14.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.556        .31975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.4187        .15663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    16.712        .24829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    140.93        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.4438        .16182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.3429        .15546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.1325        .15177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    91.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    99.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    103.26        .21402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     58.034        68.862        .52673E-04   -1.4183    
  22  norm          .10000E-03    48.217        .37643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     25.618        19.974        .79168E-04   -1.4695    
  24  Prefactor     11.952        8.3243        .11595E-03   -1.5016    
  25  Prefactor     20.674        36.309        .88110E-04   -1.4798    
  26  norm          45.800        35.924        .59242E-04   -1.4353    
  27  Normalizat    1.1530        .27909        .27699E-03   -.88067    
  28  Prefactor     .82597        .19785        .23610E-03   -.98778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37817e-09
Minuit parameter uncertainties:
  1  0.000308128
  2  5.29833
  3  7.18217
  4  0.222064
  5  98.8032
  6  2.14493e-06
  7  2.92681e-06
  8  3.8276
  9  2.15452e-05
  10  0.000475015
  11  5.30231e-05
  12  4.2114e-06
  13  0.000246284
  14  0.000358216
  15  4.27383e-06
  16  3.73366e-07
  17  8.56632e-06
  18  0.00030974
  19  4.92468e-05
  20  0.00127745
  21  68.9565
  22  0.000555457
  23  19.9788
  24  8.3251
  25  36.3482
  26  35.9408
  27  0.279454
  28  0.19802
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  1.000e-04  4.274e-06  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:  8.260e-01  1.980e-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.153e+00  2.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 84.995 -28.659
Photon Flux Upper Limit: 1.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.31e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/710109/likelihoodResults_503971201_504230401_4FGL_J0539.9-2839_daily_bin1021.txt

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) = 4751.28258319
delta logL = -0.000566123425415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4751.28201864
delta logL = -1.56642727234e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .36464E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8039       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1538       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82551       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=   4750.029     FROM MIGRAD    STATUS=CONVERGED    155 CALLS      319 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .65696        .46709        .80999E-02   -.13394E-04
   2  alpha         5.0000        .84251        .41542    ** at limit **
   3  Normalizat    .95961        .24465        .67895E-01   -.76226E-05
   4  Prefactor     .91997        .17237        .44048E-01    .67055E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.656965
  alpha      = 5
  Normalizat = 0.959611
  Prefactor  = 0.919972
 **********
 **   18 **HESSE 
 **********

 FCN=   4750.029     FROM HESSE     STATUS=OK            31 CALLS      350 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .65696        .47344        .36565E-04   -1.5870    
   2  alpha         5.0000        3.1185        .55396E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .95961        .28849        .30044E-03   -.94396    
   4  Prefactor     .91997        .20487        .22513E-03   -.95447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.80596e-11
Minuit parameter uncertainties:
  1  0.473447
  2  8.80923e-06
  3  0.288958
  4  0.205043
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/710109': 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) = 4750.02891842
delta logL = 1.25309865161

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  9.200e-01  2.050e-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.596e-01  2.890e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.11
Ra Dec: 84.995 -28.659
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.35e-07 +/- 9.65e-08
Energy Flux (Free Index): 1.82e-05 +/- 1.31e-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/710109/cmap_HighResolution_503971201_504230401_4FGL_J0539.9-2839_daily_bin1021.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.31e-05', comment='SUCCESS', energy_flux2='1.82e-05', dlogl='1.25e+00', photon_flux2='1.35e-07', job_status='DONE', time_completed='2021-08-23 14:52:16.583520', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='1.31e-05', EG='1.15', time_epoch_completed='1629755536.58', return_code='0', job_id='710109', GAL2='0.92', EG2='0.96', return_code2='0', photon_flux_error2='9.65e-08', ts2='3.11', photon_index='2.68' WHERE bin_id='1021' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 14:52:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 710109: <4FGL_J0539.9-2839_daily_bin1021> in cluster <slac> Done

Job <4FGL_J0539.9-2839_daily_bin1021> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 23 14:40:28 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 14:40:29 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:29 2021
Terminated at Mon Aug 23 14:52:17 2021
Results reported at Mon Aug 23 14:52:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin1021 84.9952 -28.6585 503971201 504230401 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 :                                   681.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            709 sec.

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

