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


Performing analysis on: 4FGL_J0539.9-2839_daily_bin1039
RA = 84.9952, Dec = -28.6585
tmin = 508636801, tmax = 508896001
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='710136', job_status='RUN', time_executed='2021-08-23 14:40:46.785540', time_epoch_executed='1629754846.79' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1039'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/710136

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/710136/ft1_4FGL_J0539.9-2839_daily_bin1039.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/710136/ft2_4FGL_J0539.9-2839_daily_bin1039.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/710136/ft1_4FGL_J0539.9-2839_daily_bin1039.fits outfile=/scratch/kocevski/710136/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1039.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=508636801.0 tmax=508896001.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 3.99
user 3.49
sys 0.48

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/710136/ft1_filtered_4FGL_J0539.9-2839_daily_bin1039.fits" evtable="EVENTS" scfile=/scratch/kocevski/710136/ft2_4FGL_J0539.9-2839_daily_bin1039.fits sctable="SC_DATA" outfile=/scratch/kocevski/710136/ltcube_508636801_508896001_4FGL_J0539.9-2839_daily_bin1039.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/710136/ft2_4FGL_J0539.9-2839_daily_bin1039.fits
.....................!
real 12.17
user 11.39
sys 0.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/710136/ft1_filtered_4FGL_J0539.9-2839_daily_bin1039.fits evtable="EVENTS" scfile=/scratch/kocevski/710136/ft2_4FGL_J0539.9-2839_daily_bin1039.fits sctable="SC_DATA" expcube=/scratch/kocevski/710136/ltcube_508636801_508896001_4FGL_J0539.9-2839_daily_bin1039.fits outfile=/scratch/kocevski/710136/expmap_508636801_508896001_4FGL_J0539.9-2839_daily_bin1039.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/710136/ltcube_508636801_508896001_4FGL_J0539.9-2839_daily_bin1039.fits
.....................!
real 191.08
user 186.06
sys 4.63

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/710136/ft1_filtered_4FGL_J0539.9-2839_daily_bin1039.fits scfile=/scratch/kocevski/710136/ft2_4FGL_J0539.9-2839_daily_bin1039.fits outfile=/scratch/kocevski/710136/cmap_508636801_508896001_4FGL_J0539.9-2839_daily_bin1039.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 0.88
user 0.37
sys 0.48

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/710136/ft1_filtered_4FGL_J0539.9-2839_daily_bin1039.fits scfile=/scratch/kocevski/710136/ft2_4FGL_J0539.9-2839_daily_bin1039.fits outfile=/scratch/kocevski/710136/cmap_HighResolution_508636801_508896001_4FGL_J0539.9-2839_daily_bin1039.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 0.87
user 0.35
sys 0.51

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/710136/ft1_filtered_4FGL_J0539.9-2839_daily_bin1039.fits evtable="EVENTS" scfile=/scratch/kocevski/710136/ft2_4FGL_J0539.9-2839_daily_bin1039.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/710136/Model_4FGL_J0539.9-2839_daily_bin1039.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/710136/ft1_filtered_4FGL_J0539.9-2839_daily_bin1039.fits.....................!
real 74.74
user 72.96
sys 1.55

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    103.65       1.0000         .10000E-03   10000.    
     2 'norm      '    1.4699       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .30244       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    148.80       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2186       1.0000         .10000E-03   10000.    
     8 'norm      '    8.8781       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.915       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12118E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.4998       1.0000         .10000E-03   10000.    
    14 'Prefactor '    43.463       1.0000         .10000E-03   10000.    
    15 'norm      '    3.0040       1.0000         .10000E-03   10000.    
    16 'norm      '    2.8793       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .72790       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.209       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    17.730       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.9462       1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.951       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    15.022       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0381       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .88315       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=   5975.583     FROM MIGRAD    STATUS=CONVERGED    693 CALLS     3535 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          103.66        189.64        .70695E-06    .17921E-04
   2  norm          1.4685        3.3518       -.46898E-06    .10800E-03
   3  Prefactor     .10000E-03    2.2609       -.24395E-06** at limit **
   4  norm          .30241        .20023       -.26571E-07    .16044E-02
   5  Prefactor     .10000E-03    36.561       -.16964E-06** at limit **
   6  norm          148.71        107.44        .21241E-06   -.85724E-04
   7  Prefactor     3.2176        4.2850       -.48881E-07    .37079E-03
   8  norm          8.8775        3.1636       -.53695E-07    .70174E-03
   9  Prefactor     17.903        37.714       -.72832E-06    .52455E-04
  10  Prefactor     .10003E-03    6.7920        .42463E-05** at limit **
  11  Prefactor     .10000E-03    3.1308       -.25314E-07** at limit **
  12  Prefactor     .10000E-03    4.5608        .17543E-07** at limit **
  13  norm          3.4985        5.3533       -.41222E-06    .25798E-03
  14  Prefactor     43.458        28.592        .37255E-06    .20852E-03
  15  norm          3.0032        2.4252       -.17345E-06    .28759E-03
  16  norm          2.8845        8.3791        .14664E-05   -.28105E-06
  17  Prefactor     .68775        29.371       -.19576E-04    .62858E-04
  18  Prefactor     11.414        174.12        .68033E-05   -.11880E-04
  19  Prefactor     .10000E-03    38.777       -.11998E-05** at limit **
  20  Prefactor     .10001E-03    49.888       -.27408E-05** at limit **
  21  Prefactor     .10000E-03    34.700       -.83229E-06** at limit **
  22  norm          17.729        8.9013       -.92297E-07    .18522E-03
  23  Prefactor     4.9455        13.260        .36504E-06    .13690E-03
  24  Prefactor     14.950        8.3961       -.72531E-07    .14138E-03
  25  Prefactor     .10000E-03    13.112       -.76176E-06** at limit **
  26  norm          15.025        24.897       -.43189E-06    .53668E-04
  27  Normalizat    1.0385        .20994        .34418E-05    .52585E-03
  28  Prefactor     .88301        .15407        .19499E-06    .11546E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 103.656
  norm       = 1.46847
  Prefactor  = 0.0001
  norm       = 0.302408
  Prefactor  = 0.0001
  norm       = 148.709
  Prefactor  = 3.21761
  norm       = 8.87752
  Prefactor  = 17.9034
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.49848
  Prefactor  = 43.4575
  norm       = 3.00323
  norm       = 2.88451
  Prefactor  = 0.687747
  Prefactor  = 11.4143
  Prefactor  = 0.000100002
  Prefactor  = 0.000100011
  Prefactor  = 0.000100002
  norm       = 17.7289
  Prefactor  = 4.9455
  Prefactor  = 14.95
  Prefactor  = 0.000100001
  norm       = 15.0248
  Normalizat = 1.03846
  Prefactor  = 0.883005
 **********
 **   18 **HESSE 
 **********

 FCN=   5975.583     FROM HESSE     STATUS=OK           527 CALLS     4062 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          103.66        189.27        .39495E-04   -1.3668    
   2  norm          1.4685        3.3275        .19901E-03   -1.5466    
   3  Prefactor     .10000E-03    2.2731        .11358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .30241        .19779        .26974E-04   -1.5598    
   5  Prefactor     .10000E-03    36.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          148.71        107.43        .16519E-03   -1.3263    
   7  Prefactor     3.2176        4.2367        .17070E-03   -1.5349    
   8  norm          8.8775        3.1580        .75166E-04   -1.5112    
   9  Prefactor     17.903        37.887        .94627E-04   -1.4861    
  10  Prefactor     .10003E-03    43.160        .32030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.1314        .13358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.5626        .16111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.4985        5.3547        .20504E-03   -1.5334    
  14  Prefactor     43.458        27.103        .60810E-04   -1.4389    
  15  norm          3.0032        2.4234        .10031E-03   -1.5361    
  16  norm          2.8845        8.3613        .23952E-03   -1.5368    
  17  Prefactor     .68775        31.974        .30706E-02   -1.5542    
  18  Prefactor     11.414        175.56        .11966E-03   -1.5032    
  19  Prefactor     .10000E-03    39.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    50.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    34.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          17.729        8.9018        .95118E-04   -1.4866    
  23  Prefactor     4.9455        13.270        .18084E-03   -1.5263    
  24  Prefactor     14.950        8.4009        .10359E-03   -1.4934    
  25  Prefactor     .10000E-03    13.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          15.025        24.918        .10334E-03   -1.4933    
  27  Normalizat    1.0385        .25076        .28640E-03   -.91753    
  28  Prefactor     .88301        .18220        .23132E-03   -.96737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77706e-09
