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


Performing analysis on: 4FGL_J0338.5+1302_daily_bin1296
RA = 54.6355, Dec = 13.0419
tmin = 575251201, tmax = 575510401
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='708057', job_status='RUN', time_executed='2021-08-18 20:36:17.717285', time_epoch_executed='1629344177.72' WHERE source_name='4FGL J0338.5+1302' and cadence='daily' and bin_id='1296'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708057

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708057/ft1_4FGL_J0338.5+1302_daily_bin1296.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708057/ft2_4FGL_J0338.5+1302_daily_bin1296.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708057/ft1_4FGL_J0338.5+1302_daily_bin1296.fits outfile=/scratch/kocevski/708057/ft1_filteredMKT_4FGL_J0338.5+1302_daily_bin1296.fits ra=54.6355 dec=13.0419 rad=12.0 tmin=575251201.0 tmax=575510401.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 12.83
user 5.20
sys 7.51

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/708057/ft1_filtered_4FGL_J0338.5+1302_daily_bin1296.fits" evtable="EVENTS" scfile=/scratch/kocevski/708057/ft2_4FGL_J0338.5+1302_daily_bin1296.fits sctable="SC_DATA" outfile=/scratch/kocevski/708057/ltcube_575251201_575510401_4FGL_J0338.5+1302_daily_bin1296.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/708057/ft2_4FGL_J0338.5+1302_daily_bin1296.fits
.....................!
real 19.71
user 11.02
sys 8.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708057/ft1_filtered_4FGL_J0338.5+1302_daily_bin1296.fits evtable="EVENTS" scfile=/scratch/kocevski/708057/ft2_4FGL_J0338.5+1302_daily_bin1296.fits sctable="SC_DATA" expcube=/scratch/kocevski/708057/ltcube_575251201_575510401_4FGL_J0338.5+1302_daily_bin1296.fits outfile=/scratch/kocevski/708057/expmap_575251201_575510401_4FGL_J0338.5+1302_daily_bin1296.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/708057/ltcube_575251201_575510401_4FGL_J0338.5+1302_daily_bin1296.fits
.....................!
real 201.60
user 186.30
sys 14.82

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/708057/ft1_filtered_4FGL_J0338.5+1302_daily_bin1296.fits scfile=/scratch/kocevski/708057/ft2_4FGL_J0338.5+1302_daily_bin1296.fits outfile=/scratch/kocevski/708057/cmap_575251201_575510401_4FGL_J0338.5+1302_daily_bin1296.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 7.63
user 0.39
sys 7.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708057/ft1_filtered_4FGL_J0338.5+1302_daily_bin1296.fits scfile=/scratch/kocevski/708057/ft2_4FGL_J0338.5+1302_daily_bin1296.fits outfile=/scratch/kocevski/708057/cmap_HighResolution_575251201_575510401_4FGL_J0338.5+1302_daily_bin1296.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 7.68
user 0.36
sys 7.27

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2757       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .35758E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .65631       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10696E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.0120       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.889       1.0000         .10000E-03   10000.    
     8 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7737       1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10163E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5490       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .68355       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1034       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=   9941.815     FROM MIGRAD    STATUS=CONVERGED    357 CALLS     1452 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2760        4.1517        .19684E-06   -.10202E-02
   2  Prefactor     .10000E-03    4.3086       -.31224E-08** at limit **
   3  norm          .66406        5.5060       -.11716E-06   -.78724E-04
   4  Prefactor     .10000E-03    225.63       -.36742E-05** at limit **
   5  Prefactor     .10000E-03    5.2016       -.11167E-07** at limit **
   6  Prefactor     8.0122        5.9428        .72634E-06    .22996E-03
   7  Prefactor     17.891        15.973        .11659E-06    .12511E-04
   8  norm          .10000E-03    1.8227        .37929E-07** at limit **
   9  Prefactor     2.7751        10.683        .38999E-05   -.73619E-03
  10  norm          .10000E-03    7.3841       -.10870E-06** at limit **
  11  norm          .10001E-03    60.793       -.13325E-04** at limit **
  12  Prefactor     .10000E-03    41.134        .62435E-06** at limit **
  13  Prefactor     .10001E-03    64.418        .13968E-04** at limit **
  14  Prefactor     .10000E-03    7.6214        .16946E-06** at limit **
  15  Prefactor     3.5554        40.878       -.33899E-05   -.41003E-04
  16  Normalizat    .68365        .26528       -.14510E-05   -.34791E-04
  17  Prefactor     1.1033        .73862E-01    .11183E-06   -.76182E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.276
  Prefactor  = 0.0001
  norm       = 0.664058
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 8.0122
  Prefactor  = 17.8908
  norm       = 0.0001
  Prefactor  = 2.77514
  norm       = 0.0001
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 3.5554
  Normalizat = 0.683649
  Prefactor  = 1.10331
 **********
 **   18 **HESSE 
 **********

 FCN=   9941.815     FROM HESSE     STATUS=OK           227 CALLS     1679 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2760        4.2341        .87495E-03   -1.5249    
   2  Prefactor     .10000E-03    15.155        .40058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .66406        23.875        .44474E-02   -1.5545    
   4  Prefactor     .10000E-03    226.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.4173        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.0122        5.9465        .14165E-03   -1.5142    
   7  Prefactor     17.891        15.970        .94694E-04   -1.4862    
   8  norm          .10000E-03    1.8848        .26240E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.7751        23.223        .12218E-02   -1.5375    
  10  norm          .10000E-03    7.5572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10001E-03    62.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    41.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    66.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.6412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.5554        41.207        .21455E-03   -1.5331    
  16  Normalizat    .68365        .27808        .60595E-03   -1.0454    
  17  Prefactor     1.1033        .78204E-01    .13768E-03   -.89361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.15951e-08
