/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 93 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_bin1048
RA = 84.9952, Dec = -28.6585
tmin = 510969601, tmax = 511228801
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='710149', job_status='RUN', time_executed='2021-08-23 14:42:26.920447', time_epoch_executed='1629754946.92' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1048'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/710149

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/710149/ft1_4FGL_J0539.9-2839_daily_bin1048.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/710149/ft2_4FGL_J0539.9-2839_daily_bin1048.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/710149/ft1_4FGL_J0539.9-2839_daily_bin1048.fits outfile=/scratch/kocevski/710149/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1048.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=510969601.0 tmax=511228801.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.14
user 3.22
sys 0.86

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/710149/ft2_4FGL_J0539.9-2839_daily_bin1048.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/710149/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1048.fits evtable="EVENTS" outfile="/scratch/kocevski/710149/ft1_filtered_4FGL_J0539.9-2839_daily_bin1048.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.47
user 0.31
sys 1.10

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/710149/ft1_filtered_4FGL_J0539.9-2839_daily_bin1048.fits" evtable="EVENTS" scfile=/scratch/kocevski/710149/ft2_4FGL_J0539.9-2839_daily_bin1048.fits sctable="SC_DATA" outfile=/scratch/kocevski/710149/ltcube_510969601_511228801_4FGL_J0539.9-2839_daily_bin1048.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/710149/ft2_4FGL_J0539.9-2839_daily_bin1048.fits
.....................!
real 12.82
user 11.68
sys 1.06

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/710149/ft1_filtered_4FGL_J0539.9-2839_daily_bin1048.fits evtable="EVENTS" scfile=/scratch/kocevski/710149/ft2_4FGL_J0539.9-2839_daily_bin1048.fits sctable="SC_DATA" expcube=/scratch/kocevski/710149/ltcube_510969601_511228801_4FGL_J0539.9-2839_daily_bin1048.fits outfile=/scratch/kocevski/710149/expmap_510969601_511228801_4FGL_J0539.9-2839_daily_bin1048.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/710149/ltcube_510969601_511228801_4FGL_J0539.9-2839_daily_bin1048.fits
.....................!
real 191.43
user 184.79
sys 5.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/710149/ft1_filtered_4FGL_J0539.9-2839_daily_bin1048.fits scfile=/scratch/kocevski/710149/ft2_4FGL_J0539.9-2839_daily_bin1048.fits outfile=/scratch/kocevski/710149/cmap_510969601_511228801_4FGL_J0539.9-2839_daily_bin1048.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.19
user 0.37
sys 0.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/710149/ft1_filtered_4FGL_J0539.9-2839_daily_bin1048.fits scfile=/scratch/kocevski/710149/ft2_4FGL_J0539.9-2839_daily_bin1048.fits outfile=/scratch/kocevski/710149/cmap_HighResolution_510969601_511228801_4FGL_J0539.9-2839_daily_bin1048.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.19
user 0.36
sys 0.81

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/710149/ft1_filtered_4FGL_J0539.9-2839_daily_bin1048.fits evtable="EVENTS" scfile=/scratch/kocevski/710149/ft2_4FGL_J0539.9-2839_daily_bin1048.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/710149/Model_4FGL_J0539.9-2839_daily_bin1048.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/710149/ft1_filtered_4FGL_J0539.9-2839_daily_bin1048.fits.....................!
real 101.70
user 99.32
sys 2.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .83798       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7684       1.0000         .10000E-03   10000.    
     4 'norm      '    .57416       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    33.513       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5026       1.0000         .10000E-03   10000.    
     8 'norm      '    1.7217       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.047       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.7040       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.2547       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.7571       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.1163       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.982       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.0681       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.2867       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0623       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .99509       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=   8442.740     FROM MIGRAD    STATUS=CONVERGED    667 CALLS     3447 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    52.771       -.17102E-05** at limit **
   2  norm          .83714        1.7841       -.23113E-06   -.15893E-02
   3  Prefactor     2.7684        3.2600        .15280E-05   -.59071E-03
   4  norm          .57417        .18257       -.34135E-07    .12457E-03
   5  Prefactor     .10000E-03    18.213        .40287E-05** at limit **
   6  norm          33.503        96.457       -.16714E-04    .35608E-04
   7  Prefactor     4.5026        3.7141        .63306E-06   -.57822E-03
   8  norm          1.7218        1.6917       -.24789E-06   -.65738E-03
   9  Prefactor     14.046        27.437       -.19423E-05    .98038E-05
  10  Prefactor     .10000E-03    2.6996       -.15413E-06** at limit **
  11  Prefactor     8.7035        9.6257       -.11881E-06   -.61712E-04
  12  Prefactor     .10000E-03    2.4975       -.27307E-06** at limit **
  13  norm          .10000E-03    1.7768       -.75291E-07** at limit **
  14  Prefactor     .10000E-03    7.1394        .11247E-05** at limit **
  15  norm          3.2546        1.9296       -.42013E-07   -.44190E-03
  16  norm          .10000E-03    7.7766       -.38558E-05** at limit **
  17  Prefactor     2.7574        4.0780       -.46149E-06   -.48163E-03
  18  Prefactor     8.1151        73.790       -.41503E-05   -.12510E-03
  19  Prefactor     .10000E-03    11.210        .20067E-05** at limit **
  20  Prefactor     23.980        24.000       -.12664E-05    .14965E-04
  21  Prefactor     .10000E-03    17.582       -.12963E-05** at limit **
  22  norm          4.0681        3.5698        .95786E-07   -.21348E-03
  23  Prefactor     .10000E-03    3.2070        .13144E-06** at limit **
  24  Prefactor     2.2866        2.7605       -.52579E-06   -.14666E-02
  25  Prefactor     .10000E-03    8.9026        .41443E-05** at limit **
  26  norm          .10000E-03    12.246       -.52705E-05** at limit **
  27  Normalizat    1.0623        .16981        .39528E-06    .25392E-04
  28  Prefactor     .99508        .12694        .65388E-06    .22367E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.837143
  Prefactor  = 2.76844
  norm       = 0.574166
  Prefactor  = 0.0001
  norm       = 33.5031
  Prefactor  = 4.50263
  norm       = 1.72178
  Prefactor  = 14.0458
  Prefactor  = 0.0001
  Prefactor  = 8.70351
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.25458
  norm       = 0.0001
  Prefactor  = 2.75736
  Prefactor  = 8.11514
  Prefactor  = 0.0001
  Prefactor  = 23.9804
  Prefactor  = 0.0001
  norm       = 4.06812
  Prefactor  = 0.0001
  Prefactor  = 2.28657
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.06234
  Prefactor  = 0.995081
 **********
 **   18 **HESSE 
 **********

 FCN=   8442.740     FROM HESSE     STATUS=OK           523 CALLS     3970 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    52.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .83714        1.4778        .17528E-02   -1.5525    
   3  Prefactor     2.7684        3.1984        .17077E-03   -1.5375    
   4  norm          .57417        .18193        .21200E-04   -1.5556    
   5  Prefactor     .10000E-03    18.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          33.503        96.029        .69220E-04   -1.4550    
   7  Prefactor     4.5026        3.6684        .14750E-03   -1.5284    
   8  norm          1.7218        1.6788        .10996E-03   -1.5446    
   9  Prefactor     14.046        27.529        .10687E-03   -1.4958    
  10  Prefactor     .10000E-03    2.7244        .14726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.7035        9.6041        .13587E-03   -1.5118    
  12  Prefactor     .10000E-03    2.5002        .14180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.8003        .11951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.1343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.2546        1.9321        .91664E-04   -1.5347    
  16  norm          .10000E-03    7.8248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.7574        4.0822        .21659E-03   -1.5376    
  18  Prefactor     8.1151        76.192        .70365E-03   -1.5138    
  19  Prefactor     .10000E-03    11.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.980        24.045        .81796E-04   -1.4728    
  21  Prefactor     .10000E-03    17.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.0681        3.5637        .15594E-03   -1.5305    
  23  Prefactor     .10000E-03    3.2104        .16070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.2866        2.8262        .82905E-03   -1.5406    
  25  Prefactor     .10000E-03    8.8349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    12.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0623        .19833        .27541E-03   -.90970    
  28  Prefactor     .99508        .14830        .22304E-03   -.92894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29627e-09
