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


Performing analysis on: 4FGL_J0539.9-2839_daily_bin1082
RA = 84.9952, Dec = -28.6585
tmin = 519782401, tmax = 520041601
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='710196', job_status='RUN', time_executed='2021-08-23 14:41:25.343598', time_epoch_executed='1629754885.34' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1082'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/710196

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/710196/ft1_4FGL_J0539.9-2839_daily_bin1082.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/710196/ft2_4FGL_J0539.9-2839_daily_bin1082.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/710196/ft1_4FGL_J0539.9-2839_daily_bin1082.fits outfile=/scratch/kocevski/710196/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1082.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=519782401.0 tmax=520041601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.78
user 3.28
sys 0.47

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/710196/ft2_4FGL_J0539.9-2839_daily_bin1082.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/710196/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1082.fits evtable="EVENTS" outfile="/scratch/kocevski/710196/ft1_filtered_4FGL_J0539.9-2839_daily_bin1082.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.78
user 0.36
sys 0.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/710196/ft1_filtered_4FGL_J0539.9-2839_daily_bin1082.fits" evtable="EVENTS" scfile=/scratch/kocevski/710196/ft2_4FGL_J0539.9-2839_daily_bin1082.fits sctable="SC_DATA" outfile=/scratch/kocevski/710196/ltcube_519782401_520041601_4FGL_J0539.9-2839_daily_bin1082.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/710196/ft2_4FGL_J0539.9-2839_daily_bin1082.fits
.....................!
real 18.81
user 18.15
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/710196/ft1_filtered_4FGL_J0539.9-2839_daily_bin1082.fits evtable="EVENTS" scfile=/scratch/kocevski/710196/ft2_4FGL_J0539.9-2839_daily_bin1082.fits sctable="SC_DATA" expcube=/scratch/kocevski/710196/ltcube_519782401_520041601_4FGL_J0539.9-2839_daily_bin1082.fits outfile=/scratch/kocevski/710196/expmap_519782401_520041601_4FGL_J0539.9-2839_daily_bin1082.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/710196/ltcube_519782401_520041601_4FGL_J0539.9-2839_daily_bin1082.fits
.....................!
real 191.77
user 186.16
sys 5.17

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/710196/ft1_filtered_4FGL_J0539.9-2839_daily_bin1082.fits scfile=/scratch/kocevski/710196/ft2_4FGL_J0539.9-2839_daily_bin1082.fits outfile=/scratch/kocevski/710196/cmap_519782401_520041601_4FGL_J0539.9-2839_daily_bin1082.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.80
user 0.39
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/710196/ft1_filtered_4FGL_J0539.9-2839_daily_bin1082.fits scfile=/scratch/kocevski/710196/ft2_4FGL_J0539.9-2839_daily_bin1082.fits outfile=/scratch/kocevski/710196/cmap_HighResolution_519782401_520041601_4FGL_J0539.9-2839_daily_bin1082.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.81
user 0.40
sys 0.40

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/710196/ft1_filtered_4FGL_J0539.9-2839_daily_bin1082.fits evtable="EVENTS" scfile=/scratch/kocevski/710196/ft2_4FGL_J0539.9-2839_daily_bin1082.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/710196/Model_4FGL_J0539.9-2839_daily_bin1082.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/710196/ft1_filtered_4FGL_J0539.9-2839_daily_bin1082.fits.....................!
real 97.45
user 95.57
sys 1.62

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.8372       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .25394       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4362       1.0000         .10000E-03   10000.    
     8 'norm      '    1.8002       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9749       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.130       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .30074E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    6.8337       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.2081       1.0000         .10000E-03   10000.    
    16 'norm      '    1.7720       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.3764       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.8768       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.467       1.0000         .10000E-03   10000.    
    22 'norm      '    .10218E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.719       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .75201       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0793       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=   8353.258     FROM MIGRAD    STATUS=CONVERGED    729 CALLS     3067 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    252.49       -.67227E-05** at limit **
   2  norm          5.8373        3.0736        .77776E-07    .74243E-03
   3  Prefactor     .10000E-03    2.1206       -.11800E-06** at limit **
   4  norm          .25395        .15481       -.19615E-07   -.12545E-03
   5  Prefactor     .10000E-03    13.950       -.20219E-06** at limit **
   6  norm          .10000E-03    42.691        .11167E-05** at limit **
   7  Prefactor     3.4366        3.2141       -.84788E-06    .32135E-03
   8  norm          1.7999        1.4526        .28083E-07    .12007E-03
   9  Prefactor     .10000E-03    21.923       -.23227E-06** at limit **
  10  Prefactor     2.9738        5.6437       -.21412E-06   -.84987E-04
  11  Prefactor     16.129        11.490        .27293E-06    .15237E-03
  12  Prefactor     .10000E-03    101.99        .48870E-04** at limit **
  13  norm          6.8571        4.6232        .20086E-06   -.47049E-03
  14  Prefactor     .10000E-03    8.9993        .34596E-06** at limit **
  15  norm          9.2077        2.3502       -.20816E-07    .31325E-03
  16  norm          1.7717        6.0654       -.58572E-06    .14501E-04
  17  Prefactor     6.3768        5.4761        .26724E-06    .83182E-03
  18  Prefactor     .10000E-03    70.262       -.50872E-05** at limit **
  19  Prefactor     9.8703        24.455        .32412E-07    .40549E-04
  20  Prefactor     .10000E-03    12.194        .20262E-07** at limit **
  21  Prefactor     14.473        25.775       -.56888E-06   -.43649E-04
  22  norm          .10000E-03    4.2693        .97003E-06** at limit **
  23  Prefactor     .10000E-03    21.399        .23990E-06** at limit **
  24  Prefactor     13.719        6.3807       -.21554E-06   -.14405E-03
  25  Prefactor     .10000E-03    17.313        .22570E-06** at limit **
  26  norm          .10000E-03    7.3065       -.24181E-08** at limit **
  27  Normalizat    .75186        .17344        .15815E-06    .43297E-03
  28  Prefactor     1.0794        .13100        .69181E-06    .77056E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 5.83727
  Prefactor  = 0.0001
  norm       = 0.253951
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.43662
  norm       = 1.79988
  Prefactor  = 0.0001
  Prefactor  = 2.97381
  Prefactor  = 16.1293
  Prefactor  = 0.000100001
  norm       = 6.85708
  Prefactor  = 0.0001
  norm       = 9.20768
  norm       = 1.77174
  Prefactor  = 6.37681
  Prefactor  = 0.000100001
  Prefactor  = 9.87029
  Prefactor  = 0.0001
  Prefactor  = 14.4728
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 13.7186
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.751857
  Prefactor  = 1.07944
 **********
 **   18 **HESSE 
 **********

 FCN=   8353.258     FROM HESSE     STATUS=OK           531 CALLS     3598 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    252.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.8373        3.0779        .11101E-03   -1.5225    
   3  Prefactor     .10000E-03    2.1648        .12990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .25395        .15086        .26732E-03   -1.5607    
   5  Prefactor     .10000E-03    13.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    42.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.4366        3.2123        .72774E-03   -1.5337    
   8  norm          1.7999        1.4395        .93715E-04   -1.5440    
   9  Prefactor     .10000E-03    22.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.9738        5.6018        .23540E-03   -1.5363    
  11  Prefactor     16.129        11.429        .99723E-04   -1.4905    
  12  Prefactor     .10000E-03    9.8324        .71778E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.8571        4.7740        .13020E-03   -1.5184    
  14  Prefactor     .10000E-03    9.0077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.2077        2.3644        .66080E-04   -1.5101    
  16  norm          1.7717        6.0375        .31455E-03   -1.5442    
  17  Prefactor     6.3768        5.4750        .15895E-03   -1.5203    
  18  Prefactor     .10000E-03    70.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.8703        24.438        .12751E-03   -1.5080    
  20  Prefactor     .10000E-03    12.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.473        25.769        .10530E-03   -1.4947    
  22  norm          .10000E-03    4.3856        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    21.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.719        6.3612        .10814E-03   -1.4967    
  25  Prefactor     .10000E-03    17.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    7.3171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .75186        .19891        .30788E-03   -1.0188    
  28  Prefactor     1.0794        .15088        .20952E-03   -.90126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37757e-09
