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


Performing analysis on: 4FGL_J0539.9-2839_daily_bin1276
RA = 84.9952, Dec = -28.6585
tmin = 570067201, tmax = 570326401
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='711663', job_status='RUN', time_executed='2021-08-23 14:46:46.858020', time_epoch_executed='1629755206.86' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1276'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/711663

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/711663/ft1_4FGL_J0539.9-2839_daily_bin1276.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/711663/ft2_4FGL_J0539.9-2839_daily_bin1276.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/711663/ft1_4FGL_J0539.9-2839_daily_bin1276.fits outfile=/scratch/kocevski/711663/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1276.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=570067201.0 tmax=570326401.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 6.33
user 3.37
sys 2.92

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/711663/ft2_4FGL_J0539.9-2839_daily_bin1276.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/711663/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1276.fits evtable="EVENTS" outfile="/scratch/kocevski/711663/ft1_filtered_4FGL_J0539.9-2839_daily_bin1276.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 3.20
user 0.31
sys 2.86

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/711663/ft1_filtered_4FGL_J0539.9-2839_daily_bin1276.fits" evtable="EVENTS" scfile=/scratch/kocevski/711663/ft2_4FGL_J0539.9-2839_daily_bin1276.fits sctable="SC_DATA" outfile=/scratch/kocevski/711663/ltcube_570067201_570326401_4FGL_J0539.9-2839_daily_bin1276.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/711663/ft2_4FGL_J0539.9-2839_daily_bin1276.fits
.....................!
real 14.88
user 11.43
sys 3.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/711663/ft1_filtered_4FGL_J0539.9-2839_daily_bin1276.fits evtable="EVENTS" scfile=/scratch/kocevski/711663/ft2_4FGL_J0539.9-2839_daily_bin1276.fits sctable="SC_DATA" expcube=/scratch/kocevski/711663/ltcube_570067201_570326401_4FGL_J0539.9-2839_daily_bin1276.fits outfile=/scratch/kocevski/711663/expmap_570067201_570326401_4FGL_J0539.9-2839_daily_bin1276.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/711663/ltcube_570067201_570326401_4FGL_J0539.9-2839_daily_bin1276.fits
.....................!
real 195.41
user 186.89
sys 7.56

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/711663/ft1_filtered_4FGL_J0539.9-2839_daily_bin1276.fits scfile=/scratch/kocevski/711663/ft2_4FGL_J0539.9-2839_daily_bin1276.fits outfile=/scratch/kocevski/711663/cmap_570067201_570326401_4FGL_J0539.9-2839_daily_bin1276.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 3.22
user 0.36
sys 2.81

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/711663/ft1_filtered_4FGL_J0539.9-2839_daily_bin1276.fits scfile=/scratch/kocevski/711663/ft2_4FGL_J0539.9-2839_daily_bin1276.fits outfile=/scratch/kocevski/711663/cmap_HighResolution_570067201_570326401_4FGL_J0539.9-2839_daily_bin1276.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 3.22
user 0.38
sys 2.81

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/711663/ft1_filtered_4FGL_J0539.9-2839_daily_bin1276.fits evtable="EVENTS" scfile=/scratch/kocevski/711663/ft2_4FGL_J0539.9-2839_daily_bin1276.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/711663/Model_4FGL_J0539.9-2839_daily_bin1276.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/711663/ft1_filtered_4FGL_J0539.9-2839_daily_bin1276.fits....................!
real 74.24
user 69.18
sys 4.82

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10156E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.9508       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .88483       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    23.525       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.0349       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .71695       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5810       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.784       1.0000         .10000E-03   10000.    
    15 'norm      '    .69615       1.0000         .10000E-03   10000.    
    16 'norm      '    15.919       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    66.762       1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.910       1.0000         .10000E-03   10000.    
    20 'Prefactor '    93.011       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.0047       1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.733       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    28.396       1.0000         .10000E-03   10000.    
    26 'norm      '    38.974       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2707       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .68098       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=   5629.608     FROM MIGRAD    STATUS=CONVERGED    672 CALLS     3529 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    126.19        .10483E-04** at limit **
   2  norm          6.9505        3.8206        .16429E-05    .12125E-03
   3  Prefactor     .10000E-03    1.9078        .13357E-06** at limit **
   4  norm          .88483        .24344       -.29574E-07    .58452E-03
   5  Prefactor     .10000E-03    27.459       -.16025E-05** at limit **
   6  norm          23.582        78.527        .96428E-04    .41141E-05
   7  Prefactor     .10000E-03    1.5317        .22758E-06** at limit **
   8  norm          5.0349        2.3345        .26492E-06    .11187E-03
   9  Prefactor     .67010        29.510       -.88927E-05    .54070E-03
  10  Prefactor     6.5808        7.3879       -.44462E-05   -.18194E-03
  11  Prefactor     .10000E-03    7.5276       -.95335E-07** at limit **
  12  Prefactor     .10000E-03    4.4091       -.11260E-06** at limit **
  13  norm          .10000E-03    2.5968       -.20599E-07** at limit **
  14  Prefactor     11.783        23.048       -.39343E-06    .32635E-05
  15  norm          .69614        1.0158        .12005E-06    .36942E-03
  16  norm          15.919        12.173        .11833E-06    .60768E-05
  17  Prefactor     .10000E-03    3.3252       -.14584E-06** at limit **
  18  Prefactor     66.752        56.623       -.82265E-05    .41271E-05
  19  Prefactor     29.904        36.902       -.52493E-05    .10492E-04
  20  Prefactor     93.011        43.423       -.20632E-06    .22230E-04
  21  Prefactor     .10000E-03    32.824        .12786E-05** at limit **
  22  norm          6.0047        5.4546        .34636E-06   -.32965E-04
  23  Prefactor     18.734        18.113        .31408E-06   -.67514E-05
  24  Prefactor     .10000E-03    5.3648        .75825E-07** at limit **
  25  Prefactor     28.395        29.221       -.84414E-06    .46705E-05
  26  norm          38.974        28.530       -.33269E-06    .21417E-05
  27  Normalizat    1.2708        .21188        .21795E-05    .34361E-03
  28  Prefactor     .68094        .15622       -.22258E-05    .41973E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 6.95053
  Prefactor  = 0.0001
  norm       = 0.884826
  Prefactor  = 0.0001
  norm       = 23.5819
  Prefactor  = 0.0001
  norm       = 5.03486
  Prefactor  = 0.670098
  Prefactor  = 6.58081
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.783
  norm       = 0.696143
  norm       = 15.919
  Prefactor  = 0.0001
  Prefactor  = 66.7521
  Prefactor  = 29.9039
  Prefactor  = 93.0115
  Prefactor  = 0.0001
  norm       = 6.00474
  Prefactor  = 18.7336
  Prefactor  = 0.0001
  Prefactor  = 28.3946
  norm       = 38.9737
  Normalizat = 1.27082
  Prefactor  = 0.680937
 **********
 **   18 **HESSE 
 **********

 FCN=   5629.608     FROM HESSE     STATUS=OK           521 CALLS     4050 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    126.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.9505        3.8324        .10433E-03   -1.5181    
   3  Prefactor     .10000E-03    1.9203        .10118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .88483        .24408        .18723E-04   -1.5520    
   5  Prefactor     .10000E-03    27.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          23.582        78.488        .82585E-04   -1.4736    
   7  Prefactor     .10000E-03    1.5390        .90588E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.0349        2.3376        .74475E-04   -1.5259    
   9  Prefactor     .67010        294.23        .75930E-02   -1.5544    
  10  Prefactor     6.5808        7.3986        .15643E-03   -1.5195    
  11  Prefactor     .10000E-03    7.5395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.4206        .15386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.6371        .11799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.783        23.017        .11670E-03   -1.5021    
  15  norm          .69614        1.0160        .48188E-04   -1.5541    
  16  norm          15.919        12.174        .10038E-03   -1.4910    
  17  Prefactor     .10000E-03    3.3445        .13357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     66.752        56.627        .24560E-03   -1.4072    
  19  Prefactor     29.904        36.952        .73259E-04   -1.4614    
  20  Prefactor     93.011        43.484        .41670E-04   -1.3776    
  21  Prefactor     .10000E-03    32.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.0047        5.4445        .15914E-03   -1.5218    
  23  Prefactor     18.734        18.109        .92537E-04   -1.4842    
  24  Prefactor     .10000E-03    5.4350        .16952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     28.395        29.209        .75183E-04   -1.4642    
  26  norm          38.974        28.532        .64203E-04   -1.4459    
  27  Normalizat    1.2708        .24909        .25468E-03   -.84442    
  28  Prefactor     .68094        .18115        .25855E-03   -1.0428    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68616e-08
