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


Performing analysis on: 4FGL_J0539.9-2839_daily_bin1083
RA = 84.9952, Dec = -28.6585
tmin = 520041601, tmax = 520300801
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='710198', job_status='RUN', time_executed='2021-08-23 14:42:24.171650', time_epoch_executed='1629754944.17' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1083'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/710198

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/710198/ft1_4FGL_J0539.9-2839_daily_bin1083.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/710198/ft2_4FGL_J0539.9-2839_daily_bin1083.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/710198/ft1_4FGL_J0539.9-2839_daily_bin1083.fits outfile=/scratch/kocevski/710198/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1083.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=520041601.0 tmax=520300801.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.73
user 4.03
sys 0.58

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/710198/ft1_filtered_4FGL_J0539.9-2839_daily_bin1083.fits" evtable="EVENTS" scfile=/scratch/kocevski/710198/ft2_4FGL_J0539.9-2839_daily_bin1083.fits sctable="SC_DATA" outfile=/scratch/kocevski/710198/ltcube_520041601_520300801_4FGL_J0539.9-2839_daily_bin1083.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/710198/ft2_4FGL_J0539.9-2839_daily_bin1083.fits
.....................!
real 13.97
user 13.05
sys 0.77

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/710198/ft1_filtered_4FGL_J0539.9-2839_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/710198/ft2_4FGL_J0539.9-2839_daily_bin1083.fits sctable="SC_DATA" expcube=/scratch/kocevski/710198/ltcube_520041601_520300801_4FGL_J0539.9-2839_daily_bin1083.fits outfile=/scratch/kocevski/710198/expmap_520041601_520300801_4FGL_J0539.9-2839_daily_bin1083.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/710198/ltcube_520041601_520300801_4FGL_J0539.9-2839_daily_bin1083.fits
.....................!
real 194.54
user 186.33
sys 6.33

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/710198/ft1_filtered_4FGL_J0539.9-2839_daily_bin1083.fits scfile=/scratch/kocevski/710198/ft2_4FGL_J0539.9-2839_daily_bin1083.fits outfile=/scratch/kocevski/710198/cmap_520041601_520300801_4FGL_J0539.9-2839_daily_bin1083.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.90
user 0.38
sys 0.48

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/710198/ft1_filtered_4FGL_J0539.9-2839_daily_bin1083.fits scfile=/scratch/kocevski/710198/ft2_4FGL_J0539.9-2839_daily_bin1083.fits outfile=/scratch/kocevski/710198/cmap_HighResolution_520041601_520300801_4FGL_J0539.9-2839_daily_bin1083.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.91
user 0.37
sys 0.51

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/710198/ft1_filtered_4FGL_J0539.9-2839_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/710198/ft2_4FGL_J0539.9-2839_daily_bin1083.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/710198/Model_4FGL_J0539.9-2839_daily_bin1083.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/710198/ft1_filtered_4FGL_J0539.9-2839_daily_bin1083.fits.....................!
real 102.21
user 100.10
sys 1.76

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.2508       1.0000         .10000E-03   10000.    
     4 'norm      '    .23717       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.8722       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.383       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .18558E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.3079       1.0000         .10000E-03   10000.    
    16 'norm      '    10.419       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .83467       1.0000         .10000E-03   10000.    
    18 'Prefactor '    81.444       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.029       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.5902       1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .19540       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.3406       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .39252E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    25.318       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1870       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0389       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=   8644.200     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     2963 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10024E-03    70.677       -.88160E-05** at limit **
   2  norm          .10000E-03    2.6421       -.10219E-05** at limit **
   3  Prefactor     7.2492        5.0088       -.62459E-06   -.15247E-02
   4  norm          .23714        .14602       -.55370E-07   -.17629E-03
   5  Prefactor     .10003E-03    16.496        .17076E-06** at limit **
   6  norm          .10000E-03    18.244        .27303E-05** at limit **
   7  Prefactor     .10000E-03    1.3987       -.27429E-07** at limit **
   8  norm          2.8716        1.7175       -.26846E-06   -.83758E-04
   9  Prefactor     20.378        1.1606        .80301E-07   -.10865E-02
  10  Prefactor     .10000E-03    1.8990       -.18512E-06** at limit **
  11  Prefactor     .10000E-03    5.6100        .11600E-06** at limit **
  12  Prefactor     .10000E-03    4.8775        .17223E-06** at limit **
  13  norm          .10005E-03    7.4468        .13029E-05** at limit **
  14  Prefactor     .10000E-03    9.9956        .33063E-06** at limit **
  15  norm          7.3071        2.3845       -.64288E-07   -.17952E-04
  16  norm          10.418        1.9801        .18365E-06   -.31595E-02
  17  Prefactor     .83362        12.290        .17472E-05    .33768E-03
  18  Prefactor     81.495        6.4734       -.47043E-06   -.18463E-01
  19  Prefactor     .10000E-03    16.409       -.13773E-05** at limit **
  20  Prefactor     26.030        1.9780       -.19812E-06   -.16124E-02
  21  Prefactor     5.5433        4.0367        .11983E-05   -.20227E-02
  22  norm          .10000E-03    2.0737       -.40455E-06** at limit **
  23  Prefactor     .10903E-03    1356.4        .57566E-04** at limit **
  24  Prefactor     7.3417        4.7425       -.53410E-06    .43861E-03
  25  Prefactor     .10010E-03    52.541       -.45874E-05** at limit **
  26  norm          25.310        1.2964        .90988E-07   -.14490E-02
  27  Normalizat    1.1869        .21227        .55049E-06    .33482E-04
  28  Prefactor     1.0391        .16434        .75530E-06    .38961E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100238
  norm       = 0.0001
  Prefactor  = 7.24924
  norm       = 0.237141
  Prefactor  = 0.000100033
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.87164
  Prefactor  = 20.3781
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.00010005
  Prefactor  = 0.0001
  norm       = 7.30707
  norm       = 10.418
  Prefactor  = 0.833622
  Prefactor  = 81.4947
  Prefactor  = 0.0001
  Prefactor  = 26.0299
  Prefactor  = 5.54328
  norm       = 0.0001
  Prefactor  = 0.000109033
  Prefactor  = 7.34174
  Prefactor  = 0.000100102
  norm       = 25.3102
  Normalizat = 1.18692
  Prefactor  = 1.03911
 **********
 **   18 **HESSE 
 **********

 FCN=   8644.200     FROM HESSE     STATUS=OK           603 CALLS     3566 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10024E-03    71.276        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.1833        .37222E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.2492        5.0328        .37240E-02   -1.5169    
   4  norm          .23714        .15183        .60866E-02   -1.5611    
   5  Prefactor     .10003E-03    19.874        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    22.367        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.3753        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.8716        1.7310        .59960E-02   -1.5369    
   9  Prefactor     20.378        20.399        .22179E-02   -1.4805    
  10  Prefactor     .10000E-03    1.8830        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.5951        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.8688        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10005E-03    1.7722        .70151E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.006        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.3071        2.3826        .37093E-02   -1.5167    
  16  norm          10.418        7.7014        .31033E-02   -1.5062    
  17  Prefactor     .83362        3.2604        .89778E-01   -1.5525    
  18  Prefactor     81.495        71.849        .11126E-02   -1.3900    
  19  Prefactor     .10000E-03    16.438        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     26.030        26.640        .19630E-02   -1.4687    
  21  Prefactor     5.5433        62.800        .42479E-02   -1.5237    
  22  norm          .10000E-03    2.0611        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10903E-03    12.191        .11248       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.3417        4.7528        .37009E-02   -1.5166    
  25  Prefactor     .10010E-03    10.795        .97589E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          25.310        21.903        .19903E-02   -1.4701    
  27  Normalizat    1.1869        .18516        .63692E-01   -.87008    
  28  Prefactor     1.0391        .14131        .40607E-01   -.91437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30553e-06
