/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 3 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 = 7433
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0539.9-2839_daily_bin422
RA = 84.9952, Dec = -28.6585
tmin = 348710401, tmax = 348969601
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='705869', job_status='RUN', time_executed='2021-08-23 14:27:05.142620', time_epoch_executed='1629754025.14' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='422'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/705869

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/705869/ft1_4FGL_J0539.9-2839_daily_bin422.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/705869/ft2_4FGL_J0539.9-2839_daily_bin422.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/705869/ft1_4FGL_J0539.9-2839_daily_bin422.fits outfile=/scratch/kocevski/705869/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin422.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=348710401.0 tmax=348969601.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 7.94
user 3.21
sys 4.67

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/705869/ft2_4FGL_J0539.9-2839_daily_bin422.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/705869/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin422.fits evtable="EVENTS" outfile="/scratch/kocevski/705869/ft1_filtered_4FGL_J0539.9-2839_daily_bin422.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 4.98
user 0.34
sys 4.58

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/705869/ft1_filtered_4FGL_J0539.9-2839_daily_bin422.fits" evtable="EVENTS" scfile=/scratch/kocevski/705869/ft2_4FGL_J0539.9-2839_daily_bin422.fits sctable="SC_DATA" outfile=/scratch/kocevski/705869/ltcube_348710401_348969601_4FGL_J0539.9-2839_daily_bin422.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/705869/ft2_4FGL_J0539.9-2839_daily_bin422.fits
.....................!
real 17.09
user 11.77
sys 5.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/705869/ft1_filtered_4FGL_J0539.9-2839_daily_bin422.fits evtable="EVENTS" scfile=/scratch/kocevski/705869/ft2_4FGL_J0539.9-2839_daily_bin422.fits sctable="SC_DATA" expcube=/scratch/kocevski/705869/ltcube_348710401_348969601_4FGL_J0539.9-2839_daily_bin422.fits outfile=/scratch/kocevski/705869/expmap_348710401_348969601_4FGL_J0539.9-2839_daily_bin422.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/705869/ltcube_348710401_348969601_4FGL_J0539.9-2839_daily_bin422.fits
.....................!
real 195.64
user 185.52
sys 9.58

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/705869/ft1_filtered_4FGL_J0539.9-2839_daily_bin422.fits scfile=/scratch/kocevski/705869/ft2_4FGL_J0539.9-2839_daily_bin422.fits outfile=/scratch/kocevski/705869/cmap_348710401_348969601_4FGL_J0539.9-2839_daily_bin422.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=84.9952 yref=-28.6585 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 4.97
user 0.38
sys 4.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/705869/ft1_filtered_4FGL_J0539.9-2839_daily_bin422.fits scfile=/scratch/kocevski/705869/ft2_4FGL_J0539.9-2839_daily_bin422.fits outfile=/scratch/kocevski/705869/cmap_HighResolution_348710401_348969601_4FGL_J0539.9-2839_daily_bin422.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=84.9952 yref=-28.6585 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 4.94
user 0.39
sys 4.44

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/705869/ft1_filtered_4FGL_J0539.9-2839_daily_bin422.fits evtable="EVENTS" scfile=/scratch/kocevski/705869/ft2_4FGL_J0539.9-2839_daily_bin422.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/705869/Model_4FGL_J0539.9-2839_daily_bin422.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/705869/ft1_filtered_4FGL_J0539.9-2839_daily_bin422.fits.....................!
real 88.92
user 81.15
sys 7.04

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    30.331       1.0000         .10000E-03   10000.    
     2 'norm      '    5.3110       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .50408       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10720E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .67649       1.0000         .10000E-03   10000.    
     8 'norm      '    13.429       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .53740E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.445       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    40.636       1.0000         .10000E-03   10000.    
    15 'norm      '    5.7390       1.0000         .10000E-03   10000.    
    16 'norm      '    2.7276       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.1697       1.0000         .10000E-03   10000.    
    18 'Prefactor '    38.953       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.6735       1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.069       1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.864       1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.055       1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .28126       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.4376       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=   7361.397     FROM MIGRAD    STATUS=CONVERGED    708 CALLS     3593 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          30.248        115.67        .97762E-05   -.33600E-04
   2  norm          5.3123        3.8816       -.45563E-07   -.20094E-04
   3  Prefactor     .10000E-03    3.3402        .49517E-07** at limit **
   4  norm          .50412        .20731        .21209E-08   -.60521E-04
   5  Prefactor     .10000E-03    83.738       -.24946E-05** at limit **
   6  norm          .10000E-03    45.689        .11952E-05** at limit **
   7  Prefactor     .67436        1.9030       -.16520E-06   -.27260E-03
   8  norm          13.427        3.0603        .79402E-07    .59094E-03
   9  Prefactor     .10000E-03    7.1289        .84327E-08** at limit **
  10  Prefactor     .10002E-03    5.1285       -.79667E-06** at limit **
  11  Prefactor     .10000E-03    5.3469       -.15321E-07** at limit **
  12  Prefactor     10.446        7.6368        .50786E-08    .11562E-04
  13  norm          .10000E-03    1.9756        .28760E-07** at limit **
  14  Prefactor     40.544        29.107        .26607E-05    .15465E-03
  15  norm          5.7398        2.1832        .15836E-08    .18841E-05
  16  norm          2.7275        9.2626        .31821E-05   -.88912E-04
  17  Prefactor     7.1713        6.5070       -.21498E-06    .20701E-04
  18  Prefactor     38.952        70.542        .20039E-06   -.13839E-05
  19  Prefactor     .10000E-03    13.109       -.15783E-06** at limit **
  20  Prefactor     .10000E-03    12.631        .15391E-06** at limit **
  21  Prefactor     .10000E-03    19.298        .26667E-06** at limit **
  22  norm          5.6740        4.3581        .63163E-07   -.22568E-04
  23  Prefactor     18.071        17.180        .10540E-06   -.65625E-05
  24  Prefactor     14.864        6.4740       -.14056E-07    .69183E-05
  25  Prefactor     12.056        13.344        .37557E-07   -.48057E-05
  26  norm          .10000E-03    30.433        .26708E-07** at limit **
  27  Normalizat    .28105        .24309        .13632E-05    .55270E-04
  28  Prefactor     1.4377        .18817       -.61718E-06    .13060E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 30.2481
  norm       = 5.31226
  Prefactor  = 0.0001
  norm       = 0.504119
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.674363
  norm       = 13.4275
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 10.4457
  norm       = 0.0001
  Prefactor  = 40.5437
  norm       = 5.73982
  norm       = 2.72752
  Prefactor  = 7.17129
  Prefactor  = 38.9524
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.67398
  Prefactor  = 18.0706
  Prefactor  = 14.8645
  Prefactor  = 12.0564
  norm       = 0.0001
  Normalizat = 0.281053
  Prefactor  = 1.43767
 **********
 **   18 **HESSE 
 **********

 FCN=   7361.397     FROM HESSE     STATUS=OK           525 CALLS     4118 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          30.248        113.30        .72751E-04   -1.4607    
   2  norm          5.3123        3.8211        .13355E-03   -1.5247    
   3  Prefactor     .10000E-03    3.3794        .15297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .50412        .20478        .23954E-04   -1.5566    
   5  Prefactor     .10000E-03    83.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    45.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .67436        1.6160        .18941E-02   -1.5544    
   8  norm          13.427        2.9941        .66007E-04   -1.4975    
   9  Prefactor     .10000E-03    7.1322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    29.063        .34243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.3563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.446        7.6245        .12398E-03   -1.5061    
  13  norm          .10000E-03    1.9969        .11757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     40.544        28.276        .62881E-04   -1.4434    
  15  norm          5.7398        2.1493        .72399E-04   -1.5229    
  16  norm          2.7275        9.1331        .12328E-02   -1.5378    
  17  Prefactor     7.1713        6.5007        .14981E-03   -1.5172    
  18  Prefactor     38.952        70.517        .64221E-04   -1.4459    
  19  Prefactor     .10000E-03    13.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.6740        4.3543        .14863E-03   -1.5232    
  23  Prefactor     18.071        17.192        .94223E-04   -1.4858    
  24  Prefactor     14.864        6.4780        .10389E-03   -1.4937    
  25  Prefactor     12.056        13.319        .11538E-03   -1.5013    
  26  norm          .10000E-03    30.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .28105        .21794        .50918E-03   -1.2398    
  28  Prefactor     1.4377        .17603        .19449E-03   -.79301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05814e-08