Minuit parameter uncertainties:
  1  7.89668e-05
  2  3.8325
  3  6.66154e-06
  4  0.244082
  5  4.44345e-06
  6  78.8351
  7  1.87437e-05
  8  2.33759
  9  28.2213
  10  7.39966
  11  7.18585e-05
  12  2.74855e-06
  13  6.93329e-06
  14  23.034
  15  1.01602
  16  12.176
  17  1.38438e-05
  18  56.673
  19  36.9802
  20  43.4986
  21  4.38929e-05
  22  5.44494
  23  18.1141
  24  2.40604e-05
  25  29.2241
  26  28.5424
  27  0.249326
  28  0.181311
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  6.961e-01  1.016e+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.809e-01  1.813e-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.271e+00  2.493e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.83
Ra Dec: 84.995 -28.659
Photon Flux Upper Limit: 8.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.89e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/711663/likelihoodResults_570067201_570326401_4FGL_J0539.9-2839_daily_bin1276.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) = 5629.44850772
delta logL = 0.159411995844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5629.44677188
delta logL = 0.161147828597

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .65565       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8332       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2817       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67517       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=   5629.447     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      217 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .65280        1.0919        .19248E-01    .24525E-03
   2  alpha         1.8301        .94970        .43174       -.30209E-04
   3  Normalizat    1.2820        .20002        .57361E-01    .10943E-04
   4  Prefactor     .67467        .15386        .42070E-01    .16692E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.652802
  alpha      = 1.8301
  Normalizat = 1.282
  Prefactor  = 0.674667
 **********
 **   18 **HESSE 
 **********

 FCN=   5629.447     FROM HESSE     STATUS=OK            35 CALLS      252 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .65280        .97491        .98478E-03   -1.5546    
   2  alpha         1.8301        1.2066        .29596E-01   -.27128    
   3  Normalizat    1.2820        .23058        .25366E-03   -.84105    
   4  Prefactor     .67467        .17745        .25954E-03   -1.0453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.22464e-12
