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


Performing analysis on: 4FGL_J0539.9-2839_daily_bin1388
RA = 84.9952, Dec = -28.6585
tmin = 599097601, tmax = 599356801
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='711824', job_status='RUN', time_executed='2021-08-23 14:46:59.991963', time_epoch_executed='1629755219.99' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1388'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/711824

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/711824/ft1_4FGL_J0539.9-2839_daily_bin1388.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/711824/ft2_4FGL_J0539.9-2839_daily_bin1388.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/711824/ft1_4FGL_J0539.9-2839_daily_bin1388.fits outfile=/scratch/kocevski/711824/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1388.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=599097601.0 tmax=599356801.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.35
user 2.63
sys 1.67

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/711824/ft1_filtered_4FGL_J0539.9-2839_daily_bin1388.fits" evtable="EVENTS" scfile=/scratch/kocevski/711824/ft2_4FGL_J0539.9-2839_daily_bin1388.fits sctable="SC_DATA" outfile=/scratch/kocevski/711824/ltcube_599097601_599356801_4FGL_J0539.9-2839_daily_bin1388.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/711824/ft2_4FGL_J0539.9-2839_daily_bin1388.fits
.....................!
real 13.98
user 11.84
sys 2.02

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/711824/ft1_filtered_4FGL_J0539.9-2839_daily_bin1388.fits evtable="EVENTS" scfile=/scratch/kocevski/711824/ft2_4FGL_J0539.9-2839_daily_bin1388.fits sctable="SC_DATA" expcube=/scratch/kocevski/711824/ltcube_599097601_599356801_4FGL_J0539.9-2839_daily_bin1388.fits outfile=/scratch/kocevski/711824/expmap_599097601_599356801_4FGL_J0539.9-2839_daily_bin1388.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/711824/ltcube_599097601_599356801_4FGL_J0539.9-2839_daily_bin1388.fits
.....................!
real 194.23
user 185.19
sys 7.83

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/711824/ft1_filtered_4FGL_J0539.9-2839_daily_bin1388.fits scfile=/scratch/kocevski/711824/ft2_4FGL_J0539.9-2839_daily_bin1388.fits outfile=/scratch/kocevski/711824/cmap_599097601_599356801_4FGL_J0539.9-2839_daily_bin1388.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.99
user 0.37
sys 1.60

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/711824/ft1_filtered_4FGL_J0539.9-2839_daily_bin1388.fits scfile=/scratch/kocevski/711824/ft2_4FGL_J0539.9-2839_daily_bin1388.fits outfile=/scratch/kocevski/711824/cmap_HighResolution_599097601_599356801_4FGL_J0539.9-2839_daily_bin1388.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 2.07
user 0.36
sys 1.62

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/711824/ft1_filtered_4FGL_J0539.9-2839_daily_bin1388.fits evtable="EVENTS" scfile=/scratch/kocevski/711824/ft2_4FGL_J0539.9-2839_daily_bin1388.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/711824/Model_4FGL_J0539.9-2839_daily_bin1388.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/711824/ft1_filtered_4FGL_J0539.9-2839_daily_bin1388.fits.....................!
real 72.79
user 69.42
sys 3.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    189.33       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3371       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9305       1.0000         .10000E-03   10000.    
     4 'norm      '    .86453       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    85.514       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.6759       1.0000         .10000E-03   10000.    
     8 'norm      '    5.7177       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.079       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.214       1.0000         .10000E-03   10000.    
    15 'norm      '    1.1681       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.7425       1.0000         .10000E-03   10000.    
    18 'Prefactor '    92.278       1.0000         .10000E-03   10000.    
    19 'Prefactor '    102.08       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.0770       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    24.846       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2166       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .92234       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=   5913.029     FROM MIGRAD    STATUS=CONVERGED    692 CALLS     3511 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          189.33        240.43       -.35076E-05    .25809E-06
   2  norm          1.3370        2.1252        .10704E-07   -.21491E-03
   3  Prefactor     4.9305        5.2532       -.16185E-05   -.13890E-03
   4  norm          .86453        .28021       -.12304E-07    .21053E-03
   5  Prefactor     .10000E-03    22.866        .12461E-04** at limit **
   6  norm          85.517        132.06        .32056E-05    .42087E-06
   7  Prefactor     6.6759        4.9037        .42946E-06   -.23015E-03
   8  norm          5.7177        2.4902       -.14323E-06   -.66404E-04
   9  Prefactor     .10000E-03    47.539       -.60649E-05** at limit **
  10  Prefactor     .10000E-03    3.5534       -.78120E-07** at limit **
  11  Prefactor     .10000E-03    9.8805       -.15520E-06** at limit **
  12  Prefactor     12.079        10.753       -.75377E-06   -.19762E-04
  13  norm          .10000E-03    3.2954        .82559E-07** at limit **
  14  Prefactor     10.214        13.364       -.12451E-06    .77233E-06
  15  norm          1.1680        2.6333       -.65969E-06   -.95078E-03
  16  norm          .10000E-03    5.6141        .28876E-07** at limit **
  17  Prefactor     6.7433        14.194        .17367E-06   -.80281E-04
  18  Prefactor     92.273        150.73       -.48969E-05   -.21223E-04
  19  Prefactor     102.08        55.201       -.39131E-05    .16746E-04
  20  Prefactor     .10000E-03    114.50       -.10855E-04** at limit **
  21  Prefactor     .10000E-03    22.424       -.11695E-04** at limit **
  22  norm          7.0779        9.3678       -.15112E-07   -.17427E-03
  23  Prefactor     .10000E-03    71.248        .13547E-04** at limit **
  24  Prefactor     .10000E-03    3.2903        .13993E-07** at limit **
  25  Prefactor     24.844        25.826        .29360E-06    .50674E-04
  26  norm          .10000E-03    10.468        .10517E-06** at limit **
  27  Normalizat    1.2166        .23081        .15431E-05    .36030E-04
  28  Prefactor     .92233        .17139        .12967E-06    .77036E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 189.328
  norm       = 1.33702
  Prefactor  = 4.93049
  norm       = 0.864529
  Prefactor  = 0.0001
  norm       = 85.5174
  Prefactor  = 6.67591
  norm       = 5.71771
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0788
  norm       = 0.0001
  Prefactor  = 10.2136
  norm       = 1.16795
  norm       = 0.0001
  Prefactor  = 6.74328
  Prefactor  = 92.2734
  Prefactor  = 102.075
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.07795
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.8436
  norm       = 0.0001
  Normalizat = 1.21658
  Prefactor  = 0.92233
 **********
 **   18 **HESSE 
 **********

 FCN=   5913.029     FROM HESSE     STATUS=OK           517 CALLS     4028 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          189.33        240.99        .29349E-04   -1.2947    
   2  norm          1.3370        2.0896        .13555E-03   -1.5477    
   3  Prefactor     4.9305        5.3000        .17417E-03   -1.5264    
   4  norm          .86453        .28029        .22392E-04   -1.5522    
   5  Prefactor     .10000E-03    22.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          85.517        132.06        .43442E-04   -1.3856    
   7  Prefactor     6.6759        4.8858        .13441E-03   -1.5191    
   8  norm          5.7177        2.4898        .74435E-04   -1.5230    
   9  Prefactor     .10000E-03    47.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.6013        .14137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.9569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.079        10.672        .11526E-03   -1.5013    
  13  norm          .10000E-03    3.3275        .27019E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.214        13.359        .12538E-03   -1.5069    
  15  norm          1.1680        2.6506        .17459E-03   -1.5492    
  16  norm          .10000E-03    5.6159        .17794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.7433        14.152        .15453E-03   -1.5189    
  18  Prefactor     92.273        150.41        .41834E-04   -1.3784    
  19  Prefactor     102.08        55.031        .39794E-04   -1.3684    
  20  Prefactor     .10000E-03    117.34        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    22.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.0779        9.3440        .15079E-03   -1.5176    
  23  Prefactor     .10000E-03    72.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.2933        .13611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     24.844        25.827        .80365E-04   -1.4711    
  26  norm          .10000E-03    10.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2166        .26764        .29418E-03   -.86092    
  28  Prefactor     .92233        .19892        .25347E-03   -.95365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.46334e-10