Minuit parameter uncertainties:
  1  114.118
  2  3.82127
  3  6.16358e-07
  4  0.204777
  5  0.000398439
  6  0.000113715
  7  1.61612
  8  2.99418
  9  1.13057e-08
  10  0.00135532
  11  7.4823e-06
  12  7.62525
  13  1.18183e-06
  14  28.2854
  15  2.14936
  16  9.13772
  17  6.50136
  18  70.6683
  19  9.53461e-06
  20  6.83115e-06
  21  1.62454e-05
  22  4.35456
  23  17.1971
  24  6.47834
  25  13.3221
  26  7.57389e-06
  27  0.218597
  28  0.176108
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  5.740e+00  2.149e+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.438e+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:  2.811e-01  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.57
Ra Dec: 84.995 -28.659
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 1.21e-07 +/- 4.52e-08
Energy Flux (Fixed Index): 2.84e-05 +/- 1.06e-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) = 7360.64153479
delta logL = 0.755545615221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7360.59063243
delta logL = 0.806447974464

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4737       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0989       1.0000          .0000       5.0000    
     3 'Normalizat'    .33563       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4034       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=   7360.591     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      212 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4704        2.8554        .39434E-02    .18083E-02
   2  alpha         2.0989        .42363        .31160       -.23525E-04
   3  Normalizat    .33564        .20647        .10543       -.94062E-06
   4  Prefactor     1.4033        .16757        .44435E-01    .24501E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.47041
  alpha      = 2.0989
  Normalizat = 0.335644
  Prefactor  = 1.40331
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.591     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4704        2.5407        .80783E-04   -1.5199    
   2  alpha         2.0989        .41879        .12380E-01   -.16114    
   3  Normalizat    .33564        .20993        .46702E-03   -1.2077    
   4  Prefactor     1.4033        .16963        .19640E-03   -.80285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3045e-10
