/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 48 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 = 7468
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0339.5-0146_daily_bin286
RA = 54.8771, Dec = -1.7769
tmin = 313459201, tmax = 313718401
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='726545', job_status='RUN', time_executed='2021-08-18 21:39:09.901446', time_epoch_executed='1629347949.9' WHERE source_name='4FGL J0339.5-0146' and cadence='daily' and bin_id='286'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/726545

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/726545/ft1_4FGL_J0339.5-0146_daily_bin286.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/726545/ft2_4FGL_J0339.5-0146_daily_bin286.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/726545/ft1_4FGL_J0339.5-0146_daily_bin286.fits outfile=/scratch/kocevski/726545/ft1_filteredMKT_4FGL_J0339.5-0146_daily_bin286.fits ra=54.8771 dec=-1.7769 rad=12.0 tmin=313459201.0 tmax=313718401.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.60
user 3.11
sys 1.00

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/726545/ft2_4FGL_J0339.5-0146_daily_bin286.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/726545/ft2_4FGL_J0339.5-0146_daily_bin286.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/726545/ft1_filteredMKT_4FGL_J0339.5-0146_daily_bin286.fits evtable="EVENTS" outfile="/scratch/kocevski/726545/ft1_filtered_4FGL_J0339.5-0146_daily_bin286.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.40
user 0.31
sys 1.01

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/726545/ft1_filtered_4FGL_J0339.5-0146_daily_bin286.fits" evtable="EVENTS" scfile=/scratch/kocevski/726545/ft2_4FGL_J0339.5-0146_daily_bin286.fits sctable="SC_DATA" outfile=/scratch/kocevski/726545/ltcube_313459201_313718401_4FGL_J0339.5-0146_daily_bin286.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/726545/ft2_4FGL_J0339.5-0146_daily_bin286.fits
.....................!
real 12.57
user 11.33
sys 1.11

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/726545/ft1_filtered_4FGL_J0339.5-0146_daily_bin286.fits evtable="EVENTS" scfile=/scratch/kocevski/726545/ft2_4FGL_J0339.5-0146_daily_bin286.fits sctable="SC_DATA" expcube=/scratch/kocevski/726545/ltcube_313459201_313718401_4FGL_J0339.5-0146_daily_bin286.fits outfile=/scratch/kocevski/726545/expmap_313459201_313718401_4FGL_J0339.5-0146_daily_bin286.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/726545/ltcube_313459201_313718401_4FGL_J0339.5-0146_daily_bin286.fits
.....................!
real 193.11
user 186.49
sys 6.18

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 137 point sources and 0 extended sources

Setting source of interest to:
4FGL J0339.5-0146 @ 54.8771 -1.7769

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/726545/ft1_filtered_4FGL_J0339.5-0146_daily_bin286.fits scfile=/scratch/kocevski/726545/ft2_4FGL_J0339.5-0146_daily_bin286.fits outfile=/scratch/kocevski/726545/cmap_313459201_313718401_4FGL_J0339.5-0146_daily_bin286.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=54.8771 yref=-1.7769 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.22
user 0.35
sys 0.85

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/726545/ft1_filtered_4FGL_J0339.5-0146_daily_bin286.fits scfile=/scratch/kocevski/726545/ft2_4FGL_J0339.5-0146_daily_bin286.fits outfile=/scratch/kocevski/726545/cmap_HighResolution_313459201_313718401_4FGL_J0339.5-0146_daily_bin286.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=54.8771 yref=-1.7769 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.21
user 0.36
sys 0.85

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/726545/ft1_filtered_4FGL_J0339.5-0146_daily_bin286.fits evtable="EVENTS" scfile=/scratch/kocevski/726545/ft2_4FGL_J0339.5-0146_daily_bin286.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/726545/Model_4FGL_J0339.5-0146_daily_bin286.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/726545/ft1_filtered_4FGL_J0339.5-0146_daily_bin286.fits.....................!
real 117.60
user 115.20
sys 2.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/726545/ft1_filtered_4FGL_J0339.5-0146_daily_bin286.fits', '/scratch/kocevski/726545/ft2_4FGL_J0339.5-0146_daily_bin286.fits', expMap='/scratch/kocevski/726545/expmap_313459201_313718401_4FGL_J0339.5-0146_daily_bin286.fits', expCube='/scratch/kocevski/726545/ltcube_313459201_313718401_4FGL_J0339.5-0146_daily_bin286.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/726545/Model_4FGL_J0339.5-0146_daily_bin286.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0339.5-0146'

