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


Performing analysis on: 4FGL_J0539.9-2839_daily_bin1368
RA = 84.9952, Dec = -28.6585
tmin = 593913601, tmax = 594172801
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='711794', job_status='RUN', time_executed='2021-08-23 14:46:19.889324', time_epoch_executed='1629755179.89' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1368'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/711794

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/711794/ft1_4FGL_J0539.9-2839_daily_bin1368.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/711794/ft2_4FGL_J0539.9-2839_daily_bin1368.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/711794/ft1_4FGL_J0539.9-2839_daily_bin1368.fits outfile=/scratch/kocevski/711794/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1368.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=593913601.0 tmax=594172801.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.72
user 3.35
sys 1.33

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/711794/ft2_4FGL_J0539.9-2839_daily_bin1368.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/711794/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1368.fits evtable="EVENTS" outfile="/scratch/kocevski/711794/ft1_filtered_4FGL_J0539.9-2839_daily_bin1368.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.71
user 0.35
sys 1.28

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/711794/ft1_filtered_4FGL_J0539.9-2839_daily_bin1368.fits" evtable="EVENTS" scfile=/scratch/kocevski/711794/ft2_4FGL_J0539.9-2839_daily_bin1368.fits sctable="SC_DATA" outfile=/scratch/kocevski/711794/ltcube_593913601_594172801_4FGL_J0539.9-2839_daily_bin1368.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/711794/ft2_4FGL_J0539.9-2839_daily_bin1368.fits
.....................!
real 13.50
user 11.85
sys 1.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/711794/ft1_filtered_4FGL_J0539.9-2839_daily_bin1368.fits evtable="EVENTS" scfile=/scratch/kocevski/711794/ft2_4FGL_J0539.9-2839_daily_bin1368.fits sctable="SC_DATA" expcube=/scratch/kocevski/711794/ltcube_593913601_594172801_4FGL_J0539.9-2839_daily_bin1368.fits outfile=/scratch/kocevski/711794/expmap_593913601_594172801_4FGL_J0539.9-2839_daily_bin1368.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/711794/ltcube_593913601_594172801_4FGL_J0539.9-2839_daily_bin1368.fits
.....................!
real 191.42
user 184.80
sys 6.22

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/711794/ft1_filtered_4FGL_J0539.9-2839_daily_bin1368.fits scfile=/scratch/kocevski/711794/ft2_4FGL_J0539.9-2839_daily_bin1368.fits outfile=/scratch/kocevski/711794/cmap_593913601_594172801_4FGL_J0539.9-2839_daily_bin1368.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.63
user 0.39
sys 1.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/711794/ft1_filtered_4FGL_J0539.9-2839_daily_bin1368.fits scfile=/scratch/kocevski/711794/ft2_4FGL_J0539.9-2839_daily_bin1368.fits outfile=/scratch/kocevski/711794/cmap_HighResolution_593913601_594172801_4FGL_J0539.9-2839_daily_bin1368.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.68
user 0.39
sys 1.22

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/711794/ft1_filtered_4FGL_J0539.9-2839_daily_bin1368.fits evtable="EVENTS" scfile=/scratch/kocevski/711794/ft2_4FGL_J0539.9-2839_daily_bin1368.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/711794/Model_4FGL_J0539.9-2839_daily_bin1368.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/711794/ft1_filtered_4FGL_J0539.9-2839_daily_bin1368.fits.....................!
real 91.66
user 88.73
sys 2.65

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    138.10       1.0000         .10000E-03   10000.    
     2 'norm      '    .48312       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.991       1.0000         .10000E-03   10000.    
     4 'norm      '    3.0593       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .22032       1.0000         .10000E-03   10000.    
     8 'norm      '    2.6643       1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.576       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.3681       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.4519       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.5002       1.0000         .10000E-03   10000.    
    16 'norm      '    11.040       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.788       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.1107       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.238       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.9011       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    25.763       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2226       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .91690       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=   7222.306     FROM MIGRAD    STATUS=CONVERGED    668 CALLS     3480 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          138.11        160.33        .22644E-05    .59997E-05
   2  norm          .48778        2.4085       -.53434E-06   -.66596E-03
   3  Prefactor     10.995        7.3067       -.79356E-06   -.22258E-02
   4  norm          3.0594        .39817        .15171E-07    .17094E-03
   5  Prefactor     .10000E-03    22.376       -.46408E-05** at limit **
   6  norm          .10000E-03    31.276        .21125E-04** at limit **
   7  Prefactor     .25180        2.4378        .63710E-06   -.76774E-03
   8  norm          2.6619        2.3482       -.20212E-07   -.74619E-03
   9  Prefactor     46.582        36.242        .56359E-05   -.14959E-05
  10  Prefactor     4.3640        6.2336       -.69694E-06   -.56699E-03
  11  Prefactor     .10000E-03    5.1312       -.58269E-07** at limit **
  12  Prefactor     .10000E-03    8.2268       -.49570E-05** at limit **
  13  norm          9.4537        5.8998        .25043E-06    .49648E-04
  14  Prefactor     .10000E-03    12.238        .65076E-05** at limit **
  15  norm          3.5015        2.2602       -.17010E-06   -.31269E-03
  16  norm          11.040        11.123        .16740E-06   -.23441E-04
  17  Prefactor     10.791        9.4977        .39197E-06   -.36723E-04
  18  Prefactor     .10000E-03    42.555       -.25900E-04** at limit **
  19  Prefactor     9.1157        24.704        .67203E-05   -.28545E-04
  20  Prefactor     15.249        24.463        .11143E-04   -.19978E-04
  21  Prefactor     .10000E-03    20.004       -.15312E-04** at limit **
  22  norm          .10000E-03    3.4856       -.81970E-08** at limit **
  23  Prefactor     .10000E-03    7.5375        .30838E-05** at limit **
  24  Prefactor     8.9037        7.1179       -.27002E-06   -.14464E-03
  25  Prefactor     .10000E-03    28.126        .17622E-04** at limit **
  26  norm          25.763        24.672       -.15678E-06   -.16850E-04
  27  Normalizat    1.2221        .23109       -.16779E-05   -.50944E-04
  28  Prefactor     .91717        .15887       -.43354E-06   -.14860E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 138.106
  norm       = 0.48778
  Prefactor  = 10.9955
  norm       = 3.05945
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.251799
  norm       = 2.66186
  Prefactor  = 46.5816
  Prefactor  = 4.36404
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.45371
  Prefactor  = 0.0001
  norm       = 3.50153
  norm       = 11.0398
  Prefactor  = 10.7907
  Prefactor  = 0.0001
  Prefactor  = 9.11572
  Prefactor  = 15.2488
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.90371
  Prefactor  = 0.000100001
  norm       = 25.7631
  Normalizat = 1.2221
  Prefactor  = 0.917166
 **********
 **   18 **HESSE 
 **********

 FCN=   7222.306     FROM HESSE     STATUS=OK           529 CALLS     4009 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          138.11        160.07        .34275E-04   -1.3352    
   2  norm          .48778        4.6465        .24685E-02   -1.5568    
   3  Prefactor     10.995        7.4202        .60422E-03   -1.5045    
   4  norm          3.0594        .39919        .18638E-04   -1.5358    
   5  Prefactor     .10000E-03    22.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    31.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .25180        18.890        .23642E-02   -1.5608    
   8  norm          2.6619        2.3494        .11118E-03   -1.5382    
   9  Prefactor     46.582        36.365        .58751E-04   -1.4342    
  10  Prefactor     4.3640        6.2368        .19271E-03   -1.5290    
  11  Prefactor     .10000E-03    5.1357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.2322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.4537        5.9122        .13035E-03   -1.5093    
  14  Prefactor     .10000E-03    12.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.5015        2.2652        .96860E-04   -1.5334    
  16  norm          11.040        11.128        .12057E-03   -1.5043    
  17  Prefactor     10.791        9.5070        .12198E-03   -1.5051    
  18  Prefactor     .10000E-03    42.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.1157        24.652        .13278E-03   -1.5104    
  20  Prefactor     15.249        24.361        .10260E-03   -1.4927    
  21  Prefactor     .10000E-03    20.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.5006        .15468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.5464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.9037        7.1110        .13434E-03   -1.5111    
  25  Prefactor     .10000E-03    28.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          25.763        24.686        .78923E-04   -1.4692    
  27  Normalizat    1.2221        .27519        .30809E-03   -.85923    
  28  Prefactor     .91717        .18793        .25919E-03   -.95544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.36269e-09
