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


Performing analysis on: 4FGL_J0539.9-2839_daily_bin1221
RA = 84.9952, Dec = -28.6585
tmin = 555811201, tmax = 556070401
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='711584', job_status='RUN', time_executed='2021-08-23 14:45:53.904296', time_epoch_executed='1629755153.9' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/711584

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/711584/ft1_4FGL_J0539.9-2839_daily_bin1221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/711584/ft2_4FGL_J0539.9-2839_daily_bin1221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/711584/ft1_4FGL_J0539.9-2839_daily_bin1221.fits outfile=/scratch/kocevski/711584/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1221.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=555811201.0 tmax=556070401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.06
user 3.37
sys 0.67

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/711584/ft1_filtered_4FGL_J0539.9-2839_daily_bin1221.fits" evtable="EVENTS" scfile=/scratch/kocevski/711584/ft2_4FGL_J0539.9-2839_daily_bin1221.fits sctable="SC_DATA" outfile=/scratch/kocevski/711584/ltcube_555811201_556070401_4FGL_J0539.9-2839_daily_bin1221.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/711584/ft2_4FGL_J0539.9-2839_daily_bin1221.fits
.....................!
real 12.61
user 11.63
sys 0.90

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/711584/ft1_filtered_4FGL_J0539.9-2839_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/711584/ft2_4FGL_J0539.9-2839_daily_bin1221.fits sctable="SC_DATA" expcube=/scratch/kocevski/711584/ltcube_555811201_556070401_4FGL_J0539.9-2839_daily_bin1221.fits outfile=/scratch/kocevski/711584/expmap_555811201_556070401_4FGL_J0539.9-2839_daily_bin1221.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/711584/ltcube_555811201_556070401_4FGL_J0539.9-2839_daily_bin1221.fits
.....................!
real 194.01
user 187.86
sys 5.72

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/711584/ft1_filtered_4FGL_J0539.9-2839_daily_bin1221.fits scfile=/scratch/kocevski/711584/ft2_4FGL_J0539.9-2839_daily_bin1221.fits outfile=/scratch/kocevski/711584/cmap_555811201_556070401_4FGL_J0539.9-2839_daily_bin1221.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.02
user 0.37
sys 0.62

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/711584/ft1_filtered_4FGL_J0539.9-2839_daily_bin1221.fits scfile=/scratch/kocevski/711584/ft2_4FGL_J0539.9-2839_daily_bin1221.fits outfile=/scratch/kocevski/711584/cmap_HighResolution_555811201_556070401_4FGL_J0539.9-2839_daily_bin1221.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.00
user 0.37
sys 0.62

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.9351       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.422       1.0000         .10000E-03   10000.    
     4 'norm      '    .63922       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    82.110       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.543       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15430E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    13.976       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.7491       1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.9518       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11427E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    37.553       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .38521E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.9765       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10931E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .15331E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .99913       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .66966       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=   2107.311     FROM MIGRAD    STATUS=CONVERGED    678 CALLS     3441 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    206.07       -.10169E-03** at limit **
   2  norm          9.9364        8.2124        .29258E-05   -.16766E-04
   3  Prefactor     24.431        14.418       -.28009E-06    .81645E-05
   4  norm          .63930        .33878       -.85426E-07    .95615E-04
   5  Prefactor     .10000E-03    63.950       -.23491E-04** at limit **
   6  norm          82.098        114.25       -.12033E-04    .48863E-08
   7  Prefactor     .10000E-03    2.3242       -.11424E-07** at limit **
   8  norm          .10000E-03    1.2517       -.10018E-07** at limit **
   9  Prefactor     21.539        60.649       -.63595E-05   -.15394E-05
  10  Prefactor     .10000E-03    3.5960       -.12924E-07** at limit **
  11  Prefactor     .10000E-03    8.0675        .80370E-08** at limit **
  12  Prefactor     .10000E-03    29.060        .17370E-04** at limit **
  13  norm          13.975        9.0594       -.14506E-05   -.55793E-03
  14  Prefactor     .10000E-03    16.555       -.35076E-06** at limit **
  15  norm          7.7512        4.2211        .88327E-07   -.30098E-04
  16  norm          .10000E-03    9.7597        .58359E-07** at limit **
  17  Prefactor     7.9506        8.1179       -.13012E-05    .30149E-05
  18  Prefactor     .10000E-03    163.57        .13931E-04** at limit **
  19  Prefactor     .10000E-03    25.650       -.15586E-04** at limit **
  20  Prefactor     37.521        53.751       -.25655E-04   -.65453E-04
  21  Prefactor     .10002E-03    96.586        .62614E-06** at limit **
  22  norm          2.9761        5.3296       -.26575E-06   -.58496E-04
  23  Prefactor     .10000E-03    45.167        .98702E-06** at limit **
  24  Prefactor     .10000E-03    3.5760        .22417E-07** at limit **
  25  Prefactor     .10000E-03    19.247        .31816E-05** at limit **
  26  norm          .10000E-03    122.69        .75234E-04** at limit **
  27  Normalizat    .99808        .34174        .53934E-05   -.17350E-03
  28  Prefactor     .67048        .23805       -.27485E-06   -.72717E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 9.93645
  Prefactor  = 24.4309
  norm       = 0.639303
  Prefactor  = 0.0001
  norm       = 82.0976
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.5393
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.9755
  Prefactor  = 0.0001
  norm       = 7.75123
  norm       = 0.0001
  Prefactor  = 7.95061
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.5213
  Prefactor  = 0.000100016
  norm       = 2.97613
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.99808
  Prefactor  = 0.670479
 **********
 **   18 **HESSE 
 **********

 FCN=   2107.311     FROM HESSE     STATUS=OK           511 CALLS     3952 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    205.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.9364        8.2317        .11040E-03   -1.5077    
   3  Prefactor     24.431        14.524        .81057E-04   -1.4719    
   4  norm          .63930        .33880        .18744E-04   -1.5548    
   5  Prefactor     .10000E-03    63.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          82.098        114.23        .22163E-03   -1.3893    
   7  Prefactor     .10000E-03    2.3422        .68343E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.2679        .50139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.539        60.844        .86297E-04   -1.4779    
  10  Prefactor     .10000E-03    3.6053        .85020E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.0727        .12736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    29.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          13.975        9.0843        .10497E-03   -1.4960    
  14  Prefactor     .10000E-03    16.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.7512        4.2375        .64871E-04   -1.5151    
  16  norm          .10000E-03    9.7663        .14008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.9506        8.1189        .12768E-03   -1.5144    
  18  Prefactor     .10000E-03    163.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    25.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     37.521        54.161        .65402E-04   -1.4482    
  21  Prefactor     .10002E-03    96.791        .21281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.9761        5.3110        .13778E-03   -1.5363    
  23  Prefactor     .10000E-03    45.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.5776        .84764E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    19.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    123.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .99808        .40257        .25899E-03   -.93095    
  28  Prefactor     .67048        .27832        .23504E-03   -1.0470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.53989e-10
