/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 115 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7600
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0539.9-2839_daily_bin1709
RA = 84.9952, Dec = -28.6585
tmin = 682300801, tmax = 682560001
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='33061', job_status='RUN', time_executed='2022-09-16 11:58:31.281018', time_epoch_executed='1663354711.28' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33061

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33061/ft1_4FGL_J0539.9-2839_daily_bin1709.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33061/ft2_4FGL_J0539.9-2839_daily_bin1709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33061/ft1_4FGL_J0539.9-2839_daily_bin1709.fits outfile=/scratch/kocevski/33061/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1709.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=682300801.0 tmax=682560001.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.82
user 3.54
sys 0.22

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

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

Number of photons that the gtmktime cut: 635

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/33061/ft1_filtered_4FGL_J0539.9-2839_daily_bin1709.fits" evtable="EVENTS" scfile=/scratch/kocevski/33061/ft2_4FGL_J0539.9-2839_daily_bin1709.fits sctable="SC_DATA" outfile=/scratch/kocevski/33061/ltcube_682300801_682560001_4FGL_J0539.9-2839_daily_bin1709.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/33061/ft2_4FGL_J0539.9-2839_daily_bin1709.fits
.....................!
real 16.80
user 16.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33061/ft1_filtered_4FGL_J0539.9-2839_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/33061/ft2_4FGL_J0539.9-2839_daily_bin1709.fits sctable="SC_DATA" expcube=/scratch/kocevski/33061/ltcube_682300801_682560001_4FGL_J0539.9-2839_daily_bin1709.fits outfile=/scratch/kocevski/33061/expmap_682300801_682560001_4FGL_J0539.9-2839_daily_bin1709.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/33061/ltcube_682300801_682560001_4FGL_J0539.9-2839_daily_bin1709.fits
.....................!
real 191.37
user 186.22
sys 4.48

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/33061/ft1_filtered_4FGL_J0539.9-2839_daily_bin1709.fits scfile=/scratch/kocevski/33061/ft2_4FGL_J0539.9-2839_daily_bin1709.fits outfile=/scratch/kocevski/33061/cmap_682300801_682560001_4FGL_J0539.9-2839_daily_bin1709.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/33061/ft1_filtered_4FGL_J0539.9-2839_daily_bin1709.fits scfile=/scratch/kocevski/33061/ft2_4FGL_J0539.9-2839_daily_bin1709.fits outfile=/scratch/kocevski/33061/cmap_HighResolution_682300801_682560001_4FGL_J0539.9-2839_daily_bin1709.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.57
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/33061/ft1_filtered_4FGL_J0539.9-2839_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/33061/ft2_4FGL_J0539.9-2839_daily_bin1709.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/33061/Model_4FGL_J0539.9-2839_daily_bin1709.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/33061/ft1_filtered_4FGL_J0539.9-2839_daily_bin1709.fits.....................!
real 87.06
user 85.51
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/33061/ft1_filtered_4FGL_J0539.9-2839_daily_bin1709.fits', '/scratch/kocevski/33061/ft2_4FGL_J0539.9-2839_daily_bin1709.fits', expMap='/scratch/kocevski/33061/expmap_682300801_682560001_4FGL_J0539.9-2839_daily_bin1709.fits', expCube='/scratch/kocevski/33061/ltcube_682300801_682560001_4FGL_J0539.9-2839_daily_bin1709.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/33061/Model_4FGL_J0539.9-2839_daily_bin1709.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  0.000e+00  1.000e+06 ( 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 -5.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/33061/ft1_filtered_4FGL_J0539.9-2839_daily_bin1709.fits
Spacecraft file(s): /scratch/kocevski/33061/ft2_4FGL_J0539.9-2839_daily_bin1709.fits
Exposure map: /scratch/kocevski/33061/expmap_682300801_682560001_4FGL_J0539.9-2839_daily_bin1709.fits
Exposure cube: /scratch/kocevski/33061/ltcube_682300801_682560001_4FGL_J0539.9-2839_daily_bin1709.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/33061/Model_4FGL_J0539.9-2839_daily_bin1709.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6873.73452285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .35562       1.0000          .0000       .10000E+07
     2 'norm      '    11.059       1.0000          .0000       .10000E+07
     3 'norm      '    .68395       1.0000          .0000       .10000E+07
     4 'Prefactor '    .81738E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .59036       1.0000          .0000       .10000E+07
     6 'norm      '    1.1852       1.0000          .0000       .10000E+07
     7 'Prefactor '    .39210E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    3.7643       1.0000          .0000       .10000E+07
     9 'Prefactor '    .98371E-06   1.0000          .0000       .10000E+07
    10 'norm      '    3.5822       1.0000          .0000       .10000E+07
    11 'Prefactor '    .33569E-02   1.0000          .0000       .10000E+07
    12 'norm      '    4.5380       1.0000          .0000       .10000E+07
    13 'Prefactor '    .20029E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    22.410       1.0000          .0000       .10000E+07
    15 'Prefactor '    .79942E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    35.296       1.0000          .0000       .10000E+07
    17 'Prefactor '    .29601E-02   1.0000          .0000       .10000E+07
    18 'norm      '    3.2837       1.0000          .0000       .10000E+07
    19 'Prefactor '    8.1370       1.0000          .0000       .10000E+07
    20 'Prefactor '    4.1577       1.0000          .0000       .10000E+07
    21 'norm      '    .28247E-04   1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1765       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96346       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6873.686     FROM MIGRAD    STATUS=CONVERGED    164 CALLS     1508 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63527E-06    3.3058        .13511E-06** at limit **
   2  norm          11.094        4.6979        .17327E-07   -.10295E-02
   3  norm          .68364        .21393        .94677E-08   -.47233E-02
   4  Prefactor     .61062E-08    19.702       -.39545E-06** at limit **
   5  Prefactor     .59115        3.5979        .30622E-06   -.65836E-03
   6  norm          1.1823        1.8769        .52287E-08   -.29815E-03
   7  Prefactor     .24369E-07    11.002       -.39693E-06** at limit **
   8  Prefactor     3.7811        4.7705        .17593E-06   -.74606E-03
   9  Prefactor     .11102E-09    5.2947        .14861E-06** at limit **
  10  norm          3.6318        5.4023       -.32149E-07   -.55527E-03
  11  Prefactor     .10586E-06    13.829        .18190E-06** at limit **
  12  norm          4.5319        2.7019       -.44722E-07   -.39254E-03
  13  Prefactor     .66724E-07    11.056       -.76302E-06** at limit **
  14  Prefactor     18.293        104.56        .25982E-05    .22655E-02
  15  Prefactor     .33251E-07    9.8672       -.48017E-06** at limit **
  16  Prefactor     34.334        26.063       -.11382E-06   -.62377E-01
  17  Prefactor     .13927E-05    10.780        .38360E-06** at limit **
  18  norm          3.3057        4.3403       -.48432E-07   -.15812E-03
  19  Prefactor     8.1118        5.8073       -.23904E-07    .61970E-03
  20  Prefactor     4.8390        18.166        .61572E-06   -.33647E-01
  21  norm          .84716E-06    8.2157        .26617E-06** at limit **
  22  Normalizat    1.1768        .24857        .66672E-05   -.46589E-04
  23  Prefactor     .96397        .17385       -.49186E-05   -.32448E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.3527e-07
  norm       = 11.0945
  norm       = 0.683644
  Prefactor  = 6.10623e-09
  Prefactor  = 0.591149
  norm       = 1.18231
  Prefactor  = 2.43694e-08
  Prefactor  = 3.78107
  Prefactor  = 1.11022e-10
  norm       = 3.63179
  Prefactor  = 1.0586e-07
  norm       = 4.53187
  Prefactor  = 6.67244e-08
  Prefactor  = 18.2935
  Prefactor  = 3.32512e-08
  Prefactor  = 34.3343
  Prefactor  = 1.39272e-06
  norm       = 3.30567
  Prefactor  = 8.11177
  Prefactor  = 4.83897
  norm       = 8.47156e-07
  Normalizat = 1.17679
  Prefactor  = 0.963974
 **********
 **   18 **HESSE 
 **********

 FCN=   6873.686     FROM HESSE     STATUS=OK           418 CALLS     1926 TOTAL
                     EDM=   .26E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .63527E-06    97.920        .94819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.094        4.6855        .30102E-03   -1.5641    
   3  norm          .68364        .21370        .46979E-03   -1.5691    
   4  Prefactor     .61062E-08    21.656        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .59115        3.7333        .70096E-03   -1.5693    
   6  norm          1.1823        1.9459        .10479E-02   -1.5686    
   7  Prefactor     .24369E-07    11.084        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.7811        4.7892        .52011E-03   -1.5669    
   9  Prefactor     .11102E-09    5.2886        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.6318        5.4240        .53369E-03   -1.5670    
  11  Prefactor     .10586E-06    14.142        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.5319        2.6827        .47234E-03   -1.5665    
  13  Prefactor     .66724E-07    11.228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.293        105.04        .21129E-03   -1.5622    
  15  Prefactor     .33251E-07    9.9916        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     34.334        28.874        .16834E-03   -1.5591    
  17  Prefactor     .13927E-05    17.708        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.3057        4.3590        .55852E-03   -1.5672    
  19  Prefactor     8.1118        5.8202        .35123E-03   -1.5651    
  20  Prefactor     4.8390        40.533        .49407E-03   -1.5664    
  21  norm          .84716E-06    19.034        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1768        .21261        .65293E-01   -.87323    
  23  Prefactor     .96397        .14783        .45809E-01   -.93940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55303e-06
Minuit parameter uncertainties:
  1  0.0157745
  2  4.6855
  3  0.213702
  4  0.000725646
  5  2.97117
  6  1.94593
  7  0.00103906
  8  4.78923
  9  5.18051e-05
  10  5.42397
  11  0.00244718
  12  2.68272
  13  0.00173128
  14  87.6736
  15  0.00115285
  16  28.8742
  17  0.00993223
  18  4.35904
  19  5.8202
  20  28.0102
  21  0.00803109
  22  0.212761
  23  0.147893
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  4.532e+00  2.683e+00  0.000e+00  1.000e+06 ( 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 -5.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.640e-01  1.479e-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.177e+00  2.128e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.35
Ra Dec: 84.995 -28.659
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 9.54e-08 +/- 5.64e-08
Energy Flux (Fixed Index): 2.24e-05 +/- 1.33e-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) = 6871.9088119
delta logL = 1.77743964379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6871.89450681
delta logL = 1.79174473792

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6004       1.0000          .0000       .10000E+07
     2 'alpha     '    4.4362       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0581       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0306       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=   6871.895     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      277 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6006        2.5115        .42448E-05   -.15062E-01
   2  alpha         4.4363        1.2757        .22952E-01   -.16884E-04
   3  Normalizat    1.0582        .24271        .30215E-03    .21860E-04
   4  Prefactor     1.0306        .17587        .22790E-03    .72983E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.60063
  alpha      = 4.43626
  Normalizat = 1.05816
  Prefactor  = 1.03063
 **********
 **   18 **HESSE 
 **********

 FCN=   6871.895     FROM HESSE     STATUS=OK            23 CALLS      300 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6006        1.8992        .16979E-06   -1.5683    
   2  alpha         4.4363        1.0307        .91809E-03    .88593    
   3  Normalizat    1.0582        .24325        .12086E-04   -.91107    
   4  Prefactor     1.0306        .17603        .91158E-05   -.91715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57427e-10
Minuit parameter uncertainties:
  1  1.89922
  2  1.12262
  3  0.243508
  4  0.176132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33061': 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) = 6871.89450662
delta logL = 1.79174491801

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  1.601e+00  1.899e+00  0.000e+00  1.000e+06 ( 1.000e-11)
259        alpha:  4.436e+00  1.123e+00  0.000e+00  5.000e+00 ( 1.000e+00)
260         beta:  1.119e-01  0.000e+00 -5.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.031e+00  1.761e-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.058e+00  2.435e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.62
Ra Dec: 84.995 -28.659
Photon Index (Free Index): 4.44 +/- 1.12
Photon Flux (Free Index): 1.77e-07 +/- 7.98e-08
Energy Flux (Free Index): 2.54e-05 +/- 1.13e-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/33061/cmap_HighResolution_682300801_682560001_4FGL_J0539.9-2839_daily_bin1709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.54e-08', energy_flux2='2.54e-05', photon_flux_error='5.64e-08', dlogl='1.79e+00', energy_flux='2.24e-05', photon_flux2='1.77e-07', job_status='DONE', time_completed='2022-09-16 12:08:11.041162', photon_index_error2='1.12', photon_index2='4.44', ts='4.35', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.13e-05', EG='1.18', time_epoch_completed='1663355291.04', return_code='0', job_id='33061', GAL2='1.03', EG2='1.06', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='7.98e-08', ts2='8.62', photon_index='2.68' WHERE bin_id='1709' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 12:08:11 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0144>
Subject: Job 33061: <4FGL_J0539.9-2839_daily_bin1709> in cluster <slac> Done

Job <4FGL_J0539.9-2839_daily_bin1709> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 16 11:55:23 2022
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 11:56:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 11:56:27 2022
Terminated at Fri Sep 16 12:08:11 2022
Results reported at Fri Sep 16 12:08:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin1709 84.9952 -28.6585 682300801 682560001 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 :                                   581.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            768 sec.

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