Minuit parameter uncertainties:
  1  190.385
  2  3.32788
  3  3.41203e-05
  4  0.197793
  5  0.000159961
  6  107.568
  7  4.23711
  8  3.15804
  9  37.9379
  10  0.00218409
  11  6.12661e-06
  12  5.82906e-06
  13  5.35543
  14  27.1107
  15  2.42346
  16  8.36468
  17  9.38334
  18  89.8456
  19  0.000491858
  20  0.00149544
  21  0.000530156
  22  8.90248
  23  13.2778
  24  8.40161
  25  0.000237691
  26  24.9351
  27  0.251049
  28  0.182321
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  3.003e+00  2.423e+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.830e-01  1.823e-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.038e+00  2.510e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.50
Ra Dec: 84.995 -28.659
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 6.32e-08 +/- 5.10e-08
Energy Flux (Fixed Index): 1.49e-05 +/- 1.20e-05

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

Saving results to:
/scratch/kocevski/710136/likelihoodResults_508636801_508896001_4FGL_J0539.9-2839_daily_bin1039.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) = 5975.45642627
delta logL = 0.126854159626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5975.45570597
delta logL = 0.127574453871

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1221       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4144       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0035       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90432       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=   5975.456     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      264 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1231        33.774        .70775E-02    .42304E-03
   2  alpha         3.4140        2.6461        .45324        .37444E-04
   3  Normalizat    1.0039        .75496E-01    .46211E-01    .38271E-04
   4  Prefactor     .90402        .55349E-01    .45060E-01    .10548E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.12313
  alpha      = 3.41403
  Normalizat = 1.00387
  Prefactor  = 0.904015
 **********
 **   18 **HESSE 
 **********

 FCN=   5975.456     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1231        4.5795        .77929E-04   -1.5417    
   2  alpha         3.4140        3.8039        .25207E-01    .37429    
   3  Normalizat    1.0039        .24808        .29050E-03   -.92901    
   4  Prefactor     .90402        .18222        .22900E-03   -.96001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.38123e-11