Minuit parameter uncertainties:
  1  7.35329e-05
  2  1.47782
  3  3.19864
  4  0.18193
  5  0.00011089
  6  96.4766
  7  3.66859
  8  1.67888
  9  27.5538
  10  9.13705e-06
  11  9.60576
  12  1.65168e-06
  13  2.05826e-06
  14  2.1648e-05
  15  1.9321
  16  7.95157e-05
  17  4.08259
  18  49.8151
  19  4.17312e-05
  20  24.0546
  21  4.97665e-05
  22  3.56393
  23  1.0402e-06
  24  2.82639
  25  7.78924e-05
  26  0.000108348
  27  0.198469
  28  0.148356
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  3.255e+00  1.932e+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.951e-01  1.484e-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.062e+00  1.985e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.47
Ra Dec: 84.995 -28.659
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 6.85e-08 +/- 4.07e-08
Energy Flux (Fixed Index): 1.61e-05 +/- 9.57e-06

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) = 8442.73488083
delta logL = 0.00548752554641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8442.73339669
delta logL = 0.00697167086582

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1588       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7606       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0583       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99751       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=   8442.733     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      239 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1587        2.1213        .89682E-04    .13688E-02
   2  alpha         2.7607        .72873        .19882E-01    .62620E-04
   3  Normalizat    1.0583        .18989        .27588E-03   -.70303E-04
   4  Prefactor     .99751        .14665        .22281E-03   -.10378E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.15871
  alpha      = 2.76074
  Normalizat = 1.0583
  Prefactor  = 0.997505
 **********
 **   18 **HESSE 
 **********

 FCN=   8442.733     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1587        2.0633        .35873E-05   -1.5352    
   2  alpha         2.7607        .70874        .79527E-03    .10448    
   3  Normalizat    1.0583        .19013        .11035E-04   -.91102    
   4  Prefactor     .99751        .14675        .89125E-05   -.92813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1644e-10
