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


Performing analysis on: 4FGL_J0539.9-2839_daily_bin1285
RA = 84.9952, Dec = -28.6585
tmin = 572400001, tmax = 572659201
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='711676', job_status='RUN', time_executed='2021-08-23 14:47:17.045137', time_epoch_executed='1629755237.05' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1285'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/711676

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/711676/ft1_4FGL_J0539.9-2839_daily_bin1285.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/711676/ft2_4FGL_J0539.9-2839_daily_bin1285.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/711676/ft1_4FGL_J0539.9-2839_daily_bin1285.fits outfile=/scratch/kocevski/711676/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1285.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=572400001.0 tmax=572659201.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.89
user 3.39
sys 3.44

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/711676/ft1_filtered_4FGL_J0539.9-2839_daily_bin1285.fits" evtable="EVENTS" scfile=/scratch/kocevski/711676/ft2_4FGL_J0539.9-2839_daily_bin1285.fits sctable="SC_DATA" outfile=/scratch/kocevski/711676/ltcube_572400001_572659201_4FGL_J0539.9-2839_daily_bin1285.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/711676/ft2_4FGL_J0539.9-2839_daily_bin1285.fits
.....................!
real 15.30
user 11.63
sys 3.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/711676/ft1_filtered_4FGL_J0539.9-2839_daily_bin1285.fits evtable="EVENTS" scfile=/scratch/kocevski/711676/ft2_4FGL_J0539.9-2839_daily_bin1285.fits sctable="SC_DATA" expcube=/scratch/kocevski/711676/ltcube_572400001_572659201_4FGL_J0539.9-2839_daily_bin1285.fits outfile=/scratch/kocevski/711676/expmap_572400001_572659201_4FGL_J0539.9-2839_daily_bin1285.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/711676/ltcube_572400001_572659201_4FGL_J0539.9-2839_daily_bin1285.fits
.....................!
real 194.89
user 185.97
sys 8.10

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/711676/ft1_filtered_4FGL_J0539.9-2839_daily_bin1285.fits scfile=/scratch/kocevski/711676/ft2_4FGL_J0539.9-2839_daily_bin1285.fits outfile=/scratch/kocevski/711676/cmap_572400001_572659201_4FGL_J0539.9-2839_daily_bin1285.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 3.66
user 0.38
sys 3.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/711676/ft1_filtered_4FGL_J0539.9-2839_daily_bin1285.fits scfile=/scratch/kocevski/711676/ft2_4FGL_J0539.9-2839_daily_bin1285.fits outfile=/scratch/kocevski/711676/cmap_HighResolution_572400001_572659201_4FGL_J0539.9-2839_daily_bin1285.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 3.71
user 0.41
sys 3.27

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/711676/ft1_filtered_4FGL_J0539.9-2839_daily_bin1285.fits evtable="EVENTS" scfile=/scratch/kocevski/711676/ft2_4FGL_J0539.9-2839_daily_bin1285.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/711676/Model_4FGL_J0539.9-2839_daily_bin1285.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/711676/ft1_filtered_4FGL_J0539.9-2839_daily_bin1285.fits.....................!
real 66.39
user 61.06
sys 4.99

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5630       1.0000         .10000E-03   10000.    
     4 'norm      '    .56526       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    44.359       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.8251       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0942       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.2281       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.6885       1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.742       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.1488       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    39.411       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1495       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .93219       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=   4943.332     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     3526 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    117.67        .26889E-04** at limit **
   2  norm          .10000E-03    1.2799        .17582E-06** at limit **
   3  Prefactor     3.5612        7.7283        .25458E-05   -.29582E-03
   4  norm          .56523        .25331       -.29682E-07   -.39187E-03
   5  Prefactor     .10000E-03    428.08       -.30284E-04** at limit **
   6  norm          44.340        88.004       -.17702E-04   -.13643E-06
   7  Prefactor     .10000E-03    3.2284        .19812E-07** at limit **
   8  norm          3.8246        2.6713        .19537E-06    .60492E-03
   9  Prefactor     .10000E-03    52.528        .36364E-04** at limit **
  10  Prefactor     .10000E-03    10.543        .22247E-06** at limit **
  11  Prefactor     .10000E-03    22.358       -.13979E-04** at limit **
  12  Prefactor     .10000E-03    19.506       -.91744E-05** at limit **
  13  norm          1.0928        5.9664       -.18517E-05   -.62502E-03
  14  Prefactor     .10000E-03    66.105       -.42863E-04** at limit **
  15  norm          2.2277        2.2459       -.21341E-06   -.45027E-03
  16  norm          .10000E-03    41.137       -.94037E-05** at limit **
  17  Prefactor     .10000E-03    3.3304        .18764E-07** at limit **
  18  Prefactor     .10000E-03    21.061        .14645E-04** at limit **
  19  Prefactor     .10000E-03    15.858        .13029E-05** at limit **
  20  Prefactor     5.6449        70.083       -.49136E-04   -.86495E-04
  21  Prefactor     21.798        57.699        .46643E-04    .87141E-04
  22  norm          .10000E-03    4.0409        .62849E-07** at limit **
  23  Prefactor     .10000E-03    21.357        .88702E-05** at limit **
  24  Prefactor     1.1489        3.3384       -.66167E-06   -.67315E-03
  25  Prefactor     .10000E-03    11.717       -.38481E-06** at limit **
  26  norm          39.408        32.396        .90149E-06    .25993E-04
  27  Normalizat    1.1498        .23542        .43597E-06    .21444E-03
  28  Prefactor     .93201        .16458        .18401E-06    .33248E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.56117
  norm       = 0.565234
  Prefactor  = 0.0001
  norm       = 44.3397
  Prefactor  = 0.0001
  norm       = 3.82457
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.09283
  Prefactor  = 0.0001
  norm       = 2.22772
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.64487
  Prefactor  = 21.7985
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.14894
  Prefactor  = 0.0001
  norm       = 39.4075
  Normalizat = 1.14982
  Prefactor  = 0.932006
 **********
 **   18 **HESSE 
 **********

 FCN=   4943.332     FROM HESSE     STATUS=OK           505 CALLS     4031 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    117.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.2851        .77666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.5612        7.7611        .21411E-03   -1.5331    
   4  norm          .56523        .25269        .22835E-04   -1.5558    
   5  Prefactor     .10000E-03    432.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          44.340        88.078        .60195E-04   -1.4375    
   7  Prefactor     .10000E-03    3.2630        .12322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.8246        2.6663        .91182E-04   -1.5317    
   9  Prefactor     .10000E-03    52.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.882        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0928        5.9975        .31877E-03   -1.5499    
  14  Prefactor     .10000E-03    66.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.2277        2.2388        .10082E-03   -1.5409    
  16  norm          .10000E-03    42.904        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.3491        .12528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.6449        69.376        .16842E-03   -1.5233    
  21  Prefactor     21.798        57.286        .85901E-04   -1.4774    
  22  norm          .10000E-03    4.0681        .13779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    21.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.1489        3.2611        .21303E-03   -1.5494    
  25  Prefactor     .10000E-03    11.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          39.408        32.403        .63847E-04   -1.4452    
  27  Normalizat    1.1498        .27980        .27859E-03   -.88168    
  28  Prefactor     .93201        .19563        .22494E-03   -.95032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71147e-09
