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


Performing analysis on: 4FGL_J0539.9-2839_daily_bin1495
RA = 84.9952, Dec = -28.6585
tmin = 626832001, tmax = 627091201
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='713214', job_status='RUN', time_executed='2021-08-23 14:51:21.996947', time_epoch_executed='1629755482.0' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1495'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/713214

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/713214/ft1_4FGL_J0539.9-2839_daily_bin1495.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/713214/ft2_4FGL_J0539.9-2839_daily_bin1495.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/713214/ft1_4FGL_J0539.9-2839_daily_bin1495.fits outfile=/scratch/kocevski/713214/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1495.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=626832001.0 tmax=627091201.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.47
user 2.78
sys 1.65

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/713214/ft2_4FGL_J0539.9-2839_daily_bin1495.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/713214/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1495.fits evtable="EVENTS" outfile="/scratch/kocevski/713214/ft1_filtered_4FGL_J0539.9-2839_daily_bin1495.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.97
user 0.34
sys 1.61

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/713214/ft1_filtered_4FGL_J0539.9-2839_daily_bin1495.fits" evtable="EVENTS" scfile=/scratch/kocevski/713214/ft2_4FGL_J0539.9-2839_daily_bin1495.fits sctable="SC_DATA" outfile=/scratch/kocevski/713214/ltcube_626832001_627091201_4FGL_J0539.9-2839_daily_bin1495.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/713214/ft2_4FGL_J0539.9-2839_daily_bin1495.fits
.....................!
real 14.20
user 12.17
sys 1.97

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/713214/ft1_filtered_4FGL_J0539.9-2839_daily_bin1495.fits evtable="EVENTS" scfile=/scratch/kocevski/713214/ft2_4FGL_J0539.9-2839_daily_bin1495.fits sctable="SC_DATA" expcube=/scratch/kocevski/713214/ltcube_626832001_627091201_4FGL_J0539.9-2839_daily_bin1495.fits outfile=/scratch/kocevski/713214/expmap_626832001_627091201_4FGL_J0539.9-2839_daily_bin1495.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/713214/ltcube_626832001_627091201_4FGL_J0539.9-2839_daily_bin1495.fits
.....................!
real 192.68
user 185.36
sys 6.91

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/713214/ft1_filtered_4FGL_J0539.9-2839_daily_bin1495.fits scfile=/scratch/kocevski/713214/ft2_4FGL_J0539.9-2839_daily_bin1495.fits outfile=/scratch/kocevski/713214/cmap_626832001_627091201_4FGL_J0539.9-2839_daily_bin1495.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.97
user 0.36
sys 1.59

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/713214/ft1_filtered_4FGL_J0539.9-2839_daily_bin1495.fits scfile=/scratch/kocevski/713214/ft2_4FGL_J0539.9-2839_daily_bin1495.fits outfile=/scratch/kocevski/713214/cmap_HighResolution_626832001_627091201_4FGL_J0539.9-2839_daily_bin1495.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.99
user 0.35
sys 1.61

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/713214/ft1_filtered_4FGL_J0539.9-2839_daily_bin1495.fits evtable="EVENTS" scfile=/scratch/kocevski/713214/ft2_4FGL_J0539.9-2839_daily_bin1495.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/713214/Model_4FGL_J0539.9-2839_daily_bin1495.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/713214/ft1_filtered_4FGL_J0539.9-2839_daily_bin1495.fits.....................!
real 81.08
user 77.78
sys 3.08

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    86.639       1.0000         .10000E-03   10000.    
     2 'norm      '    15.381       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.637       1.0000         .10000E-03   10000.    
     4 'norm      '    1.4007       1.0000         .10000E-03   10000.    
     5 'Prefactor '    55.803       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4662       1.0000         .10000E-03   10000.    
     8 'norm      '    3.6735       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.839       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.5365       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    94.620       1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.235       1.0000         .10000E-03   10000.    
    20 'Prefactor '    52.209       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .12471E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.0248       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    35.951       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .95978       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1567       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=   6941.818     FROM MIGRAD    STATUS=CONVERGED    672 CALLS     3470 TOTAL
                     EDM=   .96E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          86.758        173.08        .16832E-05    .40009E-04
   2  norm          15.379        6.0553       -.60059E-07    .20996E-05
   3  Prefactor     15.637        7.1575        .14581E-06   -.80978E-05
   4  norm          1.4007        .36421       -.65304E-08   -.23378E-04
   5  Prefactor     55.801        52.222       -.12711E-06   -.42569E-05
   6  norm          .10000E-03    38.531       -.17306E-06** at limit **
   7  Prefactor     4.4659        3.7590       -.34289E-08   -.16631E-04
   8  norm          3.6733        2.1414       -.22245E-07   -.13771E-04
   9  Prefactor     18.828        43.867       -.48168E-06   -.20828E-04
  10  Prefactor     .10000E-03    2.0981        .39427E-07** at limit **
  11  Prefactor     .10000E-03    5.8051        .25526E-07** at limit **
  12  Prefactor     .10000E-03    13.290        .14676E-06** at limit **
  13  norm          .10000E-03    3.6542        .12023E-06** at limit **
  14  Prefactor     .10000E-03    13.020        .93197E-07** at limit **
  15  norm          5.5360        2.8011       -.24680E-07    .16247E-04
  16  norm          .10000E-03    4.7838        .19117E-07** at limit **
  17  Prefactor     .10000E-03    5.4389        .11384E-06** at limit **
  18  Prefactor     94.616        94.561        .12351E-07   -.27252E-05
  19  Prefactor     28.220        58.255       -.25750E-05   -.12303E-04
  20  Prefactor     52.202        36.635        .82031E-07   -.30651E-04
  21  Prefactor     .10000E-03    32.978       -.11723E-06** at limit **
  22  norm          .10000E-03    15.256       -.17151E-05** at limit **
  23  Prefactor     .10000E-03    8.8221       -.11330E-06** at limit **
  24  Prefactor     7.0244        7.6064        .22273E-05    .10585E-04
  25  Prefactor     .10000E-03    9.3429       -.10692E-06** at limit **
  26  norm          35.954        29.075        .13264E-06    .10570E-04
  27  Normalizat    .96004        .24795        .21044E-05   -.55347E-04
  28  Prefactor     1.1566        .17154       -.15712E-05    .13278E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 86.7583
  norm       = 15.3794
  Prefactor  = 15.6367
  norm       = 1.40069
  Prefactor  = 55.8012
  norm       = 0.0001
  Prefactor  = 4.46592
  norm       = 3.6733
  Prefactor  = 18.8277
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.536
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 94.6158
  Prefactor  = 28.2197
  Prefactor  = 52.2018
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.02439
  Prefactor  = 0.0001
  norm       = 35.9544
  Normalizat = 0.960038
  Prefactor  = 1.15657
 **********
 **   18 **HESSE 
 **********

 FCN=   6941.818     FROM HESSE     STATUS=OK           515 CALLS     3985 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          86.758        174.34        .21581E-03   -1.3842    
   2  norm          15.379        6.0677        .10213E-03   -1.4923    
   3  Prefactor     15.637        7.1824        .50642E-03   -1.4917    
   4  norm          1.4007        .36465        .24668E-04   -1.5471    
   5  Prefactor     55.801        52.228        .53699E-04   -1.4213    
   6  norm          .10000E-03    38.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.4659        3.7567        .14029E-03   -1.5285    
   8  norm          3.6733        2.1402        .87760E-04   -1.5325    
   9  Prefactor     18.828        44.001        .92276E-04   -1.4840    
  10  Prefactor     .10000E-03    2.1047        .11782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.8199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.721        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.7836        .31057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.5360        2.8186        .91716E-04   -1.5237    
  16  norm          .10000E-03    4.7922        .17798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.5439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     94.616        94.600        .41318E-04   -1.3759    
  19  Prefactor     28.220        58.016        .75396E-04   -1.4645    
  20  Prefactor     52.202        36.670        .55506E-04   -1.4262    
  21  Prefactor     .10000E-03    33.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    16.186        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.8348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.0244        7.6928        .75679E-03   -1.5178    
  25  Prefactor     .10000E-03    9.3548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          35.954        29.082        .66839E-04   -1.4508    
  27  Normalizat    .96004        .28615        .34834E-03   -.94381    
  28  Prefactor     1.1566        .19665        .23976E-03   -.87678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36799e-10