Minuit parameter uncertainties:
  1  2.06331
  2  0.718709
  3  0.19025
  4  0.14681
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/710149': 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) = 8442.73339667
delta logL = 0.00697168238003

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  3.159e+00  2.063e+00  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  2.761e+00  7.187e-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:  9.975e-01  1.468e-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  1.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.47
Ra Dec: 84.995 -28.659
Photon Index (Free Index): 2.76 +/- 0.72
Photon Flux (Free Index): 7.09e-08 +/- 4.56e-08
Energy Flux (Free Index): 1.59e-05 +/- 9.48e-06

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/710149/cmap_HighResolution_510969601_511228801_4FGL_J0539.9-2839_daily_bin1048.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.85e-08', energy_flux2='1.59e-05', photon_flux_error='4.07e-08', dlogl='6.97e-03', energy_flux='1.61e-05', photon_flux2='7.09e-08', job_status='DONE', time_completed='2021-08-23 14:56:30.184460', photon_index_error2='0.72', photon_index2='2.76', ts='4.47', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='9.48e-06', EG='1.06', time_epoch_completed='1629755790.18', return_code='0', job_id='710149', GAL2='1.00', EG2='1.06', return_code2='0', energy_flux_error='9.57e-06', photon_flux_error2='4.56e-08', ts2='4.47', photon_index='2.68' WHERE bin_id='1048' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 14:56:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 710149: <4FGL_J0539.9-2839_daily_bin1048> in cluster <slac> Done

Job <4FGL_J0539.9-2839_daily_bin1048> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 23 14:40:31 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 14:40:32 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:32 2021
Terminated at Mon Aug 23 14:56:30 2021
Results reported at Mon Aug 23 14:56:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin1048 84.9952 -28.6585 510969601 511228801 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 :                                   852.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            959 sec.

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

