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


Performing analysis on: 4FGL_J0539.9-2839_daily_bin1070
RA = 84.9952, Dec = -28.6585
tmin = 516672001, tmax = 516931201
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='710179', job_status='RUN', time_executed='2021-08-23 14:41:14.617164', time_epoch_executed='1629754874.62' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1070'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/710179

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/710179/ft1_4FGL_J0539.9-2839_daily_bin1070.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/710179/ft2_4FGL_J0539.9-2839_daily_bin1070.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/710179/ft1_4FGL_J0539.9-2839_daily_bin1070.fits outfile=/scratch/kocevski/710179/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1070.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=516672001.0 tmax=516931201.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.91
user 3.25
sys 0.62

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/710179/ft2_4FGL_J0539.9-2839_daily_bin1070.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/710179/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1070.fits evtable="EVENTS" outfile="/scratch/kocevski/710179/ft1_filtered_4FGL_J0539.9-2839_daily_bin1070.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.87
user 0.32
sys 0.53

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/710179/ft1_filtered_4FGL_J0539.9-2839_daily_bin1070.fits" evtable="EVENTS" scfile=/scratch/kocevski/710179/ft2_4FGL_J0539.9-2839_daily_bin1070.fits sctable="SC_DATA" outfile=/scratch/kocevski/710179/ltcube_516672001_516931201_4FGL_J0539.9-2839_daily_bin1070.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/710179/ft2_4FGL_J0539.9-2839_daily_bin1070.fits
.....................!
real 12.17
user 11.38
sys 0.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/710179/ft1_filtered_4FGL_J0539.9-2839_daily_bin1070.fits evtable="EVENTS" scfile=/scratch/kocevski/710179/ft2_4FGL_J0539.9-2839_daily_bin1070.fits sctable="SC_DATA" expcube=/scratch/kocevski/710179/ltcube_516672001_516931201_4FGL_J0539.9-2839_daily_bin1070.fits outfile=/scratch/kocevski/710179/expmap_516672001_516931201_4FGL_J0539.9-2839_daily_bin1070.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/710179/ltcube_516672001_516931201_4FGL_J0539.9-2839_daily_bin1070.fits
.....................!
real 190.32
user 184.59
sys 5.41

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/710179/ft1_filtered_4FGL_J0539.9-2839_daily_bin1070.fits scfile=/scratch/kocevski/710179/ft2_4FGL_J0539.9-2839_daily_bin1070.fits outfile=/scratch/kocevski/710179/cmap_516672001_516931201_4FGL_J0539.9-2839_daily_bin1070.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.96
user 0.36
sys 0.58

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/710179/ft1_filtered_4FGL_J0539.9-2839_daily_bin1070.fits scfile=/scratch/kocevski/710179/ft2_4FGL_J0539.9-2839_daily_bin1070.fits outfile=/scratch/kocevski/710179/cmap_HighResolution_516672001_516931201_4FGL_J0539.9-2839_daily_bin1070.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.90
user 0.36
sys 0.53

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/710179/ft1_filtered_4FGL_J0539.9-2839_daily_bin1070.fits evtable="EVENTS" scfile=/scratch/kocevski/710179/ft2_4FGL_J0539.9-2839_daily_bin1070.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/710179/Model_4FGL_J0539.9-2839_daily_bin1070.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/710179/ft1_filtered_4FGL_J0539.9-2839_daily_bin1070.fits.....................!
real 64.42
user 62.48
sys 1.79

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10629E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .79998       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10470E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10335E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11012E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10602E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .60533E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.852       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.4458       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4533       1.0000         .10000E-03   10000.    
    16 'norm      '    1.4606       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0587       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10847E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.834       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11434E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.5094       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    8.6269       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2872       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .92100       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=   4816.153     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     3479 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    100.02        .25753E-04** at limit **
   2  norm          .10000E-03    4.8637        .25969E-06** at limit **
   3  Prefactor     .10000E-03    3.5863        .56776E-07** at limit **
   4  norm          .80001        .28571        .15204E-07   -.31657E-03
   5  Prefactor     .10000E-03    22.451        .15465E-04** at limit **
   6  norm          .10000E-03    190.56       -.76159E-05** at limit **
   7  Prefactor     .10000E-03    3.5582        .21047E-06** at limit **
   8  norm          .10000E-03    1.3395        .10128E-06** at limit **
   9  Prefactor     .10000E-03    33.583        .82667E-05** at limit **
  10  Prefactor     .10004E-03    5.4489        .16934E-05** at limit **
  11  Prefactor     15.847        15.431        .15394E-07   -.19844E-03
  12  Prefactor     .10000E-03    5.8514        .40173E-07** at limit **
  13  norm          3.4456        5.1276       -.45366E-06   -.34226E-03
  14  Prefactor     .10000E-03    15.226       -.15747E-05** at limit **
  15  norm          1.4527        2.8347       -.13234E-06   -.53855E-03
  16  norm          1.4588        11.245        .59221E-05   -.45981E-03
  17  Prefactor     3.0543        10.178        .19434E-05   -.17909E-03
  18  Prefactor     .10000E-03    52.206       -.22934E-04** at limit **
  19  Prefactor     31.848        48.355        .95798E-05    .13479E-03
  20  Prefactor     .10002E-03    402.13       -.12101E-03** at limit **
  21  Prefactor     .10000E-03    34.602        .11624E-04** at limit **
  22  norm          .10000E-03    5.5507       -.27107E-06** at limit **
  23  Prefactor     .10000E-03    24.750       -.17218E-04** at limit **
  24  Prefactor     5.5089        5.8939        .16813E-05    .71687E-04
  25  Prefactor     .10000E-03    23.801       -.76628E-05** at limit **
  26  norm          8.6648        71.363        .49749E-04    .11558E-03
  27  Normalizat    1.2872        .24347        .94275E-07    .31076E-03
  28  Prefactor     .92113        .17690       -.32994E-05    .49031E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.800005
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100041
  Prefactor  = 15.8474
  Prefactor  = 0.0001
  norm       = 3.44556
  Prefactor  = 0.0001
  norm       = 1.45269
  norm       = 1.45877
  Prefactor  = 3.05428
  Prefactor  = 0.0001
  Prefactor  = 31.8478
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.50893
  Prefactor  = 0.0001
  norm       = 8.66482
  Normalizat = 1.28721
  Prefactor  = 0.921133
 **********
 **   18 **HESSE 
 **********

 FCN=   4816.153     FROM HESSE     STATUS=OK           509 CALLS     3988 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    99.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.0715        .29849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.6091        .12831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .80001        .28576        .21333E-04   -1.5529    
   5  Prefactor     .10000E-03    22.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    191.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.5728        .25060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.3769        .15661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    33.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10004E-03    20.790        .30794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.847        15.134        .10060E-03   -1.4912    
  12  Prefactor     .10000E-03    5.8524        .16382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.4456        5.1233        .18242E-03   -1.5337    
  14  Prefactor     .10000E-03    15.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4527        2.8066        .15232E-03   -1.5467    
  16  norm          1.4588        10.977        .35602E-03   -1.5466    
  17  Prefactor     3.0543        10.117        .23196E-03   -1.5358    
  18  Prefactor     .10000E-03    52.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     31.848        48.467        .71017E-04   -1.4579    
  20  Prefactor     .10002E-03    421.00        .41344E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    34.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.6540        .15948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    24.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.5089        5.8867        .16845E-03   -1.5239    
  25  Prefactor     .10000E-03    23.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          8.6648        72.334        .13648E-03   -1.5119    
  27  Normalizat    1.2872        .28393        .27892E-03   -.83949    
  28  Prefactor     .92113        .20626        .23790E-03   -.95407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26241e-09