Minuit parameter uncertainties:
  1  160.58
  2  3.01097
  3  7.42082
  4  0.399186
  5  3.8175e-06
  6  3.61932e-06
  7  4.36245
  8  2.34953
  9  36.3827
  10  6.23776
  11  5.26354e-06
  12  1.74003e-06
  13  5.91257
  14  1.51614e-05
  15  2.26521
  16  11.1298
  17  9.50835
  18  7.86927e-06
  19  24.6791
  20  24.3765
  21  0.000118977
  22  4.56052e-07
  23  1.66933e-06
  24  7.11171
  25  0.000260669
  26  24.6959
  27  0.275522
  28  0.188067
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  3.502e+00  2.265e+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.172e-01  1.881e-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.222e+00  2.755e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.36
Ra Dec: 84.995 -28.659
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 7.37e-08 +/- 4.77e-08
Energy Flux (Fixed Index): 1.73e-05 +/- 1.12e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7222.21100079
delta logL = 0.0945506921107

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7222.2087349
delta logL = 0.0968165799286

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5655       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3896       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2383       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90903       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=   7222.209     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      204 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5655        3.4841        .53509E-02    .81295E-03
   2  alpha         2.3896        .82897        .41202        .44717E-04
   3  Normalizat    1.2383        .21163        .69242E-01    .70632E-04
   4  Prefactor     .90903        .15626        .45120E-01    .59617E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.56553
  alpha      = 2.3896
  Normalizat = 1.23829
  Prefactor  = 0.909033
 **********
 **   18 **HESSE 
 **********

 FCN=   7222.209     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5655        2.3657        .10141E-03   -1.5330    
   2  alpha         2.3896        .63743        .18671E-01   -.44175E-01
   3  Normalizat    1.2383        .24853        .30636E-03   -.85428    
   4  Prefactor     .90903        .18209        .26019E-03   -.95826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57509e-10
