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


Performing analysis on: 4FGL_J0539.9-2839_daily_bin1464
RA = 84.9952, Dec = -28.6585
tmin = 618796801, tmax = 619056001
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='713170', job_status='RUN', time_executed='2021-08-23 14:50:56.666151', time_epoch_executed='1629755456.67' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1464'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/713170

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/713170/ft1_4FGL_J0539.9-2839_daily_bin1464.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/713170/ft2_4FGL_J0539.9-2839_daily_bin1464.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/713170/ft1_4FGL_J0539.9-2839_daily_bin1464.fits outfile=/scratch/kocevski/713170/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1464.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=618796801.0 tmax=619056001.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 5.73
user 3.46
sys 1.05

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/713170/ft1_filtered_4FGL_J0539.9-2839_daily_bin1464.fits" evtable="EVENTS" scfile=/scratch/kocevski/713170/ft2_4FGL_J0539.9-2839_daily_bin1464.fits sctable="SC_DATA" outfile=/scratch/kocevski/713170/ltcube_618796801_619056001_4FGL_J0539.9-2839_daily_bin1464.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/713170/ft2_4FGL_J0539.9-2839_daily_bin1464.fits
.....................!
real 13.46
user 12.14
sys 1.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/713170/ft1_filtered_4FGL_J0539.9-2839_daily_bin1464.fits evtable="EVENTS" scfile=/scratch/kocevski/713170/ft2_4FGL_J0539.9-2839_daily_bin1464.fits sctable="SC_DATA" expcube=/scratch/kocevski/713170/ltcube_618796801_619056001_4FGL_J0539.9-2839_daily_bin1464.fits outfile=/scratch/kocevski/713170/expmap_618796801_619056001_4FGL_J0539.9-2839_daily_bin1464.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/713170/ltcube_618796801_619056001_4FGL_J0539.9-2839_daily_bin1464.fits
.....................!
real 191.59
user 185.18
sys 5.53

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/713170/ft1_filtered_4FGL_J0539.9-2839_daily_bin1464.fits scfile=/scratch/kocevski/713170/ft2_4FGL_J0539.9-2839_daily_bin1464.fits outfile=/scratch/kocevski/713170/cmap_618796801_619056001_4FGL_J0539.9-2839_daily_bin1464.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.36
user 0.38
sys 0.97

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/713170/ft1_filtered_4FGL_J0539.9-2839_daily_bin1464.fits scfile=/scratch/kocevski/713170/ft2_4FGL_J0539.9-2839_daily_bin1464.fits outfile=/scratch/kocevski/713170/cmap_HighResolution_618796801_619056001_4FGL_J0539.9-2839_daily_bin1464.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.40
user 0.37
sys 0.98

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/713170/ft1_filtered_4FGL_J0539.9-2839_daily_bin1464.fits evtable="EVENTS" scfile=/scratch/kocevski/713170/ft2_4FGL_J0539.9-2839_daily_bin1464.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/713170/Model_4FGL_J0539.9-2839_daily_bin1464.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/713170/ft1_filtered_4FGL_J0539.9-2839_daily_bin1464.fits.....................!
real 88.33
user 85.74
sys 2.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.4386       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.7077       1.0000         .10000E-03   10000.    
     4 'norm      '    1.5455       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    59.998       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.3156       1.0000         .10000E-03   10000.    
     8 'norm      '    .10186E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    41.820       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.119       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .12283E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.1590       1.0000         .10000E-03   10000.    
    16 'norm      '    8.8969       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.5678       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.3469       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.4331       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.859       1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.522       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.9920       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1980       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .83825       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=   7639.908     FROM MIGRAD    STATUS=CONVERGED    682 CALLS     3506 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    81.888       -.61387E-05** at limit **
   2  norm          4.4399        3.6791       -.10760E-07   -.25129E-03
   3  Prefactor     8.7130        6.4030       -.12839E-06   -.14614E-03
   4  norm          1.5457        .29768        .17171E-07   -.50935E-05
   5  Prefactor     .10000E-03    17.591        .74454E-05** at limit **
   6  norm          59.998        57.995        .24117E-07   -.35907E-06
   7  Prefactor     2.3160        2.6521       -.60945E-08   -.57076E-03
   8  norm          .10000E-03    .95519        .19887E-06** at limit **
   9  Prefactor     41.812        36.306       -.59423E-05    .51946E-05
  10  Prefactor     .10000E-03    3.0590        .81312E-07** at limit **
  11  Prefactor     15.123        15.501       -.15068E-05   -.23953E-03
  12  Prefactor     .10000E-03    4.6453        .66174E-08** at limit **
  13  norm          .10004E-03    2.0256       -.27190E-06** at limit **
  14  Prefactor     .10000E-03    28.372        .22020E-04** at limit **
  15  norm          1.1637        2.3034        .10400E-06   -.11134E-02
  16  norm          8.8964        9.2444       -.12657E-06   -.50901E-04
  17  Prefactor     .10000E-03    3.5620       -.21381E-06** at limit **
  18  Prefactor     5.5896        121.45        .67519E-04   -.12974E-05
  19  Prefactor     .10000E-03    25.016       -.75594E-05** at limit **
  20  Prefactor     8.3524        24.024        .37110E-05    .49956E-04
  21  Prefactor     .10000E-03    23.093       -.17917E-04** at limit **
  22  norm          2.4312        6.7424       -.62995E-06   -.77425E-03
  23  Prefactor     10.859        10.799       -.82466E-06   -.62324E-04
  24  Prefactor     11.527        8.1546        .84882E-06   -.11023E-04
  25  Prefactor     6.9937        11.958       -.30241E-06   -.15579E-04
  26  norm          .10000E-03    8.6214        .52724E-06** at limit **
  27  Normalizat    1.1971        .19959        .83467E-06   -.12484E-03
  28  Prefactor     .83879        .13839       -.18294E-05    .43017E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 4.43991
  Prefactor  = 8.713
  norm       = 1.54567
  Prefactor  = 0.0001
  norm       = 59.9975
  Prefactor  = 2.31603
  norm       = 0.0001
  Prefactor  = 41.8122
  Prefactor  = 0.0001
  Prefactor  = 15.1229
  Prefactor  = 0.0001
  norm       = 0.000100041
  Prefactor  = 0.0001
  norm       = 1.16372
  norm       = 8.89638
  Prefactor  = 0.0001
  Prefactor  = 5.58961
  Prefactor  = 0.0001
  Prefactor  = 8.35241
  Prefactor  = 0.0001
  norm       = 2.4312
  Prefactor  = 10.8595
  Prefactor  = 11.5267
  Prefactor  = 6.99369
  norm       = 0.0001
  Normalizat = 1.1971
  Prefactor  = 0.838795
 **********
 **   18 **HESSE 
 **********

 FCN=   7639.908     FROM HESSE     STATUS=OK           527 CALLS     4033 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    81.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.4399        3.6762        .14492E-03   -1.5287    
   3  Prefactor     8.7130        6.4318        .13584E-03   -1.5118    
   4  norm          1.5457        .29797        .20120E-04   -1.5459    
   5  Prefactor     .10000E-03    17.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          59.998        57.995        .51798E-04   -1.4157    
   7  Prefactor     2.3160        2.6302        .14597E-03   -1.5404    
   8  norm          .10000E-03    2.4420        .16377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     41.812        36.197        .61988E-04   -1.4414    
  10  Prefactor     .10000E-03    3.0757        .14909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.123        15.427        .10301E-03   -1.4930    
  12  Prefactor     .10000E-03    4.6539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10004E-03    12.848        .23320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    28.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.1637        2.2865        .16471E-03   -1.5492    
  16  norm          8.8964        9.2510        .13438E-03   -1.5111    
  17  Prefactor     .10000E-03    3.6233        .16103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.5896        120.01        .17026E-03   -1.5235    
  19  Prefactor     .10000E-03    25.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.3524        24.046        .13876E-03   -1.5130    
  21  Prefactor     .10000E-03    23.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.4312        6.6025        .26233E-03   -1.5396    
  23  Prefactor     10.859        10.785        .12158E-03   -1.5049    
  24  Prefactor     11.527        8.0086        .11802E-03   -1.5029    
  25  Prefactor     6.9937        11.946        .15172E-03   -1.5179    
  26  norm          .10000E-03    8.6279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1971        .23315        .27429E-03   -.86692    
  28  Prefactor     .83879        .16281        .24325E-03   -.98314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11977e-09
