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


Performing analysis on: 4FGL_J0539.9-2839_daily_bin1287
RA = 84.9952, Dec = -28.6585
tmin = 572918401, tmax = 573177601
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='711678', job_status='RUN', time_executed='2021-08-23 14:47:34.988035', time_epoch_executed='1629755254.99' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1287'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/711678

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/711678/ft1_4FGL_J0539.9-2839_daily_bin1287.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/711678/ft2_4FGL_J0539.9-2839_daily_bin1287.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/711678/ft1_4FGL_J0539.9-2839_daily_bin1287.fits outfile=/scratch/kocevski/711678/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1287.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=572918401.0 tmax=573177601.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 8.22
user 4.62
sys 3.46

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/711678/ft2_4FGL_J0539.9-2839_daily_bin1287.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/711678/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1287.fits evtable="EVENTS" outfile="/scratch/kocevski/711678/ft1_filtered_4FGL_J0539.9-2839_daily_bin1287.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 3.91
user 0.33
sys 3.51

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/711678/ft1_filtered_4FGL_J0539.9-2839_daily_bin1287.fits" evtable="EVENTS" scfile=/scratch/kocevski/711678/ft2_4FGL_J0539.9-2839_daily_bin1287.fits sctable="SC_DATA" outfile=/scratch/kocevski/711678/ltcube_572918401_573177601_4FGL_J0539.9-2839_daily_bin1287.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/711678/ft2_4FGL_J0539.9-2839_daily_bin1287.fits
.....................!
real 16.03
user 11.42
sys 4.04

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/711678/ft1_filtered_4FGL_J0539.9-2839_daily_bin1287.fits evtable="EVENTS" scfile=/scratch/kocevski/711678/ft2_4FGL_J0539.9-2839_daily_bin1287.fits sctable="SC_DATA" expcube=/scratch/kocevski/711678/ltcube_572918401_573177601_4FGL_J0539.9-2839_daily_bin1287.fits outfile=/scratch/kocevski/711678/expmap_572918401_573177601_4FGL_J0539.9-2839_daily_bin1287.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/711678/ltcube_572918401_573177601_4FGL_J0539.9-2839_daily_bin1287.fits
.....................!
real 194.17
user 185.29
sys 8.35

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/711678/ft1_filtered_4FGL_J0539.9-2839_daily_bin1287.fits scfile=/scratch/kocevski/711678/ft2_4FGL_J0539.9-2839_daily_bin1287.fits outfile=/scratch/kocevski/711678/cmap_572918401_573177601_4FGL_J0539.9-2839_daily_bin1287.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 3.74
user 0.37
sys 3.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/711678/ft1_filtered_4FGL_J0539.9-2839_daily_bin1287.fits scfile=/scratch/kocevski/711678/ft2_4FGL_J0539.9-2839_daily_bin1287.fits outfile=/scratch/kocevski/711678/cmap_HighResolution_572918401_573177601_4FGL_J0539.9-2839_daily_bin1287.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 3.82
user 0.38
sys 3.41

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/711678/ft1_filtered_4FGL_J0539.9-2839_daily_bin1287.fits evtable="EVENTS" scfile=/scratch/kocevski/711678/ft2_4FGL_J0539.9-2839_daily_bin1287.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/711678/Model_4FGL_J0539.9-2839_daily_bin1287.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/711678/ft1_filtered_4FGL_J0539.9-2839_daily_bin1287.fits.....................!
real 77.32
user 71.57
sys 5.53

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    260.88       1.0000         .10000E-03   10000.    
     2 'norm      '    2.5571       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14763E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .84901       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    131.16       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2964       1.0000         .10000E-03   10000.    
     8 'norm      '    3.3608       1.0000         .10000E-03   10000.    
     9 'Prefactor '    66.056       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.5613       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.274       1.0000         .10000E-03   10000.    
    15 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.855       1.0000         .10000E-03   10000.    
    19 'Prefactor '    60.634       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      '    4.2212       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.008       1.0000         .10000E-03   10000.    
    26 'norm      '    61.635       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .79337       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2210       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=   6166.083     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     3477 TOTAL
                     EDM=   .62E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          260.87        277.68        .10784E-06   -.26312E-05
   2  norm          2.5578        3.0577        .41228E-08    .40836E-04
   3  Prefactor     .10000E-03    9.3263       -.51480E-06** at limit **
   4  norm          .84902        .30000        .15922E-07   -.72438E-04
   5  Prefactor     .10000E-03    27.149       -.92877E-07** at limit **
   6  norm          131.15        117.36        .20029E-06   -.36139E-05
   7  Prefactor     1.2958        4.4430        .97449E-06   -.74025E-04
   8  norm          3.3613        2.6129       -.28289E-06   -.15721E-03
   9  Prefactor     66.060        41.218        .21606E-06    .22513E-04
  10  Prefactor     .10000E-03    2.6791       -.20718E-06** at limit **
  11  Prefactor     6.5613        14.540        .43447E-05   -.58430E-04
  12  Prefactor     .10000E-03    5.6740       -.88444E-08** at limit **
  13  norm          .10000E-03    2.9825       -.10394E-06** at limit **
  14  Prefactor     12.274        25.106       -.13976E-05   -.12180E-04
  15  norm          .10000E-03    1.1851        .63573E-07** at limit **
  16  norm          .10000E-03    5.4790       -.47445E-07** at limit **
  17  Prefactor     .10000E-03    2.7486        .30327E-06** at limit **
  18  Prefactor     26.896        57.076        .14746E-05    .81478E-04
  19  Prefactor     60.631        36.835        .24730E-07   -.20225E-04
  20  Prefactor     .10000E-03    8.5393       -.12604E-06** at limit **
  21  Prefactor     .10000E-03    12.569        .13228E-06** at limit **
  22  norm          4.2214        6.1653        .52189E-06   -.18760E-04
  23  Prefactor     .10000E-03    7.0258        .39398E-06** at limit **
  24  Prefactor     .10000E-03    2.2916       -.47626E-07** at limit **
  25  Prefactor     13.008        21.922        .29491E-06   -.94293E-05
  26  norm          61.633        36.024        .13121E-06   -.18347E-04
  27  Normalizat    .79346        .22367       -.56104E-06   -.23076E-04
  28  Prefactor     1.2209        .16869       -.44803E-06   -.23715E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 260.867
  norm       = 2.55779
  Prefactor  = 0.0001
  norm       = 0.849019
  Prefactor  = 0.0001
  norm       = 131.154
  Prefactor  = 1.29575
  norm       = 3.36126
  Prefactor  = 66.0605
  Prefactor  = 0.0001
  Prefactor  = 6.56127
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.2739
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.8963
  Prefactor  = 60.6315
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.22144
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0079
  norm       = 61.6331
  Normalizat = 0.793461
  Prefactor  = 1.22093
 **********
 **   18 **HESSE 
 **********

 FCN=   6166.083     FROM HESSE     STATUS=OK           511 CALLS     3988 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          260.87        277.67        .12547E-03   -1.2463    
   2  norm          2.5578        3.0517        .14398E-03   -1.5388    
   3  Prefactor     .10000E-03    9.6848        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .84902        .29900        .24534E-04   -1.5524    
   5  Prefactor     .10000E-03    27.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          131.15        117.42        .35159E-04   -1.3412    
   7  Prefactor     1.2958        4.3558        .27474E-03   -1.5480    
   8  norm          3.3613        2.5885        .10070E-03   -1.5341    
   9  Prefactor     66.060        41.447        .49381E-04   -1.4081    
  10  Prefactor     .10000E-03    2.6985        .12571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.5613        14.498        .78335E-03   -1.5196    
  12  Prefactor     .10000E-03    5.7060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.0273        .13229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.274        25.099        .11434E-03   -1.5007    
  15  norm          .10000E-03    1.2243        .16661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.5028        .17953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.7638        .12713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     26.896        57.536        .77305E-04   -1.4670    
  19  Prefactor     60.631        36.829        .51527E-04   -1.4149    
  20  Prefactor     .10000E-03    8.5473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.2214        6.1494        .19613E-03   -1.5297    
  23  Prefactor     .10000E-03    7.0403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.2973        .11602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     13.008        21.911        .11106E-03   -1.4986    
  26  norm          61.633        36.040        .51110E-04   -1.4136    
  27  Normalizat    .79346        .25405        .33478E-03   -1.0031    
  28  Prefactor     1.2209        .19272        .21514E-03   -.85690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26478e-10