4FGL J0339.5-0146
   Spectrum: LogParabola
262         norm:  3.850e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
263        alpha:  2.242e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
264         beta:  8.150e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
265           Eb:  5.233e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/726545/ft1_filtered_4FGL_J0339.5-0146_daily_bin286.fits
Spacecraft file(s): /scratch/kocevski/726545/ft2_4FGL_J0339.5-0146_daily_bin286.fits
Exposure map: /scratch/kocevski/726545/expmap_313459201_313718401_4FGL_J0339.5-0146_daily_bin286.fits
Exposure cube: /scratch/kocevski/726545/ltcube_313459201_313718401_4FGL_J0339.5-0146_daily_bin286.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/726545/Model_4FGL_J0339.5-0146_daily_bin286.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) = 9716.54831765

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.146       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9735       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.833       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10542E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.2702       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11206E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.8413       1.0000         .10000E-03   10000.    
    14 'norm      '    2.0585       1.0000         .10000E-03   10000.    
    15 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10505E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .61569       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .96628       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0447       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9716.542     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     1916 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.147        12.283        .11434E-05   -.23873E-03
   2  Prefactor     2.9741        3.5291        .19274E-06   -.11700E-03
   3  Prefactor     22.839        15.631        .29974E-06   -.78257E-04
   4  Prefactor     .10000E-03    17.434        .30775E-06** at limit **
   5  Prefactor     .10000E-03    1.5533        .58703E-08** at limit **
   6  Prefactor     .10000E-03    6.6018        .24141E-07** at limit **
   7  Prefactor     .10000E-03    5.9233        .33062E-07** at limit **
   8  norm          7.2703        1.7136        .15144E-07   -.39424E-04
   9  Prefactor     .10000E-03    85.074       -.55975E-06** at limit **
  10  Prefactor     .10000E-03    27.533       -.86705E-06** at limit **
  11  norm          .10000E-03    12.652        .21355E-06** at limit **
  12  Prefactor     .10000E-03    13.991       -.40513E-06** at limit **
  13  norm          2.8421        3.2621        .12245E-06   -.39264E-04
  14  norm          2.0591        6.6044        .87694E-06   -.11895E-03
  15  norm          .10000E-03    42.571        .56570E-06** at limit **
  16  norm          .10000E-03    .44216       -.17246E-06** at limit **
  17  Prefactor     .61610        1.1817        .70931E-06    .45464E-03
  18  Normalizat    .96630        .17625       -.51086E-06   -.81496E-05
  19  Prefactor     1.0446        .81087E-01   -.85767E-07    .13168E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.1473
  Prefactor  = 2.97415
  Prefactor  = 22.839
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.27035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.84213
  norm       = 2.05906
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.616097
  Normalizat = 0.966299
  Prefactor  = 1.04462
 **********
 **   18 **HESSE 
 **********

 FCN=   9716.542     FROM HESSE     STATUS=OK           270 CALLS     2186 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.147        12.069        .57470E-03   -1.5011    
   2  Prefactor     2.9741        3.5106        .19499E-03   -1.5363    
   3  Prefactor     22.839        15.585        .83827E-04   -1.4752    
   4  Prefactor     .10000E-03    17.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.5647        .11994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.6386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.9641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.2703        1.7141        .60039E-04   -1.5169    
   9  Prefactor     .10000E-03    85.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.195        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    12.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.8421        3.2010        .18192E-03   -1.5371    
  14  norm          2.0591        6.5437        .28805E-03   -1.5421    
  15  norm          .10000E-03    42.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.2892        .12154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .61610        1.1547        .15945E-02   -1.5551    
  18  Normalizat    .96630        .19360        .36044E-03   -.94168    
  19  Prefactor     1.0446        .89668E-01    .16704E-03   -.91256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9452e-10