Minuit parameter uncertainties:
  1  242.266
  2  2.08975
  3  5.30054
  4  0.280294
  5  6.56521e-06
  6  132.519
  7  4.88607
  8  2.48988
  9  2.91458e-05
  10  1.20983e-05
  11  1.97242e-05
  12  10.6733
  13  1.75629e-05
  14  13.3631
  15  2.65082
  16  4.75711e-07
  17  14.1587
  18  151.036
  19  55.0582
  20  0.000420012
  21  8.73294e-06
  22  9.34593
  23  2.46491e-05
  24  5.06121e-06
  25  25.8388
  26  2.05767e-06
  27  0.26794
  28  0.19908
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  1.168e+00  2.651e+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.223e-01  1.991e-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.217e+00  2.679e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/711824/likelihoodResults_599097601_599356801_4FGL_J0539.9-2839_daily_bin1388.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) = 5912.66874428
delta logL = 0.360665743918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5912.63915129
delta logL = 0.390258730698

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42442       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1276       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97149       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=   5912.639     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      257 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .42436        19.544        .10875E-01    .14629E-02
   2  alpha         5.0000        3.9790        .46379    ** at limit **
   3  Normalizat    1.1277        .22049        .68740E-01    .91253E-05
   4  Prefactor     .97142        .91985E-01    .45910E-01    .39765E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.424364
  alpha      = 5
  Normalizat = 1.12773
  Prefactor  = 0.971424
 **********
 **   18 **HESSE 
 **********

 FCN=   5912.639     FROM HESSE     STATUS=OK            31 CALLS      288 TOTAL
                     EDM=   .26E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .42436        .46278        .49248E-04   -1.5578    
   2  alpha         5.0000        3.3223        .81484E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1277        .27312        .30414E-03   -.88866    
   4  Prefactor     .97142        .19949        .24782E-03   -.93688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60999e-13
