/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 40 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/matp
WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7367
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0338.5+1302_daily_bin1388
RA = 54.6355, Dec = 13.0419
tmin = 599097601, tmax = 599356801
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='708178', job_status='RUN', time_executed='2021-08-18 20:37:08.215783', time_epoch_executed='1629344228.22' WHERE source_name='4FGL J0338.5+1302' and cadence='daily' and bin_id='1388'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708178

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708178/ft1_4FGL_J0338.5+1302_daily_bin1388.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708178/ft2_4FGL_J0338.5+1302_daily_bin1388.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708178/ft1_4FGL_J0338.5+1302_daily_bin1388.fits outfile=/scratch/kocevski/708178/ft1_filteredMKT_4FGL_J0338.5+1302_daily_bin1388.fits ra=54.6355 dec=13.0419 rad=12.0 tmin=599097601.0 tmax=599356801.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 11.74
user 2.62
sys 9.02

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/708178/ft1_filtered_4FGL_J0338.5+1302_daily_bin1388.fits" evtable="EVENTS" scfile=/scratch/kocevski/708178/ft2_4FGL_J0338.5+1302_daily_bin1388.fits sctable="SC_DATA" outfile=/scratch/kocevski/708178/ltcube_599097601_599356801_4FGL_J0338.5+1302_daily_bin1388.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/708178/ft2_4FGL_J0338.5+1302_daily_bin1388.fits
.....................!
real 22.10
user 11.75
sys 10.19

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708178/ft1_filtered_4FGL_J0338.5+1302_daily_bin1388.fits evtable="EVENTS" scfile=/scratch/kocevski/708178/ft2_4FGL_J0338.5+1302_daily_bin1388.fits sctable="SC_DATA" expcube=/scratch/kocevski/708178/ltcube_599097601_599356801_4FGL_J0338.5+1302_daily_bin1388.fits outfile=/scratch/kocevski/708178/expmap_599097601_599356801_4FGL_J0338.5+1302_daily_bin1388.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/708178/ltcube_599097601_599356801_4FGL_J0338.5+1302_daily_bin1388.fits
.....................!
real 203.02
user 185.35
sys 16.67

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/708178/ft1_filtered_4FGL_J0338.5+1302_daily_bin1388.fits scfile=/scratch/kocevski/708178/ft2_4FGL_J0338.5+1302_daily_bin1388.fits outfile=/scratch/kocevski/708178/cmap_599097601_599356801_4FGL_J0338.5+1302_daily_bin1388.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 9.22
user 0.37
sys 8.81

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708178/ft1_filtered_4FGL_J0338.5+1302_daily_bin1388.fits scfile=/scratch/kocevski/708178/ft2_4FGL_J0338.5+1302_daily_bin1388.fits outfile=/scratch/kocevski/708178/cmap_HighResolution_599097601_599356801_4FGL_J0338.5+1302_daily_bin1388.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 9.64
user 0.40
sys 9.01

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17748E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9876       1.0000         .10000E-03   10000.    
     3 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15496E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.0107       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.642       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5151       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.7235       1.0000         .10000E-03   10000.    
    11 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    78.172       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.630       1.0000         .10000E-03   10000.    
    15 'Prefactor '    117.50       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .70006       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1714       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=   5683.739     FROM MIGRAD    STATUS=CONVERGED    343 CALLS     1607 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.3163        .44336E-01** at limit **
   2  Prefactor     2.9875        5.2159        .58717E-02    .20324E-03
   3  norm          .10000E-03    7.2863        .90712E-02** at limit **
   4  Prefactor     .10001E-03    282.92        .90712E-02** at limit **
   5  Prefactor     7.0104        8.7648        .37878E-02    .12150E-02
   6  Prefactor     10.643        8.2736        .30705E-02   -.16308E-02
   7  Prefactor     .10000E-03    15.938        .90712E-02** at limit **
   8  norm          1.5151        2.3333        .86831E-02    .48143E-03
   9  Prefactor     .10000E-03    8.1967        .90712E-02** at limit **
  10  norm          5.7233        10.828        .41973E-02   -.21918E-03
  11  norm          .10000E-03    55.975        .90712E-02** at limit **
  12  Prefactor     .10000E-03    33.955        .90712E-02** at limit **
  13  Prefactor     78.171        71.275        .11355E-02    .18348E-03
  14  Prefactor     18.644        33.279        .23198E-02    .81182E-03
  15  Prefactor     117.50        113.54        .92800E-03   -.29935E-03
  16  Normalizat    .70004        .36368        .13918        .26247E-04
  17  Prefactor     1.1715        .10914        .35344E-01   -.13849E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.98754
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 7.01041
  Prefactor  = 10.6428
  Prefactor  = 0.0001
  norm       = 1.51507
  Prefactor  = 0.0001
  norm       = 5.72327
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 78.1711
  Prefactor  = 18.6444
  Prefactor  = 117.503
  Normalizat = 0.700039
  Prefactor  = 1.17145
 **********
 **   18 **HESSE 
 **********

 FCN=   5683.739     FROM HESSE     STATUS=OK           219 CALLS     1826 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.087        .26655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.9875        5.1968        .22143E-03   -1.5362    
   3  norm          .10000E-03    7.3400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    283.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.0104        8.7545        .15151E-03   -1.5178    
   6  Prefactor     10.643        8.2531        .12282E-03   -1.5055    
   7  Prefactor     .10000E-03    16.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5151        2.2995        .13643E-03   -1.5462    
   9  Prefactor     .10000E-03    8.2071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.7233        10.837        .16789E-03   -1.5229    
  11  norm          .10000E-03    55.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    33.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     78.171        71.226        .45420E-04   -1.3937    
  14  Prefactor     18.644        33.270        .92793E-04   -1.4844    
  15  Prefactor     117.50        113.49        .37120E-04   -1.3536    
  16  Normalizat    .70004        .37461        .61803E-03   -1.0389    
  17  Prefactor     1.1715        .11447        .14658E-03   -.87214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.19379e-09