Minuit parameter uncertainties:
  1  6.61772e-06
  2  3.16822e-06
  3  7.76328
  4  0.252687
  5  0.000367215
  6  88.3378
  7  4.24097e-06
  8  2.66639
  9  0.000131944
  10  5.15447e-05
  11  0.000127223
  12  0.000240233
  13  5.12082
  14  0.000320711
  15  2.23891
  16  0.000242686
  17  1.30777e-06
  18  3.54278e-06
  19  1.45952e-06
  20  39.6354
  21  57.4311
  22  5.13342e-06
  23  6.2518e-05
  24  3.26157
  25  3.96047e-05
  26  32.4173
  27  0.280167
  28  0.195779
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  2.228e+00  2.239e+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.320e-01  1.958e-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.150e+00  2.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.45
Ra Dec: 84.995 -28.659
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 4.69e-08 +/- 4.71e-08
Energy Flux (Fixed Index): 1.10e-05 +/- 1.11e-05

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

Saving results to:
/scratch/kocevski/711676/likelihoodResults_572400001_572659201_4FGL_J0539.9-2839_daily_bin1285.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) = 4942.77319932
delta logL = 0.558828171559

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4942.76533207
delta logL = 0.566695415935

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9252       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7170       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1856       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91235       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=   4942.765     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      211 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9241        1.7478        .74854E-02    .21008E-03
   2  alpha         1.7160        .53183        .41402       -.37565E-04
   3  Normalizat    1.1853        .22012        .62129E-01    .43885E-05
   4  Prefactor     .91252        .16216        .45162E-01   -.63941E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.92406
  alpha      = 1.71597
  Normalizat = 1.18535
  Prefactor  = 0.912516
 **********
 **   18 **HESSE 
 **********

 FCN=   4942.765     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9241        2.2569        .85769E-04   -1.5431    
   2  alpha         1.7160        .80966        .15441E-01   -.31899    
   3  Normalizat    1.1853        .25955        .27480E-03   -.87057    
   4  Prefactor     .91252        .19064        .22680E-03   -.95705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24882e-11
Minuit parameter uncertainties:
  1  2.25702
  2  0.826246
  3  0.259833
  4  0.190781
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/711676': 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) = 4942.7653305
delta logL = 0.566696987878

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  1.924e+00  2.257e+00  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  1.716e+00  8.262e-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.125e-01  1.908e-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.185e+00  2.598e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.57
Ra Dec: 84.995 -28.659
Photon Index (Free Index): 1.72 +/- 0.83
Photon Flux (Free Index): 2.44e-08 +/- 3.14e-08
Energy Flux (Free Index): 1.65e-05 +/- 1.75e-05

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/711676/cmap_HighResolution_572400001_572659201_4FGL_J0539.9-2839_daily_bin1285.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.64e-05', comment='SUCCESS', photon_flux='4.69e-08', energy_flux2='1.65e-05', photon_flux_error='4.71e-08', dlogl='5.67e-01', energy_flux='1.10e-05', photon_flux2='2.44e-08', job_status='DONE', time_completed='2021-08-23 14:59:16.225220', photon_index_error2='0.83', photon_index2='1.72', ts='1.45', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.55e-07', energy_flux_error2='1.75e-05', EG='1.15', time_epoch_completed='1629755956.23', return_code='0', job_id='711676', GAL2='0.91', EG2='1.19', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='3.14e-08', ts2='2.57', photon_index='2.68' WHERE bin_id='1285' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 14:59:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 711676: <4FGL_J0539.9-2839_daily_bin1285> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin1285 84.9952 -28.6585 572400001 572659201 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 :                                   765.51 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             248.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            828 sec.

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

