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


Performing analysis on: 4FGL_J0539.9-2839_daily_bin1017
RA = 84.9952, Dec = -28.6585
tmin = 502934401, tmax = 503193601
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='710104', job_status='RUN', time_executed='2021-08-23 14:44:50.714810', time_epoch_executed='1629755090.71' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1017'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/710104

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/710104/ft1_4FGL_J0539.9-2839_daily_bin1017.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/710104/ft2_4FGL_J0539.9-2839_daily_bin1017.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/710104/ft1_4FGL_J0539.9-2839_daily_bin1017.fits outfile=/scratch/kocevski/710104/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1017.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=502934401.0 tmax=503193601.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.96
user 3.33
sys 1.59

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/710104/ft1_filtered_4FGL_J0539.9-2839_daily_bin1017.fits" evtable="EVENTS" scfile=/scratch/kocevski/710104/ft2_4FGL_J0539.9-2839_daily_bin1017.fits sctable="SC_DATA" outfile=/scratch/kocevski/710104/ltcube_502934401_503193601_4FGL_J0539.9-2839_daily_bin1017.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/710104/ft2_4FGL_J0539.9-2839_daily_bin1017.fits
.....................!
real 13.45
user 11.52
sys 1.89

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/710104/ft1_filtered_4FGL_J0539.9-2839_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/710104/ft2_4FGL_J0539.9-2839_daily_bin1017.fits sctable="SC_DATA" expcube=/scratch/kocevski/710104/ltcube_502934401_503193601_4FGL_J0539.9-2839_daily_bin1017.fits outfile=/scratch/kocevski/710104/expmap_502934401_503193601_4FGL_J0539.9-2839_daily_bin1017.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/710104/ltcube_502934401_503193601_4FGL_J0539.9-2839_daily_bin1017.fits
.....................!
real 193.39
user 186.70
sys 6.31

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/710104/ft1_filtered_4FGL_J0539.9-2839_daily_bin1017.fits scfile=/scratch/kocevski/710104/ft2_4FGL_J0539.9-2839_daily_bin1017.fits outfile=/scratch/kocevski/710104/cmap_502934401_503193601_4FGL_J0539.9-2839_daily_bin1017.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 1.96
user 0.38
sys 1.50

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/710104/ft1_filtered_4FGL_J0539.9-2839_daily_bin1017.fits scfile=/scratch/kocevski/710104/ft2_4FGL_J0539.9-2839_daily_bin1017.fits outfile=/scratch/kocevski/710104/cmap_HighResolution_502934401_503193601_4FGL_J0539.9-2839_daily_bin1017.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 1.93
user 0.38
sys 1.52

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/710104/ft1_filtered_4FGL_J0539.9-2839_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/710104/ft2_4FGL_J0539.9-2839_daily_bin1017.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/710104/Model_4FGL_J0539.9-2839_daily_bin1017.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/710104/ft1_filtered_4FGL_J0539.9-2839_daily_bin1017.fits.....................!
real 61.47
user 58.18
sys 2.98

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    257.34       1.0000         .10000E-03   10000.    
     2 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .91167E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .11016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11209E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .64765       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16069E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2027       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .26090E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0564       1.0000         .10000E-03   10000.    
    15 'norm      '    5.9553       1.0000         .10000E-03   10000.    
    16 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.735       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3423       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6558       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12499E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    72.651       1.0000         .10000E-03   10000.    
    22 'norm      '    13.577       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .28116E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0928       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .76905       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=   4556.370     FROM MIGRAD    STATUS=CONVERGED   1274 CALLS     4647 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          257.17        233.79        .12631E-03    .49125E-04
   2  norm          .10000E-03    7.2082        .22598E-02** at limit **
   3  Prefactor     .10000E-03    1.8428        .89356E-03** at limit **
   4  norm          .91173E-01    .13875        .33666E-03   -.13055E-02
   5  Prefactor     .10000E-03    70.802        .18142E-02** at limit **
   6  norm          .10000E-03    67.271        .18142E-02** at limit **
   7  Prefactor     .10001E-03    26.316        .23329E-02** at limit **
   8  norm          .64579        1.9995        .16172E-03    .33203E-03
   9  Prefactor     .10000E-03    65.361        .13404    ** at limit **
  10  Prefactor     4.1792        13.328        .19658E-03    .36227E-03
  11  Prefactor     .10032E-03    119.69        .47721E-02** at limit **
  12  Prefactor     .10000E-03    3.3143        .12000E-02** at limit **
  13  norm          .10000E-03    1.8427        .89298E-03** at limit **
  14  Prefactor     3.0798        231.25        .23205E-03    .91418E-04
  15  norm          5.9551        3.3948        .85076E-04    .58035E-03
  16  norm          .10000E-03    4.9649        .14675E-02** at limit **
  17  Prefactor     15.739        10.252        .10097E-03   -.14671E-03
  18  Prefactor     3.2381        357.29        .22139E-03    .77029E-06
  19  Prefactor     1.5878        84.387        .32798E-03    .24472E-04
  20  Prefactor     .10000E-03    52.427        .18142E-02** at limit **
  21  Prefactor     72.672        59.140        .47101E-04    .11600E-03
  22  norm          13.583        9.5312        .10870E-03   -.21116E-03
  23  Prefactor     .10012E-03    39.912        .91425E-01** at limit **
  24  Prefactor     .10000E-03    3.4825        .12268E-02** at limit **
  25  Prefactor     .10000E-03    23.082        .18142E-02** at limit **
  26  norm          .10000E-03    11.553        .18142E-02** at limit **
  27  Normalizat    1.0930        .28292        .26566E-03    .27080E-03
  28  Prefactor     .76884        .20028        .22790E-03    .47300E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 257.173
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0911725
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100013
  norm       = 0.645791
  Prefactor  = 0.0001
  Prefactor  = 4.17918
  Prefactor  = 0.00010032
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.07985
  norm       = 5.95506
  norm       = 0.0001
  Prefactor  = 15.7387
  Prefactor  = 3.23805
  Prefactor  = 1.5878
  Prefactor  = 0.000100001
  Prefactor  = 72.6718
  norm       = 13.5832
  Prefactor  = 0.000100119
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.09304
  Prefactor  = 0.76884
 **********
 **   18 **HESSE 
 **********

 FCN=   4556.370     FROM HESSE     STATUS=OK           513 CALLS     5160 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          257.17        233.79        .25262E-04   -1.2487    
   2  norm          .10000E-03    7.2564        .45197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.8428        .17871E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .91173E-01    .13869        .13466E-04   -1.5648    
   5  Prefactor     .10000E-03    70.805        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    67.272        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    26.525        .46658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .64579        1.9981        .64687E-05   -1.5547    
   9  Prefactor     .10000E-03    68.196        .13054       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.1792        13.255        .78631E-05   -1.5299    
  11  Prefactor     .10032E-03    121.24        .95442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.3143        .24000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.8428        .17860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.0798        228.23        .92822E-05   -1.5357    
  15  norm          5.9551        3.3948        .34031E-05   -1.5220    
  16  norm          .10000E-03    4.9652        .29349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.739        10.252        .40388E-05   -1.4914    
  18  Prefactor     3.2381        356.49        .88554E-05   -1.5348    
  19  Prefactor     1.5878        84.354        .13119E-04   -1.5456    
  20  Prefactor     .10000E-03    52.431        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     72.672        59.136        .94202E-05   -1.4001    
  22  norm          13.583        9.5292        .43481E-05   -1.4971    
  23  Prefactor     .10012E-03    36.230        .97120E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.4826        .24535E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    23.084        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    11.553        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0930        .28306        .53132E-04   -.89976    
  28  Prefactor     .76884        .20043        .45580E-04   -1.0089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29533e-09