Minuit parameter uncertainties:
  1  175.384
  2  6.06792
  3  7.18282
  4  0.364653
  5  52.2705
  6  0.000115383
  7  3.75691
  8  2.14028
  9  44.0764
  10  8.54106e-07
  11  1.02976e-05
  12  1.52289e-06
  13  1.72552e-06
  14  6.59633e-06
  15  2.81864
  16  7.45317e-07
  17  1.19939e-05
  18  94.7508
  19  58.1324
  20  36.6854
  21  0.000121725
  22  0.000120616
  23  9.55917e-06
  24  7.69392
  25  9.59033e-06
  26  29.0939
  27  0.286602
  28  0.196775
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  5.536e+00  2.819e+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.157e+00  1.968e-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.600e-01  2.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.83
Ra Dec: 84.995 -28.659
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 1.17e-07 +/- 5.93e-08
Energy Flux (Fixed Index): 2.74e-05 +/- 1.40e-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) = 6940.88640133
delta logL = 0.931999262727

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6940.86774738
delta logL = 0.950653214903

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9117       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5262       1.0000          .0000       5.0000    
     3 'Normalizat'    .88550       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1963       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6940.868     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      271 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9118        2.6116        .66592E-04   -.76756E-03
   2  alpha         3.5262        .66826        .15042E-02   -.44456E-04
   3  Normalizat    .88556        .26804        .36111E-03    .21943E-04
   4  Prefactor     1.1963        .19574        .23633E-03    .39927E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.91182
  alpha      = 3.52624
  Normalizat = 0.885561
  Prefactor  = 1.19626
 **********
 **   18 **HESSE 
 **********

 FCN=   6940.868     FROM HESSE     STATUS=OK            23 CALLS      294 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9118        2.5888        .26637E-05   -1.5312    
   2  alpha         3.5262        .66258        .60167E-04    .42300    
   3  Normalizat    .88556        .26833        .14444E-04   -.96969    
   4  Prefactor     1.1963        .19593        .94534E-05   -.86447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.00491e-11