Minuit parameter uncertainties:
  1  9.75684e-05
  2  8.23259
  3  14.5261
  4  0.338803
  5  2.37364e-05
  6  114.541
  7  3.62698e-06
  8  1.33452e-06
  9  61.0203
  10  3.00541e-06
  11  1.39385e-06
  12  0.000168873
  13  9.08518
  14  3.46345e-06
  15  4.23767
  16  4.89214e-06
  17  8.12003
  18  0.000164189
  19  5.94947e-05
  20  54.2322
  21  0.00249394
  22  5.31182
  23  5.96141e-05
  24  3.7014e-06
  25  0.000148765
  26  0.000455095
  27  0.403799
  28  0.278896
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  7.751e+00  4.238e+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:  6.705e-01  2.789e-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:  9.981e-01  4.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.47
Ra Dec: 84.995 -28.659
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 1.63e-07 +/- 8.92e-08
Energy Flux (Fixed Index): 3.84e-05 +/- 2.10e-05

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) = 2107.24920403
delta logL = 0.0622661373159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2107.24417993
delta logL = 0.0672902369051

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5558       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9658       1.0000          .0000       5.0000    
     3 'Normalizat'    .97859       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68433       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.

 FCN=   2107.244     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      250 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5552        5.1359        .58915E-04    .34094E-02
   2  alpha         2.9661        .82497        .98999E-03    .20026E-03
   3  Normalizat    .97857        .36525        .26118E-03   -.62485E-04
   4  Prefactor     .68433        .27396        .23301E-03   -.10410E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.55518
  alpha      = 2.96605
  Normalizat = 0.978571
  Prefactor  = 0.684328
 **********
 **   18 **HESSE 
 **********

 FCN=   2107.244     FROM HESSE     STATUS=OK            23 CALLS      273 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5552        5.1124        .11783E-04   -1.5196    
   2  alpha         2.9661        .82131        .39600E-04    .18752    
   3  Normalizat    .97857        .36558        .10447E-04   -.93752    
   4  Prefactor     .68433        .27420        .46602E-04   -1.0414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54999e-09
Minuit parameter uncertainties:
  1  5.11269
  2  0.837443
  3  0.366515
  4  0.274739
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/711584': 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) = 2107.2441799
delta logL = 0.0672902687902

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  6.555e+00  5.113e+00  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  2.966e+00  8.374e-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:  6.843e-01  2.747e-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:  9.786e-01  3.665e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.60
Ra Dec: 84.995 -28.659
Photon Index (Free Index): 2.97 +/- 0.84
Photon Flux (Free Index): 1.74e-07 +/- 9.52e-08
Energy Flux (Free Index): 3.53e-05 +/- 2.04e-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/711584/cmap_HighResolution_555811201_556070401_4FGL_J0539.9-2839_daily_bin1221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.63e-07', energy_flux2='3.53e-05', photon_flux_error='8.92e-08', dlogl='6.73e-02', energy_flux='3.84e-05', photon_flux2='1.74e-07', job_status='DONE', time_completed='2021-08-23 14:53:31.399453', photon_index_error2='0.84', photon_index2='2.97', ts='6.47', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='2.04e-05', EG='1.00', time_epoch_completed='1629755611.4', return_code='0', job_id='711584', GAL2='0.68', EG2='0.98', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='9.52e-08', ts2='6.60', photon_index='2.68' WHERE bin_id='1221' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 14:53:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 711584: <4FGL_J0539.9-2839_daily_bin1221> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin1221 84.9952 -28.6585 555811201 556070401 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 :                                   462.20 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             355.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   486 sec.
    Turnaround time :                            489 sec.

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

