/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 30 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 = 7466
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0338.5+1302_daily_bin442
RA = 54.6355, Dec = 13.0419
tmin = 353894401, tmax = 354153601
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='700601', job_status='RUN', time_executed='2021-08-18 20:14:15.218033', time_epoch_executed='1629342855.22' WHERE source_name='4FGL J0338.5+1302' and cadence='daily' and bin_id='442'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/700601

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/700601/ft1_4FGL_J0338.5+1302_daily_bin442.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/700601/ft2_4FGL_J0338.5+1302_daily_bin442.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/700601/ft1_4FGL_J0338.5+1302_daily_bin442.fits outfile=/scratch/kocevski/700601/ft1_filteredMKT_4FGL_J0338.5+1302_daily_bin442.fits ra=54.6355 dec=13.0419 rad=12.0 tmin=353894401.0 tmax=354153601.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 5.69
user 3.25
sys 2.40

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/700601/ft2_4FGL_J0338.5+1302_daily_bin442.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/700601/ft1_filteredMKT_4FGL_J0338.5+1302_daily_bin442.fits evtable="EVENTS" outfile="/scratch/kocevski/700601/ft1_filtered_4FGL_J0338.5+1302_daily_bin442.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 2.81
user 0.32
sys 2.37

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/700601/ft1_filtered_4FGL_J0338.5+1302_daily_bin442.fits" evtable="EVENTS" scfile=/scratch/kocevski/700601/ft2_4FGL_J0338.5+1302_daily_bin442.fits sctable="SC_DATA" outfile=/scratch/kocevski/700601/ltcube_353894401_354153601_4FGL_J0338.5+1302_daily_bin442.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/700601/ft2_4FGL_J0338.5+1302_daily_bin442.fits
.....................!
real 15.28
user 12.04
sys 2.77

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/700601/ft1_filtered_4FGL_J0338.5+1302_daily_bin442.fits evtable="EVENTS" scfile=/scratch/kocevski/700601/ft2_4FGL_J0338.5+1302_daily_bin442.fits sctable="SC_DATA" expcube=/scratch/kocevski/700601/ltcube_353894401_354153601_4FGL_J0338.5+1302_daily_bin442.fits outfile=/scratch/kocevski/700601/expmap_353894401_354153601_4FGL_J0338.5+1302_daily_bin442.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/700601/ltcube_353894401_354153601_4FGL_J0338.5+1302_daily_bin442.fits
.....................!
real 194.36
user 185.85
sys 7.93

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/700601/ft1_filtered_4FGL_J0338.5+1302_daily_bin442.fits scfile=/scratch/kocevski/700601/ft2_4FGL_J0338.5+1302_daily_bin442.fits outfile=/scratch/kocevski/700601/cmap_353894401_354153601_4FGL_J0338.5+1302_daily_bin442.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 2.69
user 0.37
sys 2.27

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/700601/ft1_filtered_4FGL_J0338.5+1302_daily_bin442.fits scfile=/scratch/kocevski/700601/ft2_4FGL_J0338.5+1302_daily_bin442.fits outfile=/scratch/kocevski/700601/cmap_HighResolution_353894401_354153601_4FGL_J0338.5+1302_daily_bin442.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 2.68
user 0.39
sys 2.28

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/700601/ft1_filtered_4FGL_J0338.5+1302_daily_bin442.fits', '/scratch/kocevski/700601/ft2_4FGL_J0338.5+1302_daily_bin442.fits', expMap='/scratch/kocevski/700601/expmap_353894401_354153601_4FGL_J0338.5+1302_daily_bin442.fits', expCube='/scratch/kocevski/700601/ltcube_353894401_354153601_4FGL_J0338.5+1302_daily_bin442.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/700601/Model_4FGL_J0338.5+1302_daily_bin442.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/700601/ft1_filtered_4FGL_J0338.5+1302_daily_bin442.fits
Spacecraft file(s): /scratch/kocevski/700601/ft2_4FGL_J0338.5+1302_daily_bin442.fits
Exposure map: /scratch/kocevski/700601/expmap_353894401_354153601_4FGL_J0338.5+1302_daily_bin442.fits
Exposure cube: /scratch/kocevski/700601/ltcube_353894401_354153601_4FGL_J0338.5+1302_daily_bin442.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/700601/Model_4FGL_J0338.5+1302_daily_bin442.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) = 11910.4543701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9717       1.0000         .10000E-03   10000.    
     3 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17056E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.2004       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .20080E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    38.802       1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.858       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.988       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .29913E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1284       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .99145       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11910.45     FROM MIGRAD    STATUS=CONVERGED    361 CALLS     1847 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.0841       -.27410E-08** at limit **
   2  Prefactor     2.9716        3.0461        .12395E-06    .40850E-03
   3  norm          .10000E-03    3.2652       -.45320E-08** at limit **
   4  Prefactor     .10000E-03    25.942        .77148E-08** at limit **
   5  Prefactor     .10000E-03    1.6183       -.24336E-08** at limit **
   6  Prefactor     .10000E-03    1.9540        .25218E-07** at limit **
   7  Prefactor     .10000E-03    5.2663       -.61839E-08** at limit **
   8  norm          2.2006        1.8470       -.32796E-07   -.48089E-03
   9  Prefactor     .10000E-03    13.451       -.38394E-07** at limit **
  10  norm          .10000E-03    1.5557        .11695E-08** at limit **
  11  norm          .10002E-03    761.60       -.23243E-04** at limit **
  12  Prefactor     38.756        61.089        .17436E-05    .41686E-04
  13  Prefactor     34.869        35.557       -.11597E-04    .14055E-04
  14  Prefactor     20.993        17.792        .79217E-05    .22694E-03
  15  Prefactor     .10006E-03    23.179       -.41120E-05** at limit **
  16  Normalizat    1.1283        .24456       -.21386E-06    .16932E-03
  17  Prefactor     .99143        .64485E-01    .15211E-06    .52757E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.97161
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.20064
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100024
  Prefactor  = 38.7558
  Prefactor  = 34.8689
  Prefactor  = 20.9927
  Prefactor  = 0.000100061
  Normalizat = 1.12834
  Prefactor  = 0.991433
 **********
 **   18 **HESSE 
 **********

 FCN=   11910.45     FROM HESSE     STATUS=OK           227 CALLS     2074 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1197        .15384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.9716        3.0562        .18839E-03   -1.5363    
   3  norm          .10000E-03    3.2802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    25.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.6253        .13557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.504        .29618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.2778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.2006        1.8352        .13051E-03   -1.5411    
   9  Prefactor     .10000E-03    13.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.5562        .13294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10002E-03    790.87        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     38.756        61.244        .64345E-04   -1.4462    
  13  Prefactor     34.869        35.480        .67875E-04   -1.4526    
  14  Prefactor     20.993        17.997        .87429E-04   -1.4791    
  15  Prefactor     .10006E-03    24.266        .14537       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1283        .26892        .49047E-03   -.88847    
  17  Prefactor     .99143        .71339E-01    .14258E-03   -.93016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01636e-10