Minuit parameter uncertainties:
  1  2.58888
  2  0.672278
  3  0.268732
  4  0.196054
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/713214': 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) = 6940.86774725
delta logL = 0.950653337139

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  3.912e+00  2.589e+00  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  3.526e+00  6.723e-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.196e+00  1.961e-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.856e-01  2.687e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.05
Ra Dec: 84.995 -28.659
Photon Index (Free Index): 3.53 +/- 0.67
Photon Flux (Free Index): 1.72e-07 +/- 7.96e-08
Energy Flux (Free Index): 2.90e-05 +/- 1.28e-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/713214/cmap_HighResolution_626832001_627091201_4FGL_J0539.9-2839_daily_bin1495.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.17e-07', energy_flux2='2.90e-05', photon_flux_error='5.93e-08', dlogl='9.51e-01', energy_flux='2.74e-05', photon_flux2='1.72e-07', job_status='DONE', time_completed='2021-08-23 15:03:50.828328', photon_index_error2='0.67', photon_index2='3.53', ts='6.83', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='1.28e-05', EG='0.96', time_epoch_completed='1629756230.83', return_code='0', job_id='713214', GAL2='1.20', EG2='0.89', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='7.96e-08', ts2='9.05', photon_index='2.68' WHERE bin_id='1495' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 15:03:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 713214: <4FGL_J0539.9-2839_daily_bin1495> in cluster <slac> Done

Job <4FGL_J0539.9-2839_daily_bin1495> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 23 14:50:25 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 14:50:27 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:50:27 2021
Terminated at Mon Aug 23 15:03:52 2021
Results reported at Mon Aug 23 15:03:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin1495 84.9952 -28.6585 626832001 627091201 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 :                                   768.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            807 sec.

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