Minuit parameter uncertainties:
  1  0.462782
  2  4.05072e-07
  3  0.273461
  4  0.19964
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/711824': 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) = 5912.639151
delta logL = 0.390259024557

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  4.244e-01  4.628e-01  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  5.000e+00  4.051e-07  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.714e-01  1.996e-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.128e+00  2.735e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.22
Ra Dec: 84.995 -28.659
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 8.70e-08 +/- 9.43e-08
Energy Flux (Free Index): 1.17e-05 +/- 1.28e-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/711824/cmap_HighResolution_599097601_599356801_4FGL_J0539.9-2839_daily_bin1388.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.52e-05', comment='SUCCESS', energy_flux2='1.17e-05', dlogl='3.90e-01', photon_flux2='8.70e-08', job_status='DONE', time_completed='2021-08-23 14:59:34.214973', photon_index_error2='0.00', photon_index2='5.00', ts='0.25', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.50e-07', energy_flux_error2='1.28e-05', EG='1.22', time_epoch_completed='1629755974.22', return_code='0', job_id='711824', GAL2='0.97', EG2='1.13', return_code2='0', photon_flux_error2='9.43e-08', ts2='1.22', photon_index='2.68' WHERE bin_id='1388' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 14:59:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0045>
Subject: Job 711824: <4FGL_J0539.9-2839_daily_bin1388> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin1388 84.9952 -28.6585 599097601 599356801 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 :                                   775.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            836 sec.

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