Minuit parameter uncertainties:
  1  2.54071
  2  0.420827
  3  0.210428
  4  0.169697
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/705869': 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) = 7360.59063127
delta logL = 0.806449131739

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  6.470e+00  2.541e+00  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  2.099e+00  4.208e-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.403e+00  1.697e-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:  3.356e-01  2.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.75
Ra Dec: 84.995 -28.659
Photon Index (Free Index): 2.10 +/- 0.42
Photon Flux (Free Index): 9.41e-08 +/- 4.44e-08
Energy Flux (Free Index): 3.62e-05 +/- 1.63e-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/705869/cmap_HighResolution_348710401_348969601_4FGL_J0539.9-2839_daily_bin422.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.21e-07', energy_flux2='3.62e-05', photon_flux_error='4.52e-08', dlogl='8.06e-01', energy_flux='2.84e-05', photon_flux2='9.41e-08', job_status='DONE', time_completed='2021-08-23 14:41:09.214469', photon_index_error2='0.42', photon_index2='2.10', ts='16.57', fit_tolerance='1e-08', GAL='1.44', photon_index_error='0.00', energy_flux_error2='1.63e-05', EG='0.28', time_epoch_completed='1629754869.21', return_code='0', job_id='705869', GAL2='1.40', EG2='0.34', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='4.44e-08', ts2='17.75', photon_index='2.68' WHERE bin_id='422' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 14:41:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 705869: <4FGL_J0539.9-2839_daily_bin422> in cluster <slac> Done

Job <4FGL_J0539.9-2839_daily_bin422> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Aug 23 14:25:39 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 14:25:41 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:25:41 2021
Terminated at Mon Aug 23 14:41:10 2021
Results reported at Mon Aug 23 14:41:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin422 84.9952 -28.6585 348710401 348969601 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 :                                   912.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            931 sec.

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