Minuit parameter uncertainties:
  1  2.36576
  2  0.644557
  3  0.248764
  4  0.182215
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/711794': 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) = 7222.2087349
delta logL = 0.0968165799568

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  3.566e+00  2.366e+00  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  2.390e+00  6.446e-01  0.000e+00  5.000e+00 ( 1.000e+00)
260         beta:  1.119e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
261           Eb:  3.935e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  9.090e-01  1.822e-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.238e+00  2.488e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.50
Ra Dec: 84.995 -28.659
Photon Index (Free Index): 2.39 +/- 0.64
Photon Flux (Free Index): 6.13e-08 +/- 5.00e-08
Energy Flux (Free Index): 1.77e-05 +/- 1.17e-05

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/711794/cmap_HighResolution_593913601_594172801_4FGL_J0539.9-2839_daily_bin1368.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.37e-08', energy_flux2='1.77e-05', photon_flux_error='4.77e-08', dlogl='9.68e-02', energy_flux='1.73e-05', photon_flux2='6.13e-08', job_status='DONE', time_completed='2021-08-23 14:59:23.755224', photon_index_error2='0.64', photon_index2='2.39', ts='5.36', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.17e-05', EG='1.22', time_epoch_completed='1629755963.76', return_code='0', job_id='711794', GAL2='0.91', EG2='1.24', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='5.00e-08', ts2='5.50', photon_index='2.68' WHERE bin_id='1368' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 14:59:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 711794: <4FGL_J0539.9-2839_daily_bin1368> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin1368 84.9952 -28.6585 593913601 594172801 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 :                                   799.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            827 sec.

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

