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


Performing analysis on: 4FGL_J0539.9-2839_daily_bin1377
RA = 84.9952, Dec = -28.6585
tmin = 596246401, tmax = 596505601
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='711808', job_status='RUN', time_executed='2021-08-23 14:46:35.521833', time_epoch_executed='1629755195.52' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1377'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/711808

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/711808/ft1_4FGL_J0539.9-2839_daily_bin1377.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/711808/ft2_4FGL_J0539.9-2839_daily_bin1377.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/711808/ft1_4FGL_J0539.9-2839_daily_bin1377.fits outfile=/scratch/kocevski/711808/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1377.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=596246401.0 tmax=596505601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 6.17
user 4.63
sys 1.51

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/711808/ft1_filtered_4FGL_J0539.9-2839_daily_bin1377.fits" evtable="EVENTS" scfile=/scratch/kocevski/711808/ft2_4FGL_J0539.9-2839_daily_bin1377.fits sctable="SC_DATA" outfile=/scratch/kocevski/711808/ltcube_596246401_596505601_4FGL_J0539.9-2839_daily_bin1377.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/711808/ft2_4FGL_J0539.9-2839_daily_bin1377.fits
.....................!
real 13.44
user 11.59
sys 1.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/711808/ft1_filtered_4FGL_J0539.9-2839_daily_bin1377.fits evtable="EVENTS" scfile=/scratch/kocevski/711808/ft2_4FGL_J0539.9-2839_daily_bin1377.fits sctable="SC_DATA" expcube=/scratch/kocevski/711808/ltcube_596246401_596505601_4FGL_J0539.9-2839_daily_bin1377.fits outfile=/scratch/kocevski/711808/expmap_596246401_596505601_4FGL_J0539.9-2839_daily_bin1377.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/711808/ltcube_596246401_596505601_4FGL_J0539.9-2839_daily_bin1377.fits
.....................!
real 191.41
user 184.75
sys 6.26

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/711808/ft1_filtered_4FGL_J0539.9-2839_daily_bin1377.fits scfile=/scratch/kocevski/711808/ft2_4FGL_J0539.9-2839_daily_bin1377.fits outfile=/scratch/kocevski/711808/cmap_596246401_596505601_4FGL_J0539.9-2839_daily_bin1377.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.78
user 0.36
sys 1.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/711808/ft1_filtered_4FGL_J0539.9-2839_daily_bin1377.fits scfile=/scratch/kocevski/711808/ft2_4FGL_J0539.9-2839_daily_bin1377.fits outfile=/scratch/kocevski/711808/cmap_HighResolution_596246401_596505601_4FGL_J0539.9-2839_daily_bin1377.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.82
user 0.36
sys 1.42

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/711808/ft1_filtered_4FGL_J0539.9-2839_daily_bin1377.fits evtable="EVENTS" scfile=/scratch/kocevski/711808/ft2_4FGL_J0539.9-2839_daily_bin1377.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/711808/Model_4FGL_J0539.9-2839_daily_bin1377.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/711808/ft1_filtered_4FGL_J0539.9-2839_daily_bin1377.fits.....................!
real 88.27
user 85.02
sys 2.96

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13249E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.9075       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15168E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.4470       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    32.663       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.1755       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4453       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7293       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .83774       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.0457       1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    86.708       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .12128E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.740       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .75030E-02   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0277       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .97358       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7467.609     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     2992 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 17.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10483E-03    465.24       -.53858E-03** at limit **
   2  norm          4.9051        3.1628       -.22034E-06    .11767E-03
   3  Prefactor     .10000E-03    8.9238        .33540E-07** at limit **
   4  norm          1.4470        .28132       -.12996E-07   -.57369E-03
   5  Prefactor     .10000E-03    31.710        .10564E-04** at limit **
   6  norm          32.724        16.797        .39744E-04   -.42991E-02
   7  Prefactor     .10000E-03    1.0210       -.19910E-06** at limit **
   8  norm          6.1756        2.3379       -.15918E-06   -.16036E-04
   9  Prefactor     .10053E-03    6.0650        .10105E-04** at limit **
  10  Prefactor     2.4444        5.0558        .20004E-05    .93000E-03
  11  Prefactor     4.7295        1.3466        .49965E-06    .33741E-03
  12  Prefactor     .10000E-03    5.8754       -.66608E-07** at limit **
  13  norm          .84041        4.7868        .65006E-06   -.45447E-04
  14  Prefactor     .10000E-03    20.980       -.81083E-05** at limit **
  15  norm          2.0458        1.4833       -.10505E-06    .53900E-04
  16  norm          .10000E-03    4.8128        .49389E-06** at limit **
  17  Prefactor     .10000E-03    2.0517       -.39634E-06** at limit **
  18  Prefactor     .10000E-03    74.033       -.38666E-04** at limit **
  19  Prefactor     86.693        2.5244       -.19009E-05   -.12348E-02
  20  Prefactor     .10001E-03    11.021        .19396E-04** at limit **
  21  Prefactor     .10007E-03    10.796       -.29643E-04** at limit **
  22  norm          .10000E-03    6.5083        .60515E-06** at limit **
  23  Prefactor     18.744        1.4736        .35267E-05    .29220E-02
  24  Prefactor     .10000E-03    1.8153       -.28901E-06** at limit **
  25  Prefactor     .10032E-03    9.7331        .40484E-05** at limit **
  26  norm          .10014E-03    191.32        .20857E-03** at limit **
  27  Normalizat    1.0277        .21859       -.10573E-05    .39197E-03
  28  Prefactor     .97351        .16276        .19477E-05    .72779E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000104827
  norm       = 4.90509
  Prefactor  = 0.0001
  norm       = 1.447
  Prefactor  = 0.000100001
  norm       = 32.7243
  Prefactor  = 0.0001
  norm       = 6.17557
  Prefactor  = 0.00010053
  Prefactor  = 2.44442
  Prefactor  = 4.72954
  Prefactor  = 0.0001
  norm       = 0.840413
  Prefactor  = 0.000100001
  norm       = 2.0458
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 86.6925
  Prefactor  = 0.000100006
  Prefactor  = 0.000100066
  norm       = 0.0001
  Prefactor  = 18.744
  Prefactor  = 0.0001
  Prefactor  = 0.000100316
  norm       = 0.000100137
  Normalizat = 1.02774
  Prefactor  = 0.973513
 **********
 **   18 **HESSE 
 **********

 FCN=   7467.609     FROM HESSE     STATUS=OK           593 CALLS     3585 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10483E-03    496.28        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.9051        3.1688        .45391E-02   -1.5265    
   3  Prefactor     .10000E-03    2.8437        .49238E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4470        .28101        .44175E-02   -1.5467    
   5  Prefactor     .10000E-03    31.700        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          32.724        80.657        .17528E-02   -1.4563    
   7  Prefactor     .10000E-03    1.0175        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.1756        2.3637        .40387E-02   -1.5211    
   9  Prefactor     .10053E-03    13.320        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4444        5.4322        .65404E-02   -1.5395    
  11  Prefactor     4.7295        9.9296        .46257E-02   -1.5273    
  12  Prefactor     .10000E-03    5.8666        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .84041        3.0808        .46346E-01   -1.5525    
  14  Prefactor     .10000E-03    20.939        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0458        1.4874        .72268E-02   -1.5422    
  16  norm          .10000E-03    4.8011        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.0355        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    73.888        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     86.693        37.833        .10786E-02   -1.3843    
  20  Prefactor     .10001E-03    11.134        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10007E-03    12.016        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.6808        .47670E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     18.744        14.647        .23130E-02   -1.4842    
  24  Prefactor     .10000E-03    1.8092        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10032E-03    13.688        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10014E-03    15.561        .12323       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0277        .18943        .64428E-01   -.92107    
  28  Prefactor     .97351        .14046        .45936E-01   -.93618    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65864e-07