Minuit parameter uncertainties:
  1  0.974936
  2  1.26382
  3  0.230765
  4  0.1776
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/711663': 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) = 5629.44676031
delta logL = 0.161159403001

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  6.528e-01  9.749e-01  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  1.830e+00  1.264e+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:  6.747e-01  1.776e-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.282e+00  2.308e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 84.995 -28.659
Photon Index (Free Index): 1.83 +/- 1.26
Photon Flux (Free Index): 8.52e-09 +/- 1.44e-08
Energy Flux (Free Index): 4.75e-06 +/- 8.04e-06

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/711663/cmap_HighResolution_570067201_570326401_4FGL_J0539.9-2839_daily_bin1276.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.89e-05', comment='SUCCESS', energy_flux2='4.75e-06', dlogl='1.61e-01', photon_flux2='8.52e-09', job_status='DONE', time_completed='2021-08-23 14:59:58.108299', photon_index_error2='1.26', photon_index2='1.83', ts='0.83', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='8.05e-08', energy_flux_error2='8.04e-06', EG='1.27', time_epoch_completed='1629755998.11', return_code='0', job_id='711663', GAL2='0.67', EG2='1.28', return_code2='0', photon_flux_error2='1.44e-08', ts2='1.15', photon_index='2.68' WHERE bin_id='1276' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 14:59:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 711663: <4FGL_J0539.9-2839_daily_bin1276> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin1276 84.9952 -28.6585 570067201 570326401 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 :                                   827.09 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             318.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            871 sec.

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

