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


Performing analysis on: 4FGL_J0338.5+1302_daily_bin551
RA = 54.6355, Dec = 13.0419
tmin = 382147201, tmax = 382406401
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='701899', job_status='RUN', time_executed='2021-08-18 20:17:48.545679', time_epoch_executed='1629343068.55' WHERE source_name='4FGL J0338.5+1302' and cadence='daily' and bin_id='551'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/701899

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/701899/ft1_4FGL_J0338.5+1302_daily_bin551.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/701899/ft2_4FGL_J0338.5+1302_daily_bin551.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/701899/ft1_4FGL_J0338.5+1302_daily_bin551.fits outfile=/scratch/kocevski/701899/ft1_filteredMKT_4FGL_J0338.5+1302_daily_bin551.fits ra=54.6355 dec=13.0419 rad=12.0 tmin=382147201.0 tmax=382406401.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 7.47
user 3.16
sys 4.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/701899/ft2_4FGL_J0338.5+1302_daily_bin551.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/701899/ft2_4FGL_J0338.5+1302_daily_bin551.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/701899/ft1_filteredMKT_4FGL_J0338.5+1302_daily_bin551.fits evtable="EVENTS" outfile="/scratch/kocevski/701899/ft1_filtered_4FGL_J0338.5+1302_daily_bin551.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 4.57
user 0.33
sys 4.21

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/701899/ft1_filtered_4FGL_J0338.5+1302_daily_bin551.fits" evtable="EVENTS" scfile=/scratch/kocevski/701899/ft2_4FGL_J0338.5+1302_daily_bin551.fits sctable="SC_DATA" outfile=/scratch/kocevski/701899/ltcube_382147201_382406401_4FGL_J0338.5+1302_daily_bin551.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/701899/ft2_4FGL_J0338.5+1302_daily_bin551.fits
.....................!
real 19.77
user 14.90
sys 4.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/701899/ft1_filtered_4FGL_J0338.5+1302_daily_bin551.fits evtable="EVENTS" scfile=/scratch/kocevski/701899/ft2_4FGL_J0338.5+1302_daily_bin551.fits sctable="SC_DATA" expcube=/scratch/kocevski/701899/ltcube_382147201_382406401_4FGL_J0338.5+1302_daily_bin551.fits outfile=/scratch/kocevski/701899/expmap_382147201_382406401_4FGL_J0338.5+1302_daily_bin551.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/701899/ltcube_382147201_382406401_4FGL_J0338.5+1302_daily_bin551.fits
.....................!
real 196.11
user 186.12
sys 9.61

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

Setting source of interest to:
4FGL J0338.5+1302 @ 54.6355 13.0419

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/701899/ft1_filtered_4FGL_J0338.5+1302_daily_bin551.fits scfile=/scratch/kocevski/701899/ft2_4FGL_J0338.5+1302_daily_bin551.fits outfile=/scratch/kocevski/701899/cmap_382147201_382406401_4FGL_J0338.5+1302_daily_bin551.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.6355 yref=13.0419 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 4.47
user 0.36
sys 4.09

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/701899/ft1_filtered_4FGL_J0338.5+1302_daily_bin551.fits scfile=/scratch/kocevski/701899/ft2_4FGL_J0338.5+1302_daily_bin551.fits outfile=/scratch/kocevski/701899/cmap_HighResolution_382147201_382406401_4FGL_J0338.5+1302_daily_bin551.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.6355 yref=13.0419 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 4.47
user 0.38
sys 4.08

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/701899/ft1_filtered_4FGL_J0338.5+1302_daily_bin551.fits evtable="EVENTS" scfile=/scratch/kocevski/701899/ft2_4FGL_J0338.5+1302_daily_bin551.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/701899/Model_4FGL_J0338.5+1302_daily_bin551.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/701899/ft1_filtered_4FGL_J0338.5+1302_daily_bin551.fits.....................!
real 169.40
user 162.73
sys 6.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/701899/ft1_filtered_4FGL_J0338.5+1302_daily_bin551.fits', '/scratch/kocevski/701899/ft2_4FGL_J0338.5+1302_daily_bin551.fits', expMap='/scratch/kocevski/701899/expmap_382147201_382406401_4FGL_J0338.5+1302_daily_bin551.fits', expCube='/scratch/kocevski/701899/ltcube_382147201_382406401_4FGL_J0338.5+1302_daily_bin551.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/701899/Model_4FGL_J0338.5+1302_daily_bin551.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0338.5+1302'

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  1.629e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.536e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
287         beta:  1.650e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
288           Eb:  3.451e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/701899/ft1_filtered_4FGL_J0338.5+1302_daily_bin551.fits
Spacecraft file(s): /scratch/kocevski/701899/ft2_4FGL_J0338.5+1302_daily_bin551.fits
Exposure map: /scratch/kocevski/701899/expmap_382147201_382406401_4FGL_J0338.5+1302_daily_bin551.fits
Exposure cube: /scratch/kocevski/701899/ltcube_382147201_382406401_4FGL_J0338.5+1302_daily_bin551.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/701899/Model_4FGL_J0338.5+1302_daily_bin551.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) = 11742.5886493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4002       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11801E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6923       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .94496       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    27.106       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10572E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10874E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2458       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .84262       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0074       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11742.58     FROM MIGRAD    STATUS=CONVERGED    364 CALLS     1635 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4013        4.0572         .0000        .20211E-01
   2  Prefactor     .10000E-03    2.8114         .0000    ** at limit **
   3  norm          .10000E-03    3.6630         .0000    ** at limit **
   4  Prefactor     .10000E-03    38.764         .0000    ** at limit **
   5  Prefactor     3.6918        6.3630         .0000        .99174E-02
   6  Prefactor     .94032        3.3745         .0000        .19558E-02
   7  Prefactor     .10000E-03    13.325         .0000    ** at limit **
   8  norm          .10000E-03    .78967         .0000    ** at limit **
   9  Prefactor     .10000E-03    7.2072         .0000    ** at limit **
  10  norm          .10000E-03    2.6749         .0000    ** at limit **
  11  norm          27.106        60.369         .0000       -.12181E-03
  12  Prefactor     .10001E-03    69.014         .0000    ** at limit **
  13  Prefactor     .10000E-03    20.791         .0000    ** at limit **
  14  Prefactor     1.2385        33.793         .0000        .35972E-03
  15  Prefactor     .10000E-03    6.5091         .0000    ** at limit **
  16  Normalizat    .84267        .21916         .0000        .31324E-04
  17  Prefactor     1.0074        .61603E-01     .0000       -.39658E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.40127
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 3.69182
  Prefactor  = 0.940323
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 27.1063
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 1.23852
  Prefactor  = 0.0001
  Normalizat = 0.842671
  Prefactor  = 1.00737
 **********
 **   18 **HESSE 
 **********

 FCN=   11742.58     FROM HESSE     STATUS=OK           219 CALLS     1854 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4013        4.0459        .10970E-02   -1.5339    
   2  Prefactor     .10000E-03    10.665        .35313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.6802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    38.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.6918        6.3462        .10509E-02   -1.5324    
   6  Prefactor     .94032        3.2739        .36496E-03   -1.5514    
   7  Prefactor     .10000E-03    13.685        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.3055        .18587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.2404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.6805        .17308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          27.106        60.348        .76947E-04   -1.4666    
  12  Prefactor     .10001E-03    69.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2385        34.469        .40118E-03   -1.5485    
  15  Prefactor     .10000E-03    6.5132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .84267        .23125        .50972E-03   -.98505    
  17  Prefactor     1.0074        .66243E-01    .13420E-03   -.92484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.16781e-10
