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


Performing analysis on: 4FGL_J0539.9-2839_daily_bin1160
RA = 84.9952, Dec = -28.6585
tmin = 540000001, tmax = 540259201
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='711497', job_status='RUN', time_executed='2021-08-23 14:45:59.307754', time_epoch_executed='1629755159.31' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1160'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/711497

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/711497/ft1_4FGL_J0539.9-2839_daily_bin1160.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/711497/ft2_4FGL_J0539.9-2839_daily_bin1160.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/711497/ft1_4FGL_J0539.9-2839_daily_bin1160.fits outfile=/scratch/kocevski/711497/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1160.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=540000001.0 tmax=540259201.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.89
user 3.46
sys 1.39

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/711497/ft2_4FGL_J0539.9-2839_daily_bin1160.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/711497/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1160.fits evtable="EVENTS" outfile="/scratch/kocevski/711497/ft1_filtered_4FGL_J0539.9-2839_daily_bin1160.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.70
user 0.35
sys 1.31

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/711497/ft1_filtered_4FGL_J0539.9-2839_daily_bin1160.fits" evtable="EVENTS" scfile=/scratch/kocevski/711497/ft2_4FGL_J0539.9-2839_daily_bin1160.fits sctable="SC_DATA" outfile=/scratch/kocevski/711497/ltcube_540000001_540259201_4FGL_J0539.9-2839_daily_bin1160.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/711497/ft2_4FGL_J0539.9-2839_daily_bin1160.fits
.....................!
real 16.83
user 15.12
sys 1.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/711497/ft1_filtered_4FGL_J0539.9-2839_daily_bin1160.fits evtable="EVENTS" scfile=/scratch/kocevski/711497/ft2_4FGL_J0539.9-2839_daily_bin1160.fits sctable="SC_DATA" expcube=/scratch/kocevski/711497/ltcube_540000001_540259201_4FGL_J0539.9-2839_daily_bin1160.fits outfile=/scratch/kocevski/711497/expmap_540000001_540259201_4FGL_J0539.9-2839_daily_bin1160.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/711497/ltcube_540000001_540259201_4FGL_J0539.9-2839_daily_bin1160.fits
.....................!
real 195.76
user 189.14
sys 6.14

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/711497/ft1_filtered_4FGL_J0539.9-2839_daily_bin1160.fits scfile=/scratch/kocevski/711497/ft2_4FGL_J0539.9-2839_daily_bin1160.fits outfile=/scratch/kocevski/711497/cmap_540000001_540259201_4FGL_J0539.9-2839_daily_bin1160.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.77
user 0.41
sys 1.32

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/711497/ft1_filtered_4FGL_J0539.9-2839_daily_bin1160.fits scfile=/scratch/kocevski/711497/ft2_4FGL_J0539.9-2839_daily_bin1160.fits outfile=/scratch/kocevski/711497/cmap_HighResolution_540000001_540259201_4FGL_J0539.9-2839_daily_bin1160.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.75
user 0.41
sys 1.30

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/711497/ft1_filtered_4FGL_J0539.9-2839_daily_bin1160.fits evtable="EVENTS" scfile=/scratch/kocevski/711497/ft2_4FGL_J0539.9-2839_daily_bin1160.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/711497/Model_4FGL_J0539.9-2839_daily_bin1160.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/711497/ft1_filtered_4FGL_J0539.9-2839_daily_bin1160.fits.....................!
real 70.86
user 67.59
sys 3.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.3104       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9986       1.0000         .10000E-03   10000.    
     4 'norm      '    .41364       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    24.808       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.2256       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.8332       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10392E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3300       1.0000         .10000E-03   10000.    
    14 'Prefactor '    69.051       1.0000         .10000E-03   10000.    
    15 'norm      '    .29311E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    48.110       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.0357       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.1692       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.9612       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.4855       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .89430       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=   5021.769     FROM MIGRAD    STATUS=CONVERGED    667 CALLS     3540 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    87.040       -.16865E-04** at limit **
   2  norm          1.3112        4.7798        .55399E-07   -.80645E-03
   3  Prefactor     4.9993        6.8220        .19420E-06   -.20736E-03
   4  norm          .41365        .23949        .84949E-07   -.60059E-03
   5  Prefactor     .10000E-03    24.822       -.12666E-05** at limit **
   6  norm          24.826        70.681        .30548E-04   -.29393E-05
   7  Prefactor     .10000E-03    2.5718       -.20826E-07** at limit **
   8  norm          5.2257        2.9982        .49150E-06    .76385E-04
   9  Prefactor     .10000E-03    27.067       -.14084E-04** at limit **
  10  Prefactor     8.8367        11.125        .39089E-05    .49805E-04
  11  Prefactor     .10000E-03    33.736       -.10712E-04** at limit **
  12  Prefactor     .10000E-03    16.861       -.17936E-05** at limit **
  13  norm          1.3298        5.5447       -.37395E-05   -.80538E-03
  14  Prefactor     69.037        52.167       -.11097E-04    .88123E-04
  15  norm          .10000E-03    1.3890        .46298E-06** at limit **
  16  norm          .10000E-03    3.9249        .13920E-06** at limit **
  17  Prefactor     .10000E-03    23.087        .60786E-05** at limit **
  18  Prefactor     .10000E-03    83.683        .61736E-06** at limit **
  19  Prefactor     48.132        74.185        .25453E-04   -.99678E-04
  20  Prefactor     5.0759        89.506        .99025E-04   -.30845E-04
  21  Prefactor     .10000E-03    32.642       -.17100E-04** at limit **
  22  norm          8.1694        10.327       -.20426E-05   -.27047E-03
  23  Prefactor     .10000E-03    9.8783       -.33918E-07** at limit **
  24  Prefactor     7.9620        8.0319       -.18875E-06   -.12658E-03
  25  Prefactor     .10000E-03    22.837        .13913E-04** at limit **
  26  norm          .10000E-03    44.033        .38808E-04** at limit **
  27  Normalizat    1.4853        .27339       -.61927E-05   -.17337E-03
  28  Prefactor     .89438        .18512       -.22090E-05   -.48093E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.31122
  Prefactor  = 4.99935
  norm       = 0.413649
  Prefactor  = 0.0001
  norm       = 24.8264
  Prefactor  = 0.0001
  norm       = 5.22571
  Prefactor  = 0.0001
  Prefactor  = 8.83669
  Prefactor  = 0.000100004
  Prefactor  = 0.000100002
  norm       = 1.32978
  Prefactor  = 69.037
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 48.1316
  Prefactor  = 5.07594
  Prefactor  = 0.000100004
  norm       = 8.16943
  Prefactor  = 0.0001
  Prefactor  = 7.96196
  Prefactor  = 0.000100002
  norm       = 0.000100002
  Normalizat = 1.48528
  Prefactor  = 0.894377
 **********
 **   18 **HESSE 
 **********

 FCN=   5021.769     FROM HESSE     STATUS=OK           513 CALLS     4053 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    87.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.3112        4.7829        .27717E-03   -1.5479    
   3  Prefactor     4.9993        6.8199        .17987E-03   -1.5261    
   4  norm          .41365        .23588        .25440E-04   -1.5579    
   5  Prefactor     .10000E-03    24.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          24.826        70.675        .80425E-04   -1.4711    
   7  Prefactor     .10000E-03    2.5929        .11089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.2257        2.9929        .88780E-04   -1.5251    
   9  Prefactor     .10000E-03    27.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.8367        11.117        .13486E-03   -1.5113    
  11  Prefactor     .10000E-03    33.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3298        5.5128        .31378E-03   -1.5477    
  14  Prefactor     69.037        52.006        .48305E-04   -1.4044    
  15  norm          .10000E-03    32.813        .15683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.9258        .13712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.942        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    83.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     48.132        74.209        .57812E-04   -1.4319    
  20  Prefactor     5.0759        87.959        .17919E-03   -1.5257    
  21  Prefactor     .10000E-03    32.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.1694        10.296        .14027E-03   -1.5136    
  23  Prefactor     .10000E-03    9.8912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.9620        8.0215        .14210E-03   -1.5144    
  25  Prefactor     .10000E-03    22.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    43.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.4853        .31785        .28489E-03   -.78193    
  28  Prefactor     .89438        .21877        .25742E-03   -.96338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13162e-09
