/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 9 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 = 7477
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0539.9-2839_daily_bin394
RA = 84.9952, Dec = -28.6585
tmin = 341452801, tmax = 341712001
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='705826', job_status='RUN', time_executed='2021-08-23 14:26:06.612008', time_epoch_executed='1629753966.61' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='394'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/705826

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/705826/ft1_4FGL_J0539.9-2839_daily_bin394.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/705826/ft2_4FGL_J0539.9-2839_daily_bin394.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/705826/ft1_4FGL_J0539.9-2839_daily_bin394.fits outfile=/scratch/kocevski/705826/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin394.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=341452801.0 tmax=341712001.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.17
user 3.14
sys 0.90

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/705826/ft1_filtered_4FGL_J0539.9-2839_daily_bin394.fits" evtable="EVENTS" scfile=/scratch/kocevski/705826/ft2_4FGL_J0539.9-2839_daily_bin394.fits sctable="SC_DATA" outfile=/scratch/kocevski/705826/ltcube_341452801_341712001_4FGL_J0539.9-2839_daily_bin394.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/705826/ft2_4FGL_J0539.9-2839_daily_bin394.fits
.....................!
real 12.83
user 11.67
sys 1.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/705826/ft1_filtered_4FGL_J0539.9-2839_daily_bin394.fits evtable="EVENTS" scfile=/scratch/kocevski/705826/ft2_4FGL_J0539.9-2839_daily_bin394.fits sctable="SC_DATA" expcube=/scratch/kocevski/705826/ltcube_341452801_341712001_4FGL_J0539.9-2839_daily_bin394.fits outfile=/scratch/kocevski/705826/expmap_341452801_341712001_4FGL_J0539.9-2839_daily_bin394.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/705826/ltcube_341452801_341712001_4FGL_J0539.9-2839_daily_bin394.fits
.....................!
real 191.28
user 185.67
sys 5.11

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/705826/ft1_filtered_4FGL_J0539.9-2839_daily_bin394.fits scfile=/scratch/kocevski/705826/ft2_4FGL_J0539.9-2839_daily_bin394.fits outfile=/scratch/kocevski/705826/cmap_341452801_341712001_4FGL_J0539.9-2839_daily_bin394.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.22
user 0.37
sys 0.82

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/705826/ft1_filtered_4FGL_J0539.9-2839_daily_bin394.fits scfile=/scratch/kocevski/705826/ft2_4FGL_J0539.9-2839_daily_bin394.fits outfile=/scratch/kocevski/705826/cmap_HighResolution_341452801_341712001_4FGL_J0539.9-2839_daily_bin394.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.22
user 0.38
sys 0.83

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/705826/ft1_filtered_4FGL_J0539.9-2839_daily_bin394.fits evtable="EVENTS" scfile=/scratch/kocevski/705826/ft2_4FGL_J0539.9-2839_daily_bin394.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/705826/Model_4FGL_J0539.9-2839_daily_bin394.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/705826/ft1_filtered_4FGL_J0539.9-2839_daily_bin394.fits.....................!
real 90.10
user 87.73
sys 2.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5769       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.5931       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    56.226       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .25225E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.3965       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.9017       1.0000         .10000E-03   10000.    
    13 'norm      '    .31125E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    44.671       1.0000         .10000E-03   10000.    
    15 'norm      '    1.7147       1.0000         .10000E-03   10000.    
    16 'norm      '    11.192       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11061E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1951       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.2557       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.7526       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.6952       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .94010       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0303       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=   7703.587     FROM MIGRAD    STATUS=CONVERGED    690 CALLS     3510 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    56.522       -.28483E-06** at limit **
   2  norm          1.5767        2.2730        .32514E-06    .53500E-03
   3  Prefactor     .10000E-03    2.7009        .84344E-08** at limit **
   4  norm          1.5931        .27873       -.14793E-07    .28480E-04
   5  Prefactor     .10000E-03    47.162        .19828E-06** at limit **
   6  norm          56.280        66.947        .61948E-06    .91453E-04
   7  Prefactor     .10002E-03    2.0028       -.59372E-06** at limit **
   8  norm          6.3992        2.6514        .16160E-07    .59191E-03
   9  Prefactor     .10000E-03    12.501        .74855E-08** at limit **
  10  Prefactor     .10000E-03    3.4037        .27427E-06** at limit **
  11  Prefactor     .10000E-03    13.054        .45197E-06** at limit **
  12  Prefactor     6.9052        6.5543        .44600E-08   -.14612E-03
  13  norm          .10004E-03    2.1008        .87513E-06** at limit **
  14  Prefactor     44.675        29.707        .89467E-07    .78389E-04
  15  norm          1.7148        1.9329        .26373E-06    .82476E-03
  16  norm          11.190        8.1660        .29889E-06    .42967E-03
  17  Prefactor     .10004E-03    9.6865       -.45516E-05** at limit **
  18  Prefactor     3.1589        279.53        .17712E-04    .11079E-03
  19  Prefactor     .10000E-03    31.411       -.80517E-06** at limit **
  20  Prefactor     .10000E-03    44.083        .63251E-06** at limit **
  21  Prefactor     .10000E-03    11.435       -.50007E-07** at limit **
  22  norm          5.2558        5.3589        .29027E-07    .23998E-03
  23  Prefactor     6.7508        15.439       -.31582E-06    .14344E-03
  24  Prefactor     .10000E-03    2.0344       -.18703E-06** at limit **
  25  Prefactor     .10000E-03    5.2567       -.16955E-07** at limit **
  26  norm          1.7045        65.120        .32430E-05    .62118E-04
  27  Normalizat    .94014        .18202        .79594E-06    .88056E-03
  28  Prefactor     1.0303        .13974        .20737E-06    .11917E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.5767
  Prefactor  = 0.0001
  norm       = 1.5931
  Prefactor  = 0.0001
  norm       = 56.2803
  Prefactor  = 0.000100025
  norm       = 6.39924
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.90516
  norm       = 0.000100038
  Prefactor  = 44.6748
  norm       = 1.71485
  norm       = 11.1902
  Prefactor  = 0.000100044
  Prefactor  = 3.15887
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.25576
  Prefactor  = 6.75078
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.70452
  Normalizat = 0.940137
  Prefactor  = 1.03026
 **********
 **   18 **HESSE 
 **********

 FCN=   7703.587     FROM HESSE     STATUS=OK           517 CALLS     4027 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    56.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5767        2.2475        .15290E-03   -1.5457    
   3  Prefactor     .10000E-03    2.7481        .14076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.5931        .27939        .18620E-04   -1.5456    
   5  Prefactor     .10000E-03    47.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          56.280        66.757        .26749E-03   -1.4206    
   7  Prefactor     .10002E-03    27.887        .21885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.3992        2.5018        .81604E-04   -1.5202    
   9  Prefactor     .10000E-03    12.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.4184        .15768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.9052        6.3937        .15272E-03   -1.5182    
  13  norm          .10004E-03    12.416        .21133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     44.675        29.547        .59986E-04   -1.4370    
  15  norm          1.7148        1.9211        .12017E-03   -1.5446    
  16  norm          11.190        8.1886        .11976E-03   -1.5039    
  17  Prefactor     .10004E-03    16.234        .34436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.1589        304.26        .22668E-03   -1.5352    
  19  Prefactor     .10000E-03    31.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    44.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.2558        5.3432        .17533E-03   -1.5249    
  23  Prefactor     6.7508        15.416        .15441E-03   -1.5188    
  24  Prefactor     .10000E-03    2.0401        .12227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.2601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.7045        65.478        .32321E-03   -1.5447    
  27  Normalizat    .94014        .21020        .29542E-03   -.95064    
  28  Prefactor     1.0303        .16283        .22340E-03   -.91728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.69772e-09