Minuit parameter uncertainties:
  1  12.0711
  2  3.51086
  3  15.5875
  4  0.000132183
  5  1.17882e-07
  6  1.60835e-06
  7  2.4334e-06
  8  1.71412
  9  0.000354234
  10  0.000186313
  11  5.24606e-05
  12  0.000139294
  13  3.20124
  14  6.54599
  15  0.000282945
  16  8.27255e-06
  17  1.1547
  18  0.193745
  19  0.0896813
Done.

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

Extracting fit parameters...

4FGL J0339.5-0146
   Spectrum: LogParabola
262         norm:  7.270e+00  1.714e+00  1.000e-04  1.000e+04 ( 1.000e-11)
263        alpha:  2.242e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
264         beta:  8.150e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
265           Eb:  5.233e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
436    Prefactor:  1.045e+00  8.968e-02  0.000e+00  1.000e+01 ( 1.000e+00)
437        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
438        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
435   Normalization:  9.663e-01  1.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 51.01
Ra Dec: 54.877 -1.777
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 2.15e-07 +/- 5.07e-08
Energy Flux (Fixed Index): 7.75e-05 +/- 1.83e-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) = 9715.82428544
delta logL = 0.717811405808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9715.81783565
delta logL = 0.72426119414

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9715.818     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5475        1.9268        .36494E-02    .17331E-02
   2  alpha         1.9769        .21896        .18836       -.12059E-04
   3  Normalizat    .99279        .16879        .80502E-01    .45410E-04
   4  Prefactor     1.0385        .80716E-01    .40632E-01    .39070E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.54754
  alpha      = 1.97686
  Normalizat = 0.99279
  Prefactor  = 1.03854
 **********
 **   18 **HESSE 
 **********

 FCN=   9715.818     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5475        1.8206        .62815E-04   -1.5158    
   2  alpha         1.9769        .21383        .80509E-02   -.21081    
   3  Normalizat    .99279        .18639        .35632E-03   -.93272    
   4  Prefactor     1.0385        .89129E-01    .16749E-03   -.91456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50577e-10
Minuit parameter uncertainties:
  1  1.82063
  2  0.214104
  3  0.186509
  4  0.0891414
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/726545': 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) = 9715.81783564
delta logL = 0.724261212858

Extracting fit parameters...

4FGL J0339.5-0146
   Spectrum: LogParabola
262         norm:  7.548e+00  1.821e+00  1.000e-04  1.000e+04 ( 1.000e-11)
263        alpha:  1.977e+00  2.141e-01  0.000e+00  5.000e+00 ( 1.000e+00)
264         beta:  8.150e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
265           Eb:  5.233e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
436    Prefactor:  1.039e+00  8.914e-02  0.000e+00  1.000e+01 ( 1.000e+00)
437        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
438        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
435   Normalization:  9.928e-01  1.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 52.33
Ra Dec: 54.877 -1.777
Photon Index (Free Index): 1.98 +/- 0.21
Photon Flux (Free Index): 1.83e-07 +/- 5.21e-08
Energy Flux (Free Index): 9.59e-05 +/- 3.02e-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/726545/cmap_HighResolution_313459201_313718401_4FGL_J0339.5-0146_daily_bin286.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.15e-07', energy_flux2='9.59e-05', photon_flux_error='5.07e-08', dlogl='7.24e-01', energy_flux='7.75e-05', photon_flux2='1.83e-07', job_status='DONE', time_completed='2021-08-18 21:49:46.305047', photon_index_error2='0.21', photon_index2='1.98', ts='51.01', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='3.02e-05', EG='0.97', time_epoch_completed='1629348586.31', return_code='0', job_id='726545', GAL2='1.04', EG2='0.99', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='5.21e-08', ts2='52.33', photon_index='2.24' WHERE bin_id='286' AND source_name='4FGL J0339.5-0146' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 21:49:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 726545: <4FGL_J0339.5-0146_daily_bin286> in cluster <slac> Done

Job <4FGL_J0339.5-0146_daily_bin286> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Aug 18 21:33:53 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 21:37:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 18 21:37:48 2021
Terminated at Wed Aug 18 21:49:46 2021
Results reported at Wed Aug 18 21:49:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0339.5-0146_daily_bin286 54.8771 -1.7769 313459201 313718401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0339.5-0146 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   640.11 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             319.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            953 sec.

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