Minuit parameter uncertainties:
  1  0.00824063
  2  4.5629e-06
  3  5.03309
  4  0.15183
  5  0.0016129
  6  0.000225652
  7  1.76295e-07
  8  1.73103
  9  20.4062
  10  1.15585e-06
  11  2.15131e-07
  12  3.94665e-07
  13  0.000594203
  14  3.00324e-06
  15  2.38268
  16  7.70211
  17  3.26106
  18  71.9252
  19  9.46686e-05
  20  26.6522
  21  37.365
  22  2.573e-06
  23  0.0209918
  24  4.75304
  25  0.00210327
  26  21.9104
  27  0.185262
  28  0.141357
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  7.307e+00  2.383e+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.039e+00  1.414e-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.187e+00  1.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.68
Ra Dec: 84.995 -28.659
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 1.54e-07 +/- 5.01e-08
Energy Flux (Fixed Index): 3.62e-05 +/- 1.18e-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) = 8644.09314527
delta logL = 0.106724340227

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8644.0917176
delta logL = 0.108152013267

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7163       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8793       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1669       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0515       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=   8644.092     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      239 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7137        29.690        .38708E-02    .20169E-03
   2  alpha         2.8792        3.9292        .28782        .42184E-04
   3  Normalizat    1.1673        .11299        .64135E-01    .16744E-04
   4  Prefactor     1.0511        .95132E-01    .39823E-01    .12155E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.71367
  alpha      = 2.87919
  Normalizat = 1.16727
  Prefactor  = 1.05109
 **********
 **   18 **HESSE 
 **********

 FCN=   8644.092     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7137        2.6991        .71900E-04   -1.5190    
   2  alpha         2.8792        .45629        .12194E-01    .15226    
   3  Normalizat    1.1673        .21136        .28370E-03   -.87620    
   4  Prefactor     1.0511        .16375        .23503E-03   -.91045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54815e-12
Minuit parameter uncertainties:
  1  2.69913
  2  0.458921
  3  0.211515
  4  0.163828
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/710198': 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) = 8644.09171323
delta logL = 0.108156380556

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  6.714e+00  2.699e+00  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  2.879e+00  4.589e-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.051e+00  1.638e-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.167e+00  2.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.95
Ra Dec: 84.995 -28.659
Photon Index (Free Index): 2.88 +/- 0.46
Photon Flux (Free Index): 1.66e-07 +/- 5.71e-08
Energy Flux (Free Index): 3.50e-05 +/- 1.16e-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/710198/cmap_HighResolution_520041601_520300801_4FGL_J0539.9-2839_daily_bin1083.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.54e-07', energy_flux2='3.50e-05', photon_flux_error='5.01e-08', dlogl='1.08e-01', energy_flux='3.62e-05', photon_flux2='1.66e-07', job_status='DONE', time_completed='2021-08-23 14:56:22.010291', photon_index_error2='0.46', photon_index2='2.88', ts='18.68', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.16e-05', EG='1.19', time_epoch_completed='1629755782.01', return_code='0', job_id='710198', GAL2='1.05', EG2='1.17', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='5.71e-08', ts2='18.95', photon_index='2.68' WHERE bin_id='1083' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 14:56:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 710198: <4FGL_J0539.9-2839_daily_bin1083> in cluster <slac> Done

Job <4FGL_J0539.9-2839_daily_bin1083> 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) <bullet0206>, 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:56:22 2021
Results reported at Mon Aug 23 14:56:22 2021

Your job looked like:

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

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