Minuit parameter uncertainties:
  1  234.646
  2  6.97203e-05
  3  1.4601e-06
  4  0.138692
  5  0.000119719
  6  0.000175727
  7  0.00118748
  8  1.99835
  9  0.000269441
  10  13.2643
  11  0.012484
  12  1.03201e-06
  13  1.59436e-06
  14  53.2361
  15  3.39491
  16  4.01894e-08
  17  10.2533
  18  68.3715
  19  23.1801
  20  0.00048333
  21  59.1844
  22  9.53027
  23  0.00416381
  24  6.20927e-05
  25  0.000162395
  26  1.22788e-05
  27  0.283455
  28  0.200618
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  5.955e+00  3.395e+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:  7.688e-01  2.006e-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.093e+00  2.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.43
Ra Dec: 84.995 -28.659
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 1.25e-07 +/- 7.14e-08
Energy Flux (Fixed Index): 2.95e-05 +/- 1.68e-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) = 4556.24842593
delta logL = 0.121220862614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4556.24389501
delta logL = 0.125751781961

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3817       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0021       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0637       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78540       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=   4556.244     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      256 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3887        61.194        .43307E-02    .18054E-03
   2  alpha         3.0037        3.3750        .33170        .19446E-04
   3  Normalizat    1.0633        .11977        .60774E-01    .79941E-05
   4  Prefactor     .78554        .10159        .43527E-01    .95185E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.38871
  alpha      = 3.00369
  Normalizat = 1.06328
  Prefactor  = 0.785538
 **********
 **   18 **HESSE 
 **********

 FCN=   4556.244     FROM HESSE     STATUS=OK            33 CALLS      289 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3887        3.4666        .76692E-04   -1.5244    
   2  alpha         3.0037        .68573        .13888E-01    .20286    
   3  Normalizat    1.0633        .27490        .26878E-03   -.90940    
   4  Prefactor     .78554        .19614        .22574E-03   -1.0026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05861e-10
Minuit parameter uncertainties:
  1  3.46674
  2  0.695026
  3  0.275268
  4  0.196318
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/710104': 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) = 4556.2438842
delta logL = 0.125762587085

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  5.389e+00  3.467e+00  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  3.004e+00  6.950e-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:  7.855e-01  1.963e-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.063e+00  2.753e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.73
Ra Dec: 84.995 -28.659
Photon Index (Free Index): 3.00 +/- 0.70
Photon Flux (Free Index): 1.48e-07 +/- 8.55e-08
Energy Flux (Free Index): 2.95e-05 +/- 1.58e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/710104/cmap_HighResolution_502934401_503193601_4FGL_J0539.9-2839_daily_bin1017.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.25e-07', energy_flux2='2.95e-05', photon_flux_error='7.14e-08', dlogl='1.26e-01', energy_flux='2.95e-05', photon_flux2='1.48e-07', job_status='DONE', time_completed='2021-08-23 14:55:49.939121', photon_index_error2='0.70', photon_index2='3.00', ts='5.43', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='1.58e-05', EG='1.09', time_epoch_completed='1629755749.94', return_code='0', job_id='710104', GAL2='0.79', EG2='1.06', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='8.55e-08', ts2='5.73', photon_index='2.68' WHERE bin_id='1017' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 14:55:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0139>
Subject: Job 710104: <4FGL_J0539.9-2839_daily_bin1017> in cluster <slac> Done

Job <4FGL_J0539.9-2839_daily_bin1017> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 23 14:40:28 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 14:40:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 23 14:40:29 2021
Terminated at Mon Aug 23 14:55:50 2021
Results reported at Mon Aug 23 14:55:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin1017 84.9952 -28.6585 502934401 503193601 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 :                                   680.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             272.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            922 sec.

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