Minuit parameter uncertainties:
  1  279.094
  2  3.05192
  3  1.80913e-05
  4  0.299
  5  3.38909e-05
  6  117.625
  7  4.35685
  8  2.58858
  9  41.4649
  10  1.66071e-05
  11  14.5061
  12  6.14488e-06
  13  3.52939e-06
  14  25.1209
  15  1.80662e-06
  16  1.16541e-05
  17  3.31019e-06
  18  57.6551
  19  36.843
  20  2.18342e-05
  21  6.01023e-05
  22  6.15033
  23  3.26361e-05
  24  1.6618e-06
  25  21.9248
  26  36.0524
  27  0.25443
  28  0.192836
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  1.000e-04  1.807e-06  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.221e+00  1.928e-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:  7.935e-01  2.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 84.995 -28.659
Photon Flux Upper Limit: 8.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.98e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/711678/likelihoodResults_572918401_573177601_4FGL_J0539.9-2839_daily_bin1287.txt

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) = 6166.08640595
delta logL = -0.00387874644821

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6166.0825276
delta logL = -3.93371919927e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6748       1.0000          .0000       5.0000    
     3 'Normalizat'    .79352       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2210       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=   6166.083     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      233 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2341        .16666E-03** at limit **
   2  alpha         2.4998        3.7425        .16512E-01    .10190E-06
   3  Normalizat    .79346        .23847        .33478E-03    .49688E-03
   4  Prefactor     1.2209        .18734        .21514E-03    .89583E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.4998
  Normalizat = 0.793461
  Prefactor  = 1.22094
 **********
 **   18 **HESSE 
 **********

 FCN=   6166.083     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2340        .33331E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4998        3.7308        .66047E-03   -.78736E-04
   3  Normalizat    .79346        .23864        .66956E-04   -1.0031    
   4  Prefactor     1.2209        .18747        .43028E-04   -.85689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.2226e-10
Minuit parameter uncertainties:
  1  9.93969e-06
  2  216.424
  3  0.238951
  4  0.187576
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/711678': 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) = 6166.08252688
delta logL = 3.21686457028e-07

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  1.000e-04  9.940e-06  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  2.500e+00  2.164e+02  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.221e+00  1.876e-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:  7.935e-01  2.390e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 84.995 -28.659

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/711678/cmap_HighResolution_572918401_573177601_4FGL_J0539.9-2839_daily_bin1287.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.98e-05', job_status='DONE', photon_flux_upper_limit='8.42e-08', time_completed='2021-08-23 15:01:12.362838', job_id='711678', GAL2='1.22', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1629756072.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='3.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1287' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 15:01:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 711678: <4FGL_J0539.9-2839_daily_bin1287> in cluster <slac> Done

Job <4FGL_J0539.9-2839_daily_bin1287> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Aug 23 14:45:29 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 14:45:30 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:45:30 2021
Terminated at Mon Aug 23 15:01:13 2021
Results reported at Mon Aug 23 15:01:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin1287 84.9952 -28.6585 572918401 573177601 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 :                                   865.50 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            944 sec.

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

