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


Performing analysis on: 4FGL_J0539.9-2839_daily_bin1148
RA = 84.9952, Dec = -28.6585
tmin = 536889601, tmax = 537148801
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='711479', job_status='RUN', time_executed='2021-08-23 14:45:41.728433', time_epoch_executed='1629755141.73' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1148'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/711479

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/711479/ft1_4FGL_J0539.9-2839_daily_bin1148.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/711479/ft2_4FGL_J0539.9-2839_daily_bin1148.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/711479/ft1_4FGL_J0539.9-2839_daily_bin1148.fits outfile=/scratch/kocevski/711479/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1148.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=536889601.0 tmax=537148801.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.65
user 3.44
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/711479/ft2_4FGL_J0539.9-2839_daily_bin1148.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/711479/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1148.fits evtable="EVENTS" outfile="/scratch/kocevski/711479/ft1_filtered_4FGL_J0539.9-2839_daily_bin1148.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/711479/ft1_filtered_4FGL_J0539.9-2839_daily_bin1148.fits" evtable="EVENTS" scfile=/scratch/kocevski/711479/ft2_4FGL_J0539.9-2839_daily_bin1148.fits sctable="SC_DATA" outfile=/scratch/kocevski/711479/ltcube_536889601_537148801_4FGL_J0539.9-2839_daily_bin1148.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/711479/ft2_4FGL_J0539.9-2839_daily_bin1148.fits
.....................!
real 12.54
user 12.13
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/711479/ft1_filtered_4FGL_J0539.9-2839_daily_bin1148.fits evtable="EVENTS" scfile=/scratch/kocevski/711479/ft2_4FGL_J0539.9-2839_daily_bin1148.fits sctable="SC_DATA" expcube=/scratch/kocevski/711479/ltcube_536889601_537148801_4FGL_J0539.9-2839_daily_bin1148.fits outfile=/scratch/kocevski/711479/expmap_536889601_537148801_4FGL_J0539.9-2839_daily_bin1148.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/711479/ltcube_536889601_537148801_4FGL_J0539.9-2839_daily_bin1148.fits
.....................!
real 190.63
user 185.92
sys 4.27

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/711479/ft1_filtered_4FGL_J0539.9-2839_daily_bin1148.fits scfile=/scratch/kocevski/711479/ft2_4FGL_J0539.9-2839_daily_bin1148.fits outfile=/scratch/kocevski/711479/cmap_536889601_537148801_4FGL_J0539.9-2839_daily_bin1148.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/711479/ft1_filtered_4FGL_J0539.9-2839_daily_bin1148.fits scfile=/scratch/kocevski/711479/ft2_4FGL_J0539.9-2839_daily_bin1148.fits outfile=/scratch/kocevski/711479/cmap_HighResolution_536889601_537148801_4FGL_J0539.9-2839_daily_bin1148.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.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/711479/ft1_filtered_4FGL_J0539.9-2839_daily_bin1148.fits evtable="EVENTS" scfile=/scratch/kocevski/711479/ft2_4FGL_J0539.9-2839_daily_bin1148.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/711479/Model_4FGL_J0539.9-2839_daily_bin1148.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/711479/ft1_filtered_4FGL_J0539.9-2839_daily_bin1148.fits.....................!
real 90.24
user 88.78
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .23619       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    22.998       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5230       1.0000         .10000E-03   10000.    
     8 'norm      '    7.7157       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.0757       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4275       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0544       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.0143       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.458       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.6115       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.206       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    37.766       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1838       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .81178       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7812.805     FROM MIGRAD    STATUS=CONVERGED    101 CALLS     2951 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    26.548        .91525E-05** at limit **
   2  norm          .10000E-03    1.0812       -.46103E-06** at limit **
   3  Prefactor     .10000E-03    3.5726        .34318E-05** at limit **
   4  norm          .23619        .15141        .10470E-06   -.22949E-03
   5  Prefactor     .10000E-03    27.041       -.61815E-05** at limit **
   6  norm          22.972        10.617       -.18321E-04    .65926E-02
   7  Prefactor     2.5229        3.5298       -.41166E-05   -.33012E-03
   8  norm          7.7156        2.5306        .47312E-06    .39297E-04
   9  Prefactor     .10087E-03    26.444       -.17199E-04** at limit **
  10  Prefactor     7.0749        4.1829        .86958E-05    .21744E-02
  11  Prefactor     5.4271        1.1085        .11270E-05    .47239E-03
  12  Prefactor     5.0543        2.6984       -.56192E-05    .18947E-02
  13  norm          .10000E-03    1.6778        .15762E-05** at limit **
  14  Prefactor     .10109E-03    5.7357       -.18684E-04** at limit **
  15  norm          .10000E-03    .85083        .16164E-05** at limit **
  16  norm          1.0143        1.4940       -.71191E-05   -.15686E-02
  17  Prefactor     .10000E-03    1.4313       -.18848E-05** at limit **
  18  Prefactor     .10000E-03    4.8390       -.44766E-05** at limit **
  19  Prefactor     .10105E-03    5.8511        .96266E-05** at limit **
  20  Prefactor     31.358        24.697       -.36213E-04    .58950E-03
  21  Prefactor     .10037E-03    29.312        .26545E-04** at limit **
  22  norm          7.6115        1.1242        .12107E-05    .19336E-02
  23  Prefactor     .10000E-03    3.6151        .15624E-05** at limit **
  24  Prefactor     11.206        1.0527        .93072E-06    .21818E-02
  25  Prefactor     .10000E-03    7.3115       -.48943E-05** at limit **
  26  norm          37.767        2.7901        .35090E-05   -.20512E-02
  27  Normalizat    1.1839        .19328        .56690E-06   -.98099E-05
  28  Prefactor     .81168        .14687       -.78125E-06   -.49532E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.236193
  Prefactor  = 0.000100004
  norm       = 22.972
  Prefactor  = 2.52287
  norm       = 7.7156
  Prefactor  = 0.000100869
  Prefactor  = 7.07485
  Prefactor  = 5.42713
  Prefactor  = 5.05425
  norm       = 0.0001
  Prefactor  = 0.00010109
  norm       = 0.0001
  norm       = 1.01427
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101052
  Prefactor  = 31.3584
  Prefactor  = 0.000100365
  norm       = 7.61155
  Prefactor  = 0.0001
  Prefactor  = 11.2063
  Prefactor  = 0.0001
  norm       = 37.7672
  Normalizat = 1.18394
  Prefactor  = 0.811682
 **********
 **   18 **HESSE 
 **********

 FCN=   7812.805     FROM HESSE     STATUS=OK           579 CALLS     3530 TOTAL
                     EDM=   .50E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    78.264        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.0744        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.4637        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .23619        .15704        .60305E-02   -1.5611    
   5  Prefactor     .10000E-03    27.058        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          22.972        62.623        .20881E-02   -1.4749    
   7  Prefactor     2.5229        3.6134        .64295E-02   -1.5390    
   8  norm          7.7156        2.5448        .36091E-02   -1.5152    
   9  Prefactor     .10087E-03    78.301        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.0749        4.9370        .37702E-02   -1.5176    
  11  Prefactor     5.4271        6.4106        .43121E-02   -1.5242    
  12  Prefactor     5.0543        5.0733        .44713E-02   -1.5258    
  13  norm          .10000E-03    1.6606        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10109E-03    14.121        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .81203        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0143        8.2523        .13001E-01   -1.5507    
  17  Prefactor     .10000E-03    1.4272        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.095        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10105E-03    14.030        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     31.358        27.771        .17860E-02   -1.4587    
  21  Prefactor     .10037E-03    76.971        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.6115        5.4583        .36339E-02   -1.5156    
  23  Prefactor     .10000E-03    3.6101        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.206        6.7525        .29920E-02   -1.5038    
  25  Prefactor     .10000E-03    7.2988        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          37.767        25.277        .16304E-02   -1.4478    
  27  Normalizat    1.1839        .16695        .57688E-01   -.87100    
  28  Prefactor     .81168        .12817        .43870E-01   -.99299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96737e-06
