/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 43 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7380
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0539.9-2839_daily_bin1234
RA = 84.9952, Dec = -28.6585
tmin = 559180801, tmax = 559440001
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='711602', job_status='RUN', time_executed='2021-08-23 14:46:20.662152', time_epoch_executed='1629755180.66' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1234'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/711602

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/711602/ft1_4FGL_J0539.9-2839_daily_bin1234.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/711602/ft2_4FGL_J0539.9-2839_daily_bin1234.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/711602/ft1_4FGL_J0539.9-2839_daily_bin1234.fits outfile=/scratch/kocevski/711602/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1234.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=559180801.0 tmax=559440001.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 3.83
user 3.39
sys 0.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/711602/ft1_filtered_4FGL_J0539.9-2839_daily_bin1234.fits" evtable="EVENTS" scfile=/scratch/kocevski/711602/ft2_4FGL_J0539.9-2839_daily_bin1234.fits sctable="SC_DATA" outfile=/scratch/kocevski/711602/ltcube_559180801_559440001_4FGL_J0539.9-2839_daily_bin1234.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/711602/ft2_4FGL_J0539.9-2839_daily_bin1234.fits
.....................!
real 12.64
user 12.00
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/711602/ft1_filtered_4FGL_J0539.9-2839_daily_bin1234.fits evtable="EVENTS" scfile=/scratch/kocevski/711602/ft2_4FGL_J0539.9-2839_daily_bin1234.fits sctable="SC_DATA" expcube=/scratch/kocevski/711602/ltcube_559180801_559440001_4FGL_J0539.9-2839_daily_bin1234.fits outfile=/scratch/kocevski/711602/expmap_559180801_559440001_4FGL_J0539.9-2839_daily_bin1234.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/711602/ltcube_559180801_559440001_4FGL_J0539.9-2839_daily_bin1234.fits
.....................!
real 190.80
user 185.15
sys 5.24

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/711602/ft1_filtered_4FGL_J0539.9-2839_daily_bin1234.fits scfile=/scratch/kocevski/711602/ft2_4FGL_J0539.9-2839_daily_bin1234.fits outfile=/scratch/kocevski/711602/cmap_559180801_559440001_4FGL_J0539.9-2839_daily_bin1234.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 0.78
user 0.36
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/711602/ft1_filtered_4FGL_J0539.9-2839_daily_bin1234.fits scfile=/scratch/kocevski/711602/ft2_4FGL_J0539.9-2839_daily_bin1234.fits outfile=/scratch/kocevski/711602/cmap_HighResolution_559180801_559440001_4FGL_J0539.9-2839_daily_bin1234.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 0.77
user 0.38
sys 0.38

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/711602/ft1_filtered_4FGL_J0539.9-2839_daily_bin1234.fits evtable="EVENTS" scfile=/scratch/kocevski/711602/ft2_4FGL_J0539.9-2839_daily_bin1234.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/711602/Model_4FGL_J0539.9-2839_daily_bin1234.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/711602/ft1_filtered_4FGL_J0539.9-2839_daily_bin1234.fits.......................!
real 33.43
user 31.78
sys 1.50

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.567       1.0000         .10000E-03   10000.    
     2 'norm      '    61.360       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .19293       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .21034E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.8767       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .22769E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16037E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    27.923       1.0000         .10000E-03   10000.    
    16 'norm      '    .10353E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .28768E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1007.9       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12929E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .25318E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .67151       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.4622       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=   1373.969     FROM MIGRAD    STATUS=CONVERGED    678 CALLS     4377 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.247        6128.2       -.98090E-04   -.52562E-05
   2  norm          61.368        22.726        .59256E-06   -.55022E-04
   3  Prefactor     .10000E-03    9.8467        .10342E-06** at limit **
   4  norm          .19267        .38503        .31016E-06    .12471E-02
   5  Prefactor     .10000E-03    827.84       -.45925E-08** at limit **
   6  norm          8.8469        499.97       -.49453E-05    .32557E-05
   7  Prefactor     .10000E-03    101.42        .10711E-06** at limit **
   8  norm          .10000E-03    31.513        .24671E-06** at limit **
   9  Prefactor     .10000E-03    941.01        .23674E-05** at limit **
  10  Prefactor     .10000E-03    236.87       -.99181E-08** at limit **
  11  Prefactor     .10000E-03    268.10        .15595E-06** at limit **
  12  Prefactor     .10000E-03    75.910        .85312E-07** at limit **
  13  norm          .10000E-03    74.908        .30050E-06** at limit **
  14  Prefactor     .10000E-03    1393.0       -.78186E-06** at limit **
  15  norm          27.930        21.850        .34262E-06    .12130E-05
  16  norm          .10000E-03    53.547        .11064E-05** at limit **
  17  Prefactor     .10000E-03    16.111        .44040E-06** at limit **
  18  Prefactor     .10000E-03    845.61        .18180E-05** at limit **
  19  Prefactor     1007.8        556.71        .39261E-06    .84981E-05
  20  Prefactor     .10000E-03    208.17       -.18223E-06** at limit **
  21  Prefactor     .10000E-03    339.12        .27467E-06** at limit **
  22  norm          .10000E-03    21.585       -.19074E-06** at limit **
  23  Prefactor     .10000E-03    32.388        .80673E-08** at limit **
  24  Prefactor     .10000E-03    24.798       -.14618E-06** at limit **
  25  Prefactor     .10000E-03    212.19       -.20956E-06** at limit **
  26  norm          .10000E-03    595.11        .52895E-07** at limit **
  27  Normalizat    .67180        .76694       -.26881E-04   -.70979E-05
  28  Prefactor     1.4623        .47394        .10659E-04   -.99818E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 25.247
  norm       = 61.3679
  Prefactor  = 0.0001
  norm       = 0.192675
  Prefactor  = 0.0001
  norm       = 8.84695
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 27.9304
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1007.76
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.671795
  Prefactor  = 1.46233
 **********
 **   18 **HESSE 
 **********

 FCN=   1373.969     FROM HESSE     STATUS=OK           505 CALLS     4882 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.247        6164.7        .38861E-02   -1.4703    
   2  norm          61.368        22.626        .51223E-04   -1.4140    
   3  Prefactor     .10000E-03    9.8492        .11363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .19267        .36920        .30037E-03   -1.5620    
   5  Prefactor     .10000E-03    827.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.8469        502.55        .13453E-03   -1.5113    
   7  Prefactor     .10000E-03    101.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    31.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    943.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    236.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    268.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    75.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    75.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1396.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          27.930        21.774        .75815E-04   -1.4650    
  16  norm          .10000E-03    53.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.166        .14532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    847.38        .21407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1007.8        555.90        .66435E-04   -.92471    
  20  Prefactor     .10000E-03    208.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    339.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    21.594        .16825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    32.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    24.803        .18036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    212.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    595.12        .21460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .67180        .78869        .52037E-03   -1.0502    
  28  Prefactor     1.4623        .49191        .24002E-03   -.78600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06359e-10