Minuit parameter uncertainties:
  1  4.91339e-05
  2  5.1976
  3  3.51089e-06
  4  0.00349243
  5  8.75606
  6  8.25395
  7  1.70036e-05
  8  2.29965
  9  2.00809e-05
  10  10.8405
  11  0.000141444
  12  0.000111494
  13  71.3036
  14  33.3033
  15  113.696
  16  0.375988
  17  0.114491
Done.

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

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  5.723e+00  1.084e+01  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.171e+00  1.145e-01  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:  7.000e-01  3.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.37
Ra Dec: 54.636 13.042
Photon Flux Upper Limit: 7.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.32e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/708178/likelihoodResults_599097601_599356801_4FGL_J0338.5+1302_daily_bin1388.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) = 5682.98785795
delta logL = 0.750879579301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5682.98625517
delta logL = 0.752482361021

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3100       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5400       1.0000          .0000       5.0000    
     3 'Normalizat'    .70864       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1592       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=   5682.986     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      281 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3095        7.5282        .14101E-03    .19471E-03
   2  alpha         2.5405        .84058        .11079E-01    .28446E-04
   3  Normalizat    .70863        .37247        .61453E-03   -.69467E-04
   4  Prefactor     1.1593        .11329        .14710E-03   -.47706E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.30948
  alpha      = 2.54045
  Normalizat = 0.708633
  Prefactor  = 1.15927
 **********
 **   18 **HESSE 
 **********

 FCN=   5682.986     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3095        6.5510        .56403E-05   -1.5293    
   2  alpha         2.5405        .73476        .44315E-03    .16182E-01
   3  Normalizat    .70863        .37209        .24581E-04   -1.0355    
   4  Prefactor     1.1593        .11328        .29420E-04   -.87594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33008e-10
Minuit parameter uncertainties:
  1  6.55209
  2  0.745779
  3  0.373426
  4  0.113305
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708178': 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) = 5682.98625451
delta logL = 0.752483022268

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  4.309e+00  6.552e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  2.540e+00  7.458e-01  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.159e+00  1.133e-01  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:  7.086e-01  3.734e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.88
Ra Dec: 54.636 13.042
Photon Index (Free Index): 2.54 +/- 0.75
Photon Flux (Free Index): 6.12e-08 +/- 6.98e-08
Energy Flux (Free Index): 3.00e-05 +/- 2.94e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/708178/cmap_HighResolution_599097601_599356801_4FGL_J0338.5+1302_daily_bin1388.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.32e-04', comment='SUCCESS', energy_flux2='3.00e-05', dlogl='7.52e-01', photon_flux2='6.12e-08', job_status='DONE', time_completed='2021-08-18 20:48:05.606333', photon_index_error2='0.75', photon_index2='2.54', ts='0.37', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='7.45e-08', energy_flux_error2='2.94e-05', EG='0.70', time_epoch_completed='1629344885.61', return_code='0', job_id='708178', GAL2='1.16', EG2='0.71', return_code2='0', photon_flux_error2='6.98e-08', ts2='1.88', photon_index='1.54' WHERE bin_id='1388' AND source_name='4FGL J0338.5+1302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 20:48:05 PDT 2021

'708269', GAL2='1.16', EG2='0.71', return_code2='0', photon_flux_error2='6.98e-08', ts2='1.88', photon_index='1.54' WHERE bin_id='1388' AND source_name='4FGL J0338.5+1302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 20:47:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 708269: <4FGL_J0338.5+1302_daily_bin1388> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0338.5+1302_daily_bin1388 54.6355 13.0419 599097601 599356801 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 :                                   761.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            852 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0045>
Subject: Job 708178: <4FGL_J0338.5+1302_daily_bin1388> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0338.5+1302_daily_bin1388 54.6355 13.0419 599097601 599356801 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 :                                   795.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             278.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            875 sec.

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