Minuit parameter uncertainties:
  1  0.0987216
  2  3.16887
  3  1.99399e-05
  4  0.281014
  5  0.000361612
  6  80.9274
  7  4.586e-06
  8  2.36376
  9  0.0053161
  10  5.43327
  11  9.93309
  12  2.46451e-05
  13  3.08137
  14  0.0002548
  15  1.4874
  16  7.95514e-06
  17  4.92307e-06
  18  0.000952872
  19  37.8437
  20  0.000520879
  21  0.00177596
  22  1.35246e-06
  23  14.6497
  24  8.21183e-06
  25  0.00415762
  26  0.00291654
  27  0.189551
  28  0.140513
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  2.046e+00  1.487e+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.735e-01  1.405e-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.028e+00  1.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.21
Ra Dec: 84.995 -28.659
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 4.31e-08 +/- 3.13e-08
Energy Flux (Fixed Index): 1.01e-05 +/- 7.37e-06

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) = 7464.79913589
delta logL = 2.81009596074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7464.58936131
delta logL = 3.01987054364

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0120       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1716       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0701       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95308       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=   7464.589     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0122        .82369        .13093E-01   -.33905E-03
   2  alpha         1.1714        .36848        .30825       -.47836E-04
   3  Normalizat    1.0701        .17524        .63237E-01   -.56740E-06
   4  Prefactor     .95316        .13700        .45678E-01    .16929E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.01217
  alpha      = 1.1714
  Normalizat = 1.07014
  Prefactor  = 0.953163
 **********
 **   18 **HESSE 
 **********

 FCN=   7464.589     FROM HESSE     STATUS=OK            35 CALLS      243 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0122        1.2725        .59729E-03   -1.5507    
   2  alpha         1.1714        .58309        .12777E-01   -.56030    
   3  Normalizat    1.0701        .20504        .27971E-03   -.90716    
   4  Prefactor     .95316        .16035        .22916E-03   -.94307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06063e-11