Minuit parameter uncertainties:
  1  0.000211618
  2  2.24767
  3  3.42368e-06
  4  0.279393
  5  0.000113155
  6  66.8461
  7  0.0016568
  8  2.50182
  9  3.03481e-07
  10  2.00735e-05
  11  7.42373e-05
  12  6.39437
  13  0.00137627
  14  29.5571
  15  1.92115
  16  8.18941
  17  0.00169719
  18  62.3315
  19  0.000238495
  20  0.000192395
  21  2.48947e-05
  22  5.34368
  23  15.4248
  24  1.20625e-05
  25  3.34626e-06
  26  21.1533
  27  0.210383
  28  0.16291
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  1.715e+00  1.921e+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:  1.030e+00  1.629e-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.401e-01  2.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.06
Ra Dec: 84.995 -28.659
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 3.61e-08 +/- 4.04e-08
Energy Flux (Fixed Index): 8.49e-06 +/- 9.51e-06

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

Saving results to:
/scratch/kocevski/705826/likelihoodResults_341452801_341712001_4FGL_J0539.9-2839_daily_bin394.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) = 7703.14614927
delta logL = 0.440869573139

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7703.1246073
delta logL = 0.462411540844

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .51287       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.6418       1.0000          .0000       5.0000    
     3 'Normalizat'    .87928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0663       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7703.125     FROM MIGRAD    STATUS=FAILED       102 CALLS      303 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51080        14.512        .47084E-03    .33695E-03
   2  alpha         4.6455        3.9129        .57013E-01   -.10948E-03
   3  Normalizat    .87947        .17182        .30457E-03    .25383E-05
   4  Prefactor     1.0662        .13253        .22012E-03    .42350E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7703.125     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      389 TOTAL
                     EDM=   .98E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51080        14.512        .38778E-04    .33695E-03
   2  alpha         4.6455        3.9129        .26707E-02   -.10948E-03
   3  Normalizat    .87947        .17182        .94692E-04    .25383E-05
   4  Prefactor     1.0662        .13253        .89984E-04    .42350E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7703.125     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      422 TOTAL
                     EDM=   .26E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51080        1.6008        .18834E-04    .71833E-04
   2  alpha         4.6455        4.7375        .11403E-01    .55435E-06
   3  Normalizat    .87947        .21209        .12183E-04    .26129E-05
   4  Prefactor     1.0662        .16241        .88049E-05    .43900E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.510805
  alpha      = 4.64549
  Normalizat = 0.87947
  Prefactor  = 1.06623
 **********
 **   18 **HESSE 
 **********

 FCN=   7703.125     FROM HESSE     STATUS=OK            25 CALLS      447 TOTAL
                     EDM=   .16E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51080        1.3534        .75334E-06   -1.5565    
   2  alpha         4.6455        4.5166        .45610E-03    1.0317    
   3  Normalizat    .87947        .21205        .24365E-05   -.97185    
   4  Prefactor     1.0662        .16226        .17610E-05   -.90553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61875e-13
