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


Performing analysis on: 4FGL_J0539.9-2839_daily_bin1087
RA = 84.9952, Dec = -28.6585
tmin = 521078401, tmax = 521337601
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='710203', job_status='RUN', time_executed='2021-08-23 14:41:51.010836', time_epoch_executed='1629754911.01' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1087'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/710203

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/710203/ft1_4FGL_J0539.9-2839_daily_bin1087.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/710203/ft2_4FGL_J0539.9-2839_daily_bin1087.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/710203/ft1_4FGL_J0539.9-2839_daily_bin1087.fits outfile=/scratch/kocevski/710203/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1087.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=521078401.0 tmax=521337601.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 8.70
user 4.34
sys 4.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/710203/ft1_filtered_4FGL_J0539.9-2839_daily_bin1087.fits" evtable="EVENTS" scfile=/scratch/kocevski/710203/ft2_4FGL_J0539.9-2839_daily_bin1087.fits sctable="SC_DATA" outfile=/scratch/kocevski/710203/ltcube_521078401_521337601_4FGL_J0539.9-2839_daily_bin1087.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/710203/ft2_4FGL_J0539.9-2839_daily_bin1087.fits
.....................!
real 16.63
user 11.67
sys 4.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/710203/ft1_filtered_4FGL_J0539.9-2839_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/710203/ft2_4FGL_J0539.9-2839_daily_bin1087.fits sctable="SC_DATA" expcube=/scratch/kocevski/710203/ltcube_521078401_521337601_4FGL_J0539.9-2839_daily_bin1087.fits outfile=/scratch/kocevski/710203/expmap_521078401_521337601_4FGL_J0539.9-2839_daily_bin1087.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/710203/ltcube_521078401_521337601_4FGL_J0539.9-2839_daily_bin1087.fits
.....................!
real 197.19
user 185.89
sys 10.08

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/710203/ft1_filtered_4FGL_J0539.9-2839_daily_bin1087.fits scfile=/scratch/kocevski/710203/ft2_4FGL_J0539.9-2839_daily_bin1087.fits outfile=/scratch/kocevski/710203/cmap_521078401_521337601_4FGL_J0539.9-2839_daily_bin1087.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 4.50
user 0.38
sys 4.09

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/710203/ft1_filtered_4FGL_J0539.9-2839_daily_bin1087.fits scfile=/scratch/kocevski/710203/ft2_4FGL_J0539.9-2839_daily_bin1087.fits outfile=/scratch/kocevski/710203/cmap_HighResolution_521078401_521337601_4FGL_J0539.9-2839_daily_bin1087.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 4.47
user 0.40
sys 4.04

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/710203/ft1_filtered_4FGL_J0539.9-2839_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/710203/ft2_4FGL_J0539.9-2839_daily_bin1087.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/710203/Model_4FGL_J0539.9-2839_daily_bin1087.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/710203/ft1_filtered_4FGL_J0539.9-2839_daily_bin1087.fits....................!
real 69.07
user 62.31
sys 6.45

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    133.84       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0146       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0550       1.0000         .10000E-03   10000.    
     4 'norm      '    .14990       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .20681E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.7856       1.0000         .10000E-03   10000.    
     8 'norm      '    1.2149       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8847       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.937       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .13585E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.0100       1.0000         .10000E-03   10000.    
    16 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.323       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10664E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.4494       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.8391       1.0000         .10000E-03   10000.    
    26 'norm      '    161.23       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2295       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .98602       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=   4760.203     FROM MIGRAD    STATUS=CONVERGED    705 CALLS     3572 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          134.41        227.19       -.27001E-05    .66622E-04
   2  norm          1.0123        3.2354        .24256E-05    .22131E-03
   3  Prefactor     5.0586        8.0827        .61962E-05    .29350E-03
   4  norm          .14999        .17091       -.43143E-07   -.93356E-03
   5  Prefactor     .10000E-03    28.784       -.32999E-07** at limit **
   6  norm          .10000E-03    495.02       -.14601E-05** at limit **
   7  Prefactor     6.7859        6.4608        .12446E-06   -.23799E-03
   8  norm          1.2149        2.0880        .15489E-06   -.49976E-03
   9  Prefactor     2.8549        236.80       -.19928E-05   -.25152E-04
  10  Prefactor     12.936        10.484        .11129E-07   -.18358E-03
  11  Prefactor     .10000E-03    10.520        .14684E-07** at limit **
  12  Prefactor     .10000E-03    7.5379        .37549E-07** at limit **
  13  norm          .10120E-03    3.9269        .23828E-05** at limit **
  14  Prefactor     .10000E-03    26.035       -.12209E-06** at limit **
  15  norm          2.0097        3.1483        .41124E-06   -.18873E-03
  16  norm          .10000E-03    5.4890        .34596E-07** at limit **
  17  Prefactor     .10000E-03    22.683        .10677E-05** at limit **
  18  Prefactor     .10000E-03    38.668        .24081E-06** at limit **
  19  Prefactor     .10000E-03    46.081       -.30725E-06** at limit **
  20  Prefactor     11.336        76.876        .16430E-05   -.18031E-04
  21  Prefactor     .10000E-03    89.231        .18728E-06** at limit **
  22  norm          5.4485        10.054        .75737E-06   -.11571E-04
  23  Prefactor     .10000E-03    8.3906        .18004E-07** at limit **
  24  Prefactor     .10000E-03    12.124       -.13935E-06** at limit **
  25  Prefactor     5.8464        73.005        .15708E-05   -.93731E-05
  26  norm          161.20        62.719        .27972E-06   -.44412E-04
  27  Normalizat    1.2298        .27500       -.10174E-05   -.40306E-03
  28  Prefactor     .98572        .18640       -.21789E-05   -.40509E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 134.412
  norm       = 1.01226
  Prefactor  = 5.05863
  norm       = 0.149994
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.7859
  norm       = 1.21487
  Prefactor  = 2.85494
  Prefactor  = 12.9355
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000101204
  Prefactor  = 0.0001
  norm       = 2.00975
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3364
  Prefactor  = 0.0001
  norm       = 5.44852
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.84638
  norm       = 161.201
  Normalizat = 1.22985
  Prefactor  = 0.985718
 **********
 **   18 **HESSE 
 **********

 FCN=   4760.203     FROM HESSE     STATUS=OK           517 CALLS     4089 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          134.41        225.28        .17405E-03   -1.3384    
   2  norm          1.0123        3.1467        .20542E-03   -1.5507    
   3  Prefactor     5.0586        8.1186        .89421E-03   -1.5258    
   4  norm          .14999        .16300        .29322E-03   -1.5631    
   5  Prefactor     .10000E-03    28.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    504.79        .20199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.7859        6.4361        .15096E-03   -1.5187    
   8  norm          1.2149        2.0174        .12267E-03   -1.5488    
   9  Prefactor     2.8549        239.86        .23929E-03   -1.5370    
  10  Prefactor     12.936        10.474        .11136E-03   -1.4988    
  11  Prefactor     .10000E-03    10.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.5649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10120E-03    38.048        .23927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0097        3.1272        .14072E-03   -1.5424    
  16  norm          .10000E-03    5.4928        .15788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.529        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    38.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    46.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.336        75.545        .11906E-03   -1.5034    
  21  Prefactor     .10000E-03    89.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.4485        10.018        .17213E-03   -1.5241    
  23  Prefactor     .10000E-03    8.3944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.491        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.8464        71.304        .16620E-03   -1.5224    
  26  norm          161.20        62.675        .15880E-03   -1.3162    
  27  Normalizat    1.2298        .32757        .29375E-03   -.85685    
  28  Prefactor     .98572        .22266        .24014E-03   -.93207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10443e-08