Minuit parameter uncertainties:
  1  0.000176433
  2  3.07798
  3  1.82122e-05
  4  0.150862
  5  1.71695e-06
  6  4.34246e-05
  7  3.21245
  8  1.43955
  9  5.83061e-05
  10  5.60277
  11  11.4304
  12  0.000202446
  13  4.77431
  14  7.89176e-05
  15  2.36447
  16  6.03958
  17  5.4754
  18  0.000411578
  19  24.4625
  20  8.79314e-06
  21  25.7888
  22  0.000153271
  23  0.000164943
  24  6.36155
  25  5.31955e-05
  26  9.39588e-06
  27  0.199106
  28  0.150944
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  9.208e+00  2.364e+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.079e+00  1.509e-01  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  7.519e-01  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 32.78
Ra Dec: 84.995 -28.659
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 1.94e-07 +/- 4.97e-08
Energy Flux (Fixed Index): 4.56e-05 +/- 1.17e-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) = 8353.04866024
delta logL = 0.209460155067

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8353.04831576
delta logL = 0.209804637014

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4070       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9028       1.0000          .0000       5.0000    
     3 'Normalizat'    .72353       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0960       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=   8353.048     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      239 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4070        28.004        .34565E-02    .13981E-03
   2  alpha         2.9028        3.9267        .22377        .55034E-04
   3  Normalizat    .72354        .13959        .70776E-01    .90870E-04
   4  Prefactor     1.0959        .11169        .37742E-01   -.31876E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.40695
  alpha      = 2.90278
  Normalizat = 0.723536
  Prefactor  = 1.09595
 **********
 **   18 **HESSE 
 **********

 FCN=   8353.048     FROM HESSE     STATUS=OK            31 CALLS      270 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4070        2.5782        .61350E-04   -1.5128    
   2  alpha         2.9028        .35742        .96665E-03    .16182    
   3  Normalizat    .72354        .19303        .31322E-03   -1.0297    
   4  Prefactor     1.0959        .15103        .20817E-03   -.89596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19893e-11