Minuit parameter uncertainties:
  1  4.516e-06
  2  3.67637
  3  6.43234
  4  0.297967
  5  2.16947e-06
  6  58.0496
  7  2.63033
  8  3.42121e-05
  9  36.2155
  10  9.53126e-06
  11  15.4307
  12  9.752e-06
  13  0.00145048
  14  6.46196e-05
  15  2.28666
  16  9.25249
  17  4.74935e-05
  18  51.9183
  19  4.22149e-05
  20  24.0741
  21  3.11586e-05
  22  6.60443
  23  10.7874
  24  8.00931
  25  11.9503
  26  6.36203e-07
  27  0.233352
  28  0.162909
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  1.164e+00  2.287e+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:  8.388e-01  1.629e-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.197e+00  2.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.34
Ra Dec: 84.995 -28.659
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.83e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/713170/likelihoodResults_618796801_619056001_4FGL_J0539.9-2839_daily_bin1464.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) = 7638.37998154
delta logL = 1.52818149578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7638.35717506
delta logL = 1.55098798288

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .46568       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0860       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89730       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=   7638.357     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      291 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .46568        8.6471        .78515E-02    .15243E-02
   2  alpha         5.0000        3.7693        .46267    ** at limit **
   3  Normalizat    1.0860        .15494        .64643E-01   -.21488E-04
   4  Prefactor     .89730        .85864E-01    .44971E-01   -.44903E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.46568
  alpha      = 5
  Normalizat = 1.08602
  Prefactor  = 0.897303
 **********
 **   18 **HESSE 
 **********

 FCN=   7638.357     FROM HESSE     STATUS=OK            35 CALLS      326 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .46568        .30153        .35631E-03   -1.5571    
   2  alpha         5.0000        3.2376        .67445E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0860        .22019        .28595E-03   -.90202    
   4  Prefactor     .89730        .16232        .23613E-03   -.96235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43529e-11
