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


Performing analysis on: 4FGL_J0539.9-2839_daily_bin1052
RA = 84.9952, Dec = -28.6585
tmin = 512006401, tmax = 512265601
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='710155', job_status='RUN', time_executed='2021-08-23 14:43:01.662084', time_epoch_executed='1629754981.66' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1052'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/710155

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/710155/ft1_4FGL_J0539.9-2839_daily_bin1052.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/710155/ft2_4FGL_J0539.9-2839_daily_bin1052.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/710155/ft1_4FGL_J0539.9-2839_daily_bin1052.fits outfile=/scratch/kocevski/710155/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1052.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=512006401.0 tmax=512265601.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.79
user 3.28
sys 1.48

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/710155/ft1_filtered_4FGL_J0539.9-2839_daily_bin1052.fits" evtable="EVENTS" scfile=/scratch/kocevski/710155/ft2_4FGL_J0539.9-2839_daily_bin1052.fits sctable="SC_DATA" outfile=/scratch/kocevski/710155/ltcube_512006401_512265601_4FGL_J0539.9-2839_daily_bin1052.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/710155/ft2_4FGL_J0539.9-2839_daily_bin1052.fits
.....................!
real 13.28
user 11.60
sys 1.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/710155/ft1_filtered_4FGL_J0539.9-2839_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/710155/ft2_4FGL_J0539.9-2839_daily_bin1052.fits sctable="SC_DATA" expcube=/scratch/kocevski/710155/ltcube_512006401_512265601_4FGL_J0539.9-2839_daily_bin1052.fits outfile=/scratch/kocevski/710155/expmap_512006401_512265601_4FGL_J0539.9-2839_daily_bin1052.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/710155/ltcube_512006401_512265601_4FGL_J0539.9-2839_daily_bin1052.fits
.....................!
real 192.12
user 185.27
sys 6.51

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/710155/ft1_filtered_4FGL_J0539.9-2839_daily_bin1052.fits scfile=/scratch/kocevski/710155/ft2_4FGL_J0539.9-2839_daily_bin1052.fits outfile=/scratch/kocevski/710155/cmap_512006401_512265601_4FGL_J0539.9-2839_daily_bin1052.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.83
user 0.37
sys 1.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/710155/ft1_filtered_4FGL_J0539.9-2839_daily_bin1052.fits scfile=/scratch/kocevski/710155/ft2_4FGL_J0539.9-2839_daily_bin1052.fits outfile=/scratch/kocevski/710155/cmap_HighResolution_512006401_512265601_4FGL_J0539.9-2839_daily_bin1052.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.81
user 0.38
sys 1.41

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/710155/ft1_filtered_4FGL_J0539.9-2839_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/710155/ft2_4FGL_J0539.9-2839_daily_bin1052.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/710155/Model_4FGL_J0539.9-2839_daily_bin1052.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/710155/ft1_filtered_4FGL_J0539.9-2839_daily_bin1052.fits.....................!
real 70.04
user 66.96
sys 2.89

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6419       1.0000         .10000E-03   10000.    
     4 'norm      '    .43063       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14619E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    161.36       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .97161       1.0000         .10000E-03   10000.    
     9 'Prefactor '    130.65       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11046E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.085       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.062       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2540       1.0000         .10000E-03   10000.    
    16 'norm      '    5.6376       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.7992       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10201E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.845       1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.510       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.941       1.0000         .10000E-03   10000.    
    26 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.4289       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .90272       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=   5421.853     FROM MIGRAD    STATUS=CONVERGED   1207 CALLS     4531 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    72.147        .18142E-02** at limit **
   2  norm          .10000E-03    1.7911        .95915E-03** at limit **
   3  Prefactor     2.6411        6.0288        .25084E-03   -.96899E-04
   4  norm          .43062        .22602        .24392E-04   -.42413E-04
   5  Prefactor     .10000E-03    57.986        .19013    ** at limit **
   6  norm          161.38        133.65        .15873E-03    .20985E-04
   7  Prefactor     .10000E-03    4.4880        .29925E-03** at limit **
   8  norm          .97092        2.4494        .17371E-03   -.15399E-03
   9  Prefactor     130.61        66.960        .17613E-03   -.17024E-03
  10  Prefactor     .10000E-03    2.6511        .11694E-02** at limit **
  11  Prefactor     .10000E-03    46.794        .36285E-02** at limit **
  12  Prefactor     .10000E-03    5.8921        .17446E-02** at limit **
  13  norm          10.083        6.5428        .12618E-03   -.21318E-03
  14  Prefactor     18.051        25.371        .94240E-04   -.57905E-04
  15  norm          2.2550        3.0780        .13971E-03   -.14159E-04
  16  norm          5.6396        13.012        .16919E-03   -.22914E-04
  17  Prefactor     2.8005        9.6076        .24316E-03   -.60359E-04
  18  Prefactor     .10000E-03    29.746        .18142E-02** at limit **
  19  Prefactor     .10000E-03    36.391        .18142E-02** at limit **
  20  Prefactor     .10000E-03    12.374        .18142E-02** at limit **
  21  Prefactor     .10000E-03    16.674        .18142E-02** at limit **
  22  norm          .10000E-03    17.020        .36285E-03** at limit **
  23  Prefactor     13.850        18.067        .10765E-03   -.13413E-04
  24  Prefactor     11.514        8.0831        .11808E-03   -.54302E-04
  25  Prefactor     10.945        29.463        .12112E-03   -.71333E-05
  26  norm          .10000E-03    18.745        .18142E-02** at limit **
  27  Normalizat    1.4292        .31870        .29109E-03   -.80141E-04
  28  Prefactor     .90246        .22150        .25889E-03   -.25458E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.64107
  norm       = 0.430621
  Prefactor  = 0.0001
  norm       = 161.384
  Prefactor  = 0.0001
  norm       = 0.970923
  Prefactor  = 130.606
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 10.0828
  Prefactor  = 18.0511
  norm       = 2.25498
  norm       = 5.63959
  Prefactor  = 2.80047
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.8501
  Prefactor  = 11.5143
  Prefactor  = 10.945
  norm       = 0.0001
  Normalizat = 1.42918
  Prefactor  = 0.902463
 **********
 **   18 **HESSE 
 **********

 FCN=   5421.853     FROM HESSE     STATUS=OK           501 CALLS     5032 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    72.147        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.7912        .19183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.6411        6.0282        .10034E-04   -1.5383    
   4  norm          .43062        .22602        .97568E-06   -1.5577    
   5  Prefactor     .10000E-03    58.109        .18974       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          161.38        133.66        .31747E-04   -1.3160    
   7  Prefactor     .10000E-03    4.4882        .59849E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .97092        2.4486        .69486E-05   -1.5511    
   9  Prefactor     130.61        66.960        .35226E-04   -1.3417    
  10  Prefactor     .10000E-03    2.6512        .23387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    47.128        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.8921        .34893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.083        6.5424        .50470E-05   -1.5073    
  14  Prefactor     18.051        25.367        .37696E-05   -1.4858    
  15  norm          2.2550        3.0774        .55882E-05   -1.5408    
  16  norm          5.6396        13.011        .67675E-05   -1.5233    
  17  Prefactor     2.8005        9.6048        .97265E-05   -1.5373    
  18  Prefactor     .10000E-03    29.746        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    36.393        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.374        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.674        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    17.021        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     13.850        18.065        .43059E-05   -1.4963    
  24  Prefactor     11.514        8.0829        .23616E-04   -1.5029    
  25  Prefactor     10.945        29.462        .48450E-05   -1.5046    
  26  norm          .10000E-03    18.746        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.4292        .31898        .11644E-04   -.79788    
  28  Prefactor     .90246        .22173        .51778E-04   -.96055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26184e-10