Minuit parameter uncertainties:
  1  558.943
  2  22.6288
  3  7.89022e-06
  4  0.369205
  5  8.78007e-05
  6  134.561
  7  7.37372e-05
  8  4.33299e-05
  9  0.00215135
  10  1.68351e-05
  11  0.000217324
  12  1.51801e-05
  13  6.83463e-05
  14  0.00300926
  15  21.7797
  16  1.62907e-05
  17  1.58576e-05
  18  0.000205645
  19  559.113
  20  0.00019492
  21  0.000619451
  22  6.55972e-06
  23  5.76983e-06
  24  6.02642e-06
  25  0.000181324
  26  0.000135417
  27  0.802573
  28  0.493517
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  2.793e+01  2.178e+01  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.462e+00  4.935e-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:  6.718e-01  8.026e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.68
Ra Dec: 84.995 -28.659
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 5.88e-07 +/- 4.58e-07
Energy Flux (Fixed Index): 1.38e-04 +/- 1.08e-04

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

Saving results to:
/scratch/kocevski/711602/likelihoodResults_559180801_559440001_4FGL_J0539.9-2839_daily_bin1234.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) = 1373.64752178
delta logL = 0.321094170496

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1373.64740093
delta logL = 0.321215018789

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.011       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3626       1.0000          .0000       5.0000    
     3 'Normalizat'    .55883       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5197       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=   1373.647     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      258 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.993        467.06        .20875E-02    .27460E-03
   2  alpha         3.3617        2.7193        .23990        .20843E-04
   3  Normalizat    .55912        .67738        .12760        .51091E-04
   4  Prefactor     1.5197        .36200        .53405E-01    .14827E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 22.9934
  alpha      = 3.36175
  Normalizat = 0.559118
  Prefactor  = 1.51971
 **********
 **   18 **HESSE 
 **********

 FCN=   1373.647     FROM HESSE     STATUS=OK            27 CALLS      285 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.993        20.233        .83502E-04   -1.4749    
   2  alpha         3.3617        .89225        .10546E-02    .35192    
   3  Normalizat    .55912        .74742        .56610E-03   -1.0975    
   4  Prefactor     1.5197        .48165        .23607E-03   -.76989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66872e-10
Minuit parameter uncertainties:
  1  20.2395
  2  0.915277
  3  0.76154
  4  0.48311
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/711602': 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) = 1373.64739874
delta logL = 0.321217208263

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  2.299e+01  2.024e+01  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  3.362e+00  9.153e-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:  1.520e+00  4.831e-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:  5.591e-01  7.615e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.53
Ra Dec: 84.995 -28.659
Photon Index (Free Index): 3.36 +/- 0.92
Photon Flux (Free Index): 8.67e-07 +/- 6.54e-07
Energy Flux (Free Index): 1.53e-04 +/- 1.06e-04

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/711602/cmap_HighResolution_559180801_559440001_4FGL_J0539.9-2839_daily_bin1234.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.52e-04', comment='SUCCESS', photon_flux='5.88e-07', energy_flux2='1.53e-04', photon_flux_error='4.58e-07', dlogl='3.21e-01', energy_flux='1.38e-04', photon_flux2='8.67e-07', job_status='DONE', time_completed='2021-08-23 14:53:33.843442', photon_index_error2='0.92', photon_index2='3.36', ts='2.68', fit_tolerance='1e-08', GAL='1.46', photon_index_error='0.00', photon_flux_upper_limit='1.50e-06', energy_flux_error2='1.06e-04', EG='0.67', time_epoch_completed='1629755613.84', return_code='0', job_id='711602', GAL2='1.52', EG2='0.56', return_code2='0', energy_flux_error='1.08e-04', photon_flux_error2='6.54e-07', ts2='3.53', photon_index='2.68' WHERE bin_id='1234' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 14:53:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 711602: <4FGL_J0539.9-2839_daily_bin1234> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin1234 84.9952 -28.6585 559180801 559440001 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 :                                   435.52 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             308.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   488 sec.
    Turnaround time :                            492 sec.

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