Minuit parameter uncertainties:
  1  0.301533
  2  8.65117e-06
  3  0.220373
  4  0.162409
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/713170': 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) = 7638.35717505
delta logL = 1.55098798837

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  4.657e-01  3.015e-01  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  5.000e+00  8.651e-06  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.973e-01  1.624e-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.086e+00  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.79
Ra Dec: 84.995 -28.659
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 9.54e-08 +/- 6.14e-08
Energy Flux (Free Index): 1.29e-05 +/- 8.32e-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/713170/cmap_HighResolution_618796801_619056001_4FGL_J0539.9-2839_daily_bin1464.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.83e-05', comment='SUCCESS', energy_flux2='1.29e-05', dlogl='1.55e+00', photon_flux2='9.54e-08', job_status='DONE', time_completed='2021-08-23 15:06:12.092097', photon_index_error2='0.00', photon_index2='5.00', ts='0.34', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='8.32e-06', EG='1.20', time_epoch_completed='1629756372.09', return_code='0', job_id='713170', GAL2='0.90', EG2='1.09', return_code2='0', photon_flux_error2='6.14e-08', ts2='3.79', photon_index='2.68' WHERE bin_id='1464' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 15:06:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 713170: <4FGL_J0539.9-2839_daily_bin1464> in cluster <slac> Done

Job <4FGL_J0539.9-2839_daily_bin1464> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 23 14:50:22 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 14:50:23 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:50:23 2021
Terminated at Mon Aug 23 15:06:12 2021
Results reported at Mon Aug 23 15:06:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin1464 84.9952 -28.6585 618796801 619056001 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 :                                   923.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            950 sec.

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