Minuit parameter uncertainties:
  1  6.28039e-06
  2  4.78434
  3  6.82096
  4  0.23588
  5  9.17311e-06
  6  70.9151
  7  5.5538e-06
  8  2.99301
  9  9.22426e-05
  10  11.1195
  11  0.000768099
  12  0.000405529
  13  5.41578
  14  52.0404
  15  8.95127e-05
  16  3.73122e-06
  17  0.000225474
  18  2.4938e-05
  19  74.3523
  20  42.3324
  21  0.000750806
  22  10.2979
  23  4.83762e-06
  24  8.02258
  25  0.000458678
  26  0.000521291
  27  0.318274
  28  0.218986
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  1.000e-04  8.951e-05  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:  8.944e-01  2.190e-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.485e+00  3.183e-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: 1.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.57e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/711497/likelihoodResults_540000001_540259201_4FGL_J0539.9-2839_daily_bin1160.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) = 5021.7692804
delta logL = -0.000147114932588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5021.76914137
delta logL = -8.08514050732e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10731E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8759       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4854       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89472       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=   5021.769     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      248 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    82.979        .59789E-01** at limit **
   2  alpha         2.8599        3.9201        .41755        .44573E-05
   3  Normalizat    1.4853        .72645E-01    .64410E-01    .25155E-04
   4  Prefactor     .89438        .46830E-01    .44938E-01    .29226E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.85992
  Normalizat = 1.48527
  Prefactor  = 0.894382
 **********
 **   18 **HESSE 
 **********

 FCN=   5021.769     FROM HESSE     STATUS=OK            29 CALLS      277 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    22.237        .15528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8599        3.6237        .16702E-01    .14447    
   3  Normalizat    1.4853        .29121        .28489E-03   -.78193    
   4  Prefactor     .89438        .21191        .25742E-03   -.96338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55486e-11
Minuit parameter uncertainties:
  1  9.57312e-05
  2  2.47415
  3  0.29154
  4  0.212101
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/711497': 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) = 5021.76913398
delta logL = -7.00623786543e-07

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  1.000e-04  9.573e-05  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  2.860e+00  2.474e+00  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:  8.944e-01  2.121e-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.485e+00  2.915e-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/711497/cmap_HighResolution_540000001_540259201_4FGL_J0539.9-2839_daily_bin1160.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.57e-05', job_status='DONE', photon_flux_upper_limit='1.52e-07', time_completed='2021-08-23 14:58:01.468623', job_id='711497', GAL2='0.89', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1629755881.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='-7.01e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1160' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 14:58:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 711497: <4FGL_J0539.9-2839_daily_bin1160> in cluster <slac> Done

Job <4FGL_J0539.9-2839_daily_bin1160> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Aug 23 14:45:17 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 14:45:18 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:18 2021
Terminated at Mon Aug 23 14:58:02 2021
Results reported at Mon Aug 23 14:58:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin1160 84.9952 -28.6585 540000001 540259201 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 :                                   739.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            765 sec.

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