Minuit parameter uncertainties:
  1  1.27252
  2  0.590726
  3  0.205193
  4  0.160429
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/711808': 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) = 7464.58936019
delta logL = 3.01987166941

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  1.012e+00  1.273e+00  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  1.171e+00  5.907e-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.532e-01  1.604e-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.070e+00  2.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.23
Ra Dec: 84.995 -28.659
Photon Index (Free Index): 1.17 +/- 0.59
Photon Flux (Free Index): 1.38e-08 +/- 1.40e-08
Energy Flux (Free Index): 3.08e-05 +/- 3.27e-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/711808/cmap_HighResolution_596246401_596505601_4FGL_J0539.9-2839_daily_bin1377.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.31e-08', energy_flux2='3.08e-05', photon_flux_error='3.13e-08', dlogl='3.02e+00', energy_flux='1.01e-05', photon_flux2='1.38e-08', job_status='DONE', time_completed='2021-08-23 14:59:17.876086', photon_index_error2='0.59', photon_index2='1.17', ts='4.21', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='3.27e-05', EG='1.03', time_epoch_completed='1629755957.88', return_code='0', job_id='711808', GAL2='0.95', EG2='1.07', return_code2='0', energy_flux_error='7.37e-06', photon_flux_error2='1.40e-08', ts2='10.23', photon_index='2.68' WHERE bin_id='1377' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 14:59:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 711808: <4FGL_J0539.9-2839_daily_bin1377> in cluster <slac> Done

Job <4FGL_J0539.9-2839_daily_bin1377> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Aug 23 14:45:38 2021
Job was executed on host(s) <bullet0262>, 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:18 2021
Results reported at Mon Aug 23 14:59:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin1377 84.9952 -28.6585 596246401 596505601 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 :                                   782.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            820 sec.

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