Minuit parameter uncertainties:
  1  6.38662e-07
  2  3.05635
  3  8.8974e-07
  4  3.94303e-07
  5  4.46036e-07
  6  1.59574e-05
  7  2.58465e-07
  8  1.83522
  9  1.18359e-05
  10  1.1575e-07
  11  0.00880644
  12  61.344
  13  35.5016
  14  18.002
  15  0.00243321
  16  0.269248
  17  0.0713455
Done.

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

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  1.000e-04  1.157e-07  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:  9.914e-01  7.135e-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:  1.128e+00  2.692e-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: 1.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/700601/likelihoodResults_353894401_354153601_4FGL_J0338.5+1302_daily_bin442.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) = 11910.4508328
delta logL = -0.00302496725817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11910.4478078
delta logL = -3.34694050252e-10

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.5350       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1283       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99144       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11910.45     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      235 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    145.97        .13294E-02** at limit **
   2  alpha         1.5112        4.2174        .18366        .14665E-05
   3  Normalizat    1.1283        .25629        .49048E-03   -.37550E-05
   4  Prefactor     .99143        .71014E-01    .14258E-03   -.27110E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100022
  alpha      = 1.51116
  Normalizat = 1.12834
  Prefactor  = 0.991433
 **********
 **   18 **HESSE 
 **********

 FCN=   11910.45     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    1.5587        .26589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5112        4.2438        .73465E-02   -.40665    
   3  Normalizat    1.1283        .25643        .19619E-04   -.88847    
   4  Prefactor     .99143        .71052E-01    .57033E-05   -.93016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72604e-08
Minuit parameter uncertainties:
  1  0.000373325
  2  182.936
  3  0.256712
  4  0.0710584
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/700601': 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) = 11910.4478078
delta logL = 1.79479684448e-08

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  1.000e-04  3.733e-04  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.511e+00  1.829e+02  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:  9.914e-01  7.106e-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:  1.128e+00  2.567e-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/700601/cmap_HighResolution_353894401_354153601_4FGL_J0338.5+1302_daily_bin442.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.69e-05', job_status='DONE', photon_flux_upper_limit='1.83e-08', time_completed='2021-08-18 20:28:20.469060', job_id='700601', GAL2='0.99', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1629343700.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.79e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.54' WHERE bin_id='442' AND source_name='4FGL J0338.5+1302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 20:28:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 700601: <4FGL_J0338.5+1302_daily_bin442> in cluster <slac> Done

Job <4FGL_J0338.5+1302_daily_bin442> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Aug 18 20:12:42 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 20:12: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 20:12:48 2021
Terminated at Wed Aug 18 20:28:23 2021
Results reported at Wed Aug 18 20:28:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0338.5+1302_daily_bin442 54.6355 13.0419 353894401 354153601 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 :                                   874.00 sec.
    Max Memory :                                 1026 MB
    Average Memory :                             341.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            941 sec.

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