Minuit parameter uncertainties:
  1  4.23432
  2  1.67264e-05
  3  7.96635
  4  0.000842258
  5  2.66175e-06
  6  5.94692
  7  15.974
  8  3.44013e-06
  9  16.064
  10  3.69451e-06
  11  0.00145359
  12  6.5974e-05
  13  0.00148747
  14  1.09184e-05
  15  24.2288
  16  0.27865
  17  0.0782121
Done.

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

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  1.000e-04  3.695e-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.103e+00  7.821e-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:  6.836e-01  2.787e-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: 3.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/708057/likelihoodResults_575251201_575510401_4FGL_J0338.5+1302_daily_bin1296.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): 102
logL (Free Index) = 9941.81540333
delta logL = -0.000630788654234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9941.8147674
delta logL = 5.14425664733e-06

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.8327       1.0000          .0000       5.0000    
     3 'Normalizat'    .68365       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1033       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9941.798     FROM MIGRAD    STATUS=FAILED       177 CALLS      393 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .46484        19.755        .18142E-02    .26687E-02
   2  alpha         2.3864        3.6928        .37992E-01    .21416E-03
   3  Normalizat    .68624        .27260        .60491E-03   -.22741E-04
   4  Prefactor     1.1016        .78861E-01    .13777E-03   -.97372E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9941.798     FROM SIMPLEX   STATUS=UNCHANGED     97 CALLS      490 TOTAL
                     EDM=   .64E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .46484        19.755        .12237E-03   -1.5572    
   2  alpha         2.3864        3.6928        .31370E-02   -.45463E-01
   3  Normalizat    .68624        .27260        .18892E-03   -1.0444    
   4  Prefactor     1.1016        .78861E-01    .27107E-04   -.89416    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9941.798     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      522 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .46484        5.4112        .36285E-03   -.10716E-04
   2  alpha         2.3864        1.8178        .75985E-02   -.17924E-05
   3  Normalizat    .68624        .27145        .24196E-04   -.16351E-04
   4  Prefactor     1.1016        .78133E-01    .55108E-05   -.66015E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.464843
  alpha      = 2.38638
  Normalizat = 0.686241
  Prefactor  = 1.10158
 **********
 **   18 **HESSE 
 **********

 FCN=   9941.798     FROM HESSE     STATUS=OK            25 CALLS      547 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .46484        4.9068        .14514E-04   -1.5572    
   2  alpha         2.3864        1.7502        .30394E-03   -.45464E-01
   3  Normalizat    .68624        .27155        .48393E-05   -1.0444    
   4  Prefactor     1.1016        .78165E-01    .11022E-05   -.89416    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68534e-12
Minuit parameter uncertainties:
  1  3.02053
  2  1.93931
  3  0.272079
  4  0.0781731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708057': 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) = 9941.7984684
delta logL = 0.016304147317

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  4.648e-01  3.021e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  2.386e+00  1.939e+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.102e+00  7.817e-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:  6.862e-01  2.721e-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/708057/cmap_HighResolution_575251201_575510401_4FGL_J0338.5+1302_daily_bin1296.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-04', job_status='DONE', photon_flux_upper_limit='3.46e-08', time_completed='2021-08-18 20:49:58.625793', job_id='708057', GAL2='1.10', fit_tolerance='1e-08', EG2='0.69', EG='0.68', time_epoch_completed='1629344998.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.63e-02', ts2='0.03', photon_index_error='0.00', photon_index='1.54' WHERE bin_id='1296' AND source_name='4FGL J0338.5+1302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 20:49:58 PDT 2021

-----------------------------------------------------------
Sender: LSF System <lsf@bullet0009>
Subject: Job 707917: <4FGL_J0338.5+1302_daily_bin1296> in cluster <slac> Done

Job <4FGL_J0338.5+1302_daily_bin1296> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Aug 18 20:33:21 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 20:33:23 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:33:23 2021
Terminated at Wed Aug 18 20:47:53 2021
Results reported at Wed Aug 18 20:47:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0338.5+1302_daily_bin1296 54.6355 13.0419 575251201 575510401 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 :                                   724.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            872 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 708057: <4FGL_J0338.5+1302_daily_bin1296> in cluster <slac> Done

Job <4FGL_J0338.5+1302_daily_bin1296> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Aug 18 20:33:28 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 20:33: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:33:34 2021
Terminated at Wed Aug 18 20:50:00 2021
Results reported at Wed Aug 18 20:50:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0338.5+1302_daily_bin1296 54.6355 13.0419 575251201 575510401 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 :                                   928.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            992 sec.

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