Minuit parameter uncertainties:
  1  4.58027
  2  2.60301
  3  0.248363
  4  0.182346
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/710136': 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) = 5975.45570436
delta logL = 0.127576067891

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  2.123e+00  4.580e+00  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  3.414e+00  2.603e+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:  9.040e-01  1.823e-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.004e+00  2.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.82
Ra Dec: 84.995 -28.659
Photon Index (Free Index): 3.41 +/- 2.60
Photon Flux (Free Index): 8.40e-08 +/- 7.13e-08
Energy Flux (Free Index): 1.46e-05 +/- 1.18e-05

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/710136/cmap_HighResolution_508636801_508896001_4FGL_J0539.9-2839_daily_bin1039.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.96e-05', comment='SUCCESS', photon_flux='6.32e-08', energy_flux2='1.46e-05', photon_flux_error='5.10e-08', dlogl='1.28e-01', energy_flux='1.49e-05', photon_flux2='8.40e-08', job_status='DONE', time_completed='2021-08-23 14:53:24.328739', photon_index_error2='2.60', photon_index2='3.41', ts='2.50', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.68e-07', energy_flux_error2='1.18e-05', EG='1.04', time_epoch_completed='1629755604.33', return_code='0', job_id='710136', GAL2='0.90', EG2='1.00', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='7.13e-08', ts2='2.82', photon_index='2.68' WHERE bin_id='1039' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 14:53:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 710136: <4FGL_J0539.9-2839_daily_bin1039> in cluster <slac> Done

Job <4FGL_J0539.9-2839_daily_bin1039> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 23 14:40:30 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 14:40:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 23 14:40:31 2021
Terminated at Mon Aug 23 14:53:25 2021
Results reported at Mon Aug 23 14:53:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin1039 84.9952 -28.6585 508636801 508896001 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 :                                   761.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             339.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            775 sec.

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