Minuit parameter uncertainties:
  1  9.21815e-06
  2  2.06789e-05
  3  7.15456e-06
  4  0.285764
  5  3.45969e-06
  6  0.000325923
  7  3.37555e-05
  8  6.54651e-06
  9  4.7031e-05
  10  0.0018476
  11  15.1379
  12  1.5097e-05
  13  5.12396
  14  1.00123e-07
  15  2.80682
  16  8.00513
  17  10.1225
  18  2.13297e-05
  19  48.5268
  20  0.00615327
  21  8.59562e-05
  22  3.47736e-05
  23  0.000150754
  24  5.88734
  25  7.74354e-05
  26  50.1525
  27  0.284274
  28  0.206432
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  1.453e+00  2.807e+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:  9.211e-01  2.064e-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.287e+00  2.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/710179/likelihoodResults_516672001_516931201_4FGL_J0539.9-2839_daily_bin1070.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) = 4816.01322282
delta logL = 0.140270910902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4815.99409053
delta logL = 0.159403200604

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9794       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0629       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2968       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91199       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=   4815.994     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9828        3.5679        .73653E-02    .42204E-03
   2  alpha         2.0609        .94288        .41976       -.80851E-05
   3  Normalizat    1.2964        .23390        .62851E-01    .20380E-04
   4  Prefactor     .91221        .17304        .45158E-01    .57119E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.98276
  alpha      = 2.0609
  Normalizat = 1.29644
  Prefactor  = 0.912214
 **********
 **   18 **HESSE 
 **********

 FCN=   4815.994     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .91E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9828        2.8929        .13555E-03   -1.5426    
   2  alpha         2.0609        .91768        .21448E-01   -.17655    
   3  Normalizat    1.2964        .27397        .27800E-03   -.83673    
   4  Prefactor     .91221        .20164        .23884E-03   -.95716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.0805e-12
Minuit parameter uncertainties:
  1  2.89314
  2  0.940398
  3  0.274274
  4  0.201806
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/710179': 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) = 4815.99408581
delta logL = 0.159407916281

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  1.983e+00  2.893e+00  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  2.061e+00  9.404e-01  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.122e-01  2.018e-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.296e+00  2.743e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.35
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/710179/cmap_HighResolution_516672001_516931201_4FGL_J0539.9-2839_daily_bin1070.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.98e-05', job_status='DONE', photon_flux_upper_limit='1.69e-07', time_completed='2021-08-23 14:52:16.104758', job_id='710179', GAL2='0.91', fit_tolerance='1e-08', EG2='1.30', EG='1.29', time_epoch_completed='1629755536.1', return_code2='0', ts='0.35', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.59e-01', ts2='0.66', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1070' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 14:52:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 710179: <4FGL_J0539.9-2839_daily_bin1070> in cluster <slac> Done

Job <4FGL_J0539.9-2839_daily_bin1070> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 23 14:40:33 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 14:40:35 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:35 2021
Terminated at Mon Aug 23 14:52:16 2021
Results reported at Mon Aug 23 14:52:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin1070 84.9952 -28.6585 516672001 516931201 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 :                                   667.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            703 sec.

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