Minuit parameter uncertainties:
  1  2.57824
  2  0.358687
  3  0.193208
  4  0.151093
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/710196': 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) = 8353.04831576
delta logL = 0.209804638522

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  8.407e+00  2.578e+00  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  2.903e+00  3.587e-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.096e+00  1.511e-01  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  7.235e-01  1.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 33.29
Ra Dec: 84.995 -28.659
Photon Index (Free Index): 2.90 +/- 0.36
Photon Flux (Free Index): 2.12e-07 +/- 5.81e-08
Energy Flux (Free Index): 4.42e-05 +/- 1.12e-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/710196/cmap_HighResolution_519782401_520041601_4FGL_J0539.9-2839_daily_bin1082.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.94e-07', energy_flux2='4.42e-05', photon_flux_error='4.97e-08', dlogl='2.10e-01', energy_flux='4.56e-05', photon_flux2='2.12e-07', job_status='DONE', time_completed='2021-08-23 14:55:01.489184', photon_index_error2='0.36', photon_index2='2.90', ts='32.78', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.12e-05', EG='0.75', time_epoch_completed='1629755701.49', return_code='0', job_id='710196', GAL2='1.10', EG2='0.72', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='5.81e-08', ts2='33.29', photon_index='2.68' WHERE bin_id='1082' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 14:55:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 710196: <4FGL_J0539.9-2839_daily_bin1082> in cluster <slac> Done

Job <4FGL_J0539.9-2839_daily_bin1082> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 23 14:40:34 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 14:40:36 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:36 2021
Terminated at Mon Aug 23 14:55:02 2021
Results reported at Mon Aug 23 14:55:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin1082 84.9952 -28.6585 519782401 520041601 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 :                                   817.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            868 sec.

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