Minuit parameter uncertainties:
  1  1.3535
  2  2.42221
  3  0.212252
  4  0.16233
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/705826': 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) = 7703.1246055
delta logL = 0.462413346531

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  5.108e-01  1.353e+00  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  4.645e+00  2.422e+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:  1.066e+00  1.623e-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:  8.795e-01  2.123e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.16
Ra Dec: 84.995 -28.659
Photon Index (Free Index): 4.65 +/- 2.42
Photon Flux (Free Index): 7.09e-08 +/- 5.71e-08
Energy Flux (Free Index): 9.92e-06 +/- 8.13e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/705826/cmap_HighResolution_341452801_341712001_4FGL_J0539.9-2839_daily_bin394.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.81e-05', comment='SUCCESS', photon_flux='3.61e-08', energy_flux2='9.92e-06', photon_flux_error='4.04e-08', dlogl='4.62e-01', energy_flux='8.49e-06', photon_flux2='7.09e-08', job_status='DONE', time_completed='2021-08-23 14:41:30.920359', photon_index_error2='2.42', photon_index2='4.65', ts='1.06', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='8.13e-06', EG='0.94', time_epoch_completed='1629754890.92', return_code='0', job_id='705826', GAL2='1.07', EG2='0.88', return_code2='0', energy_flux_error='9.51e-06', photon_flux_error2='5.71e-08', ts2='2.16', photon_index='2.68' WHERE bin_id='394' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 14:41:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 705826: <4FGL_J0539.9-2839_daily_bin394> in cluster <slac> Done

Job <4FGL_J0539.9-2839_daily_bin394> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Aug 23 14:25:36 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 14:25:38 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:25:38 2021
Terminated at Mon Aug 23 14:41:31 2021
Results reported at Mon Aug 23 14:41:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin394 84.9952 -28.6585 341452801 341712001 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 :                                   933.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            955 sec.

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