Minuit parameter uncertainties:
  1  0.000206892
  2  5.1128e-06
  3  6.02956
  4  0.226021
  5  5.55307e-05
  6  133.908
  7  3.12807e-05
  8  2.44883
  9  66.9992
  10  2.11938e-06
  11  0.000408229
  12  1.80525e-05
  13  6.54286
  14  25.3817
  15  3.07766
  16  13.0177
  17  9.61009
  18  0.000121752
  19  2.89249e-05
  20  1.82914e-06
  21  1.88485e-05
  22  5.31563e-05
  23  18.0724
  24  8.0837
  25  29.5013
  26  4.96493e-05
  27  0.319428
  28  0.22195
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  2.255e+00  3.078e+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.025e-01  2.219e-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.429e+00  3.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/710155/likelihoodResults_512006401_512265601_4FGL_J0539.9-2839_daily_bin1052.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) = 5421.84116246
delta logL = 0.0114781498669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5421.84046704
delta logL = 0.0121735709336

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2392       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8802       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90742       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=   5421.840     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      266 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2331        3.0342        .13358E-03    .38299E-05
   2  alpha         2.8765        1.2723        .31454E-01    .10366E-04
   3  Normalizat    1.4197        .29994        .29188E-03    .21111E-04
   4  Prefactor     .90729        .21320        .25829E-03   -.19587E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.23312
  alpha      = 2.87648
  Normalizat = 1.41969
  Prefactor  = 0.90729
 **********
 **   18 **HESSE 
 **********

 FCN=   5421.840     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .98E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2331        2.9815        .53431E-05   -1.5409    
   2  alpha         2.8765        1.2515        .62909E-02    .15117    
   3  Normalizat    1.4197        .30055        .11675E-04   -.80061    
   4  Prefactor     .90729        .21343        .10332E-04   -.95887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.81286e-12
Minuit parameter uncertainties:
  1  2.98166
  2  1.31227
  3  0.300921
  4  0.21363
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/710155': 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) = 5421.84045927
delta logL = 0.0121813447686

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  2.233e+00  2.982e+00  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  2.876e+00  1.312e+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:  9.073e-01  2.136e-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.420e+00  3.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.75
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/710155/cmap_HighResolution_512006401_512265601_4FGL_J0539.9-2839_daily_bin1052.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.49e-05', job_status='DONE', photon_flux_upper_limit='1.91e-07', time_completed='2021-08-23 14:56:08.038242', job_id='710155', GAL2='0.91', fit_tolerance='1e-08', EG2='1.42', EG='1.43', time_epoch_completed='1629755768.04', return_code2='0', ts='0.75', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.22e-02', ts2='0.78', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1052' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 14:56:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0119>
Subject: Job 710155: <4FGL_J0539.9-2839_daily_bin1052> in cluster <slac> Done

Job <4FGL_J0539.9-2839_daily_bin1052> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 23 14:40:31 2021
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 14:40:32 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:32 2021
Terminated at Mon Aug 23 14:56:08 2021
Results reported at Mon Aug 23 14:56:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin1052 84.9952 -28.6585 512006401 512265601 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 :                                   805.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             265.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            937 sec.

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