Minuit parameter uncertainties:
  1  4.04627
  2  1.19013e-05
  3  6.3594e-05
  4  0.000499419
  5  6.34739
  6  3.27451
  7  5.18119e-05
  8  1.69488e-05
  9  1.79606e-05
  10  4.2494e-06
  11  60.4841
  12  0.00119601
  13  0.000173461
  14  13.0753
  15  2.6383e-05
  16  0.231518
  17  0.0662479
Done.

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

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  1.000e-04  4.249e-06  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.536e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
287         beta:  1.650e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
288           Eb:  3.451e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.007e+00  6.625e-02  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  8.427e-01  2.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 54.636 13.042
Photon Flux Upper Limit: 2.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/701899/likelihoodResults_382147201_382406401_4FGL_J0338.5+1302_daily_bin551.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) = 11742.5774095
delta logL = -0.00177757463644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11742.5756316
delta logL = 3.30932380166e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11742.58     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      209 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.8333        .90712E-02** at limit **
   2  alpha         1.5796        3.2797        .45642       -.35415E-04
   3  Normalizat    .84267        .21314        .11492        .13694E-03
   4  Prefactor     1.0074        .61291E-01    .30367E-01   -.68015E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.57957
  Normalizat = 0.842672
  Prefactor  = 1.00737
 **********
 **   18 **HESSE 
 **********

 FCN=   11742.58     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8514        .17621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5796        3.2695        .50000       -.37704    
   3  Normalizat    .84267        .22792        .50972E-03   -.98505    
   4  Prefactor     1.0074        .65823E-01    .13420E-03   -.92484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98036e-09
Minuit parameter uncertainties:
  1  0.000110957
  2  2.35558
  3  0.228179
  4  0.0658279
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/701899': 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) = 11742.5756313
delta logL = 6.64611434331e-07

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  1.000e-04  1.110e-04  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.580e+00  2.356e+00  0.000e+00  5.000e+00 ( 1.000e+00)
287         beta:  1.650e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
288           Eb:  3.451e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.007e+00  6.583e-02  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  8.427e-01  2.282e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 54.636 13.042

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/701899/cmap_HighResolution_382147201_382406401_4FGL_J0338.5+1302_daily_bin551.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.43e-05', job_status='DONE', photon_flux_upper_limit='2.71e-08', time_completed='2021-08-18 20:31:43.433196', job_id='701899', GAL2='1.01', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1629343903.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='6.65e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.54' WHERE bin_id='551' AND source_name='4FGL J0338.5+1302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 20:31:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0144>
Subject: Job 701899: <4FGL_J0338.5+1302_daily_bin551> in cluster <slac> Done

Job <4FGL_J0338.5+1302_daily_bin551> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Aug 18 20:15:33 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 20:15:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 18 20:15:34 2021
Terminated at Wed Aug 18 20:31:44 2021
Results reported at Wed Aug 18 20:31:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0338.5+1302_daily_bin551 54.6355 13.0419 382147201 382406401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0338.5+1302 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   892.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            971 sec.

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