Minuit parameter uncertainties:
  1  226.74
  2  3.14718
  3  8.12033
  4  0.163001
  5  1.22758e-05
  6  6.84325e-05
  7  6.43674
  8  2.01755
  9  52.5556
  10  10.4752
  11  1.37214e-06
  12  2.54745e-05
  13  0.0135442
  14  5.4528e-05
  15  3.12744
  16  5.35136e-06
  17  0.000225225
  18  0.000126166
  19  0.000205864
  20  58.6361
  21  0.000123927
  22  10.021
  23  4.07428e-06
  24  1.68159e-05
  25  40.8953
  26  62.7005
  27  0.328125
  28  0.222867
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  2.010e+00  3.127e+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.857e-01  2.229e-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.230e+00  3.281e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/710203/likelihoodResults_521078401_521337601_4FGL_J0539.9-2839_daily_bin1087.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) = 4760.20270129
delta logL = 1.38861560117e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4760.20269938
delta logL = 3.29241538566e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0131       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6747       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2299       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98571       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4760.203     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      265 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0107        3.1345        .14079E-03    .95283E-05
   2  alpha         2.6737        1.1153        .27577E-01   -.12312E-04
   3  Normalizat    1.2300        .29765        .29373E-03   -.68120E-05
   4  Prefactor     .98566        .21716        .24015E-03   -.11693E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.01071
  alpha      = 2.6737
  Normalizat = 1.22996
  Prefactor  = 0.985661
 **********
 **   18 **HESSE 
 **********

 FCN=   4760.203     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .26E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0107        3.1123        .56317E-05   -1.5424    
   2  alpha         2.6737        1.1078        .55154E-02    .69537E-01
   3  Normalizat    1.2300        .29815        .11749E-04   -.85682    
   4  Prefactor     .98566        .21741        .96061E-05   -.93209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60127e-13
Minuit parameter uncertainties:
  1  3.11252
  2  1.14796
  3  0.298565
  4  0.217603
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/710203': 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) = 4760.20269861
delta logL = 4.06089566241e-06

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  2.011e+00  3.113e+00  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  2.674e+00  1.148e+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:  9.857e-01  2.176e-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.230e+00  2.986e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.53
Ra Dec: 84.995 -28.659

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/710203/cmap_HighResolution_521078401_521337601_4FGL_J0539.9-2839_daily_bin1087.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.39e-05', job_status='DONE', photon_flux_upper_limit='1.87e-07', time_completed='2021-08-23 14:54:05.606796', job_id='710203', GAL2='0.99', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1629755645.61', return_code2='0', ts='0.53', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='4.06e-06', ts2='0.53', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1087' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 14:54:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 710203: <4FGL_J0539.9-2839_daily_bin1087> in cluster <slac> Done

Job <4FGL_J0539.9-2839_daily_bin1087> 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) <bullet0083>, 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:54:06 2021
Results reported at Mon Aug 23 14:54:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin1087 84.9952 -28.6585 521078401 521337601 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 :                                   793.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             305.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            811 sec.

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