Minuit parameter uncertainties:
  1  0.000353407
  2  2.89778e-06
  3  1.12395e-05
  4  0.157037
  5  0.000669182
  6  62.8031
  7  3.61369
  8  2.54482
  9  0.0165181
  10  4.93724
  11  6.41145
  12  5.07377
  13  2.05981e-06
  14  0.00784996
  15  8.8404e-07
  16  5.78703
  17  1.95592e-07
  18  4.95574e-05
  19  0.00768399
  20  27.7824
  21  0.0106204
  22  5.45868
  23  1.26045e-05
  24  6.75293
  25  7.74035e-07
  26  25.2837
  27  0.16702
  28  0.128221
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  1.000e-04  8.840e-07  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.117e-01  1.282e-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.184e+00  1.670e-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: 5.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.39e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/711479/likelihoodResults_536889601_537148801_4FGL_J0539.9-2839_daily_bin1148.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) = 7812.80541792
delta logL = -0.000649770356176

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7812.80476267
delta logL = 5.47977288079e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6868       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1840       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81169       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7812.805     FROM MIGRAD    STATUS=FAILED        85 CALLS      258 TOTAL
                     EDM=   .80E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10076E-03    2.1697        .10937E-02** at limit **
   2  alpha         3.4572        3.2566        .99006E-01    .78905E-05
   3  Normalizat    1.1839        .18845        .25511E-03   -.23159E-03
   4  Prefactor     .81168        .14651        .23358E-03   -.14256E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7812.805     FROM SIMPLEX   STATUS=UNCHANGED    112 CALLS      370 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10076E-03    2.1697        .56829E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.4572        3.2566        .39300E-02    .39291    
   3  Normalizat    1.1839        .18845        .15725E-03   -.87101    
   4  Prefactor     .81168        .14651        .67156E-04   -.99299    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7812.805     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      402 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .97646        .21874E-03** at limit **
   2  alpha         3.3620        2.7061        .19801E-01    .47080E-07
   3  Normalizat    1.1839        .18857        .51022E-04    .38289E-03
   4  Prefactor     .81168        .14662        .93433E-05    .23922E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.36199
  Normalizat = 1.18394
  Prefactor  = 0.811682
 **********
 **   18 **HESSE 
 **********

 FCN=   7812.805     FROM HESSE     STATUS=OK            23 CALLS      425 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .97633        .43747E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.3620        2.6409        .79205E-03    .35202    
   3  Normalizat    1.1839        .18855        .10204E-04   -.87100    
   4  Prefactor     .81168        .14660        .18687E-05   -.99299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9543e-10
Minuit parameter uncertainties:
  1  6.84254e-06
  2  170.94
  3  0.188661
  4  0.146666
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/711479': 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) = 7812.80476064
delta logL = 7.50550680095e-06

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  1.000e-04  6.843e-06  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  3.362e+00  1.709e+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:  8.117e-01  1.467e-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.184e+00  1.887e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/711479/cmap_HighResolution_536889601_537148801_4FGL_J0539.9-2839_daily_bin1148.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.39e-05', job_status='DONE', photon_flux_upper_limit='5.92e-08', time_completed='2021-08-23 15:00:28.147507', job_id='711479', GAL2='0.81', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1629756028.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='7.51e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1148' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 15:00:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0201>
Subject: Job 711479: <4FGL_J0539.9-2839_daily_bin1148> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin1148 84.9952 -28.6585 536889601 537148801 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 :                                   884.53 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

