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


Performing analysis on: 4FGL_J0338.5+1302_daily_bin882
RA = 54.6355, Dec = 13.0419
tmin = 467942401, tmax = 468201601
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='706188', job_status='RUN', time_executed='2021-08-18 20:29:48.407434', time_epoch_executed='1629343788.41' WHERE source_name='4FGL J0338.5+1302' and cadence='daily' and bin_id='882'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706188

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706188/ft1_4FGL_J0338.5+1302_daily_bin882.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706188/ft2_4FGL_J0338.5+1302_daily_bin882.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706188/ft1_4FGL_J0338.5+1302_daily_bin882.fits outfile=/scratch/kocevski/706188/ft1_filteredMKT_4FGL_J0338.5+1302_daily_bin882.fits ra=54.6355 dec=13.0419 rad=12.0 tmin=467942401.0 tmax=468201601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.73
user 3.38
sys 1.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/706188/ft2_4FGL_J0338.5+1302_daily_bin882.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/706188/ft1_filteredMKT_4FGL_J0338.5+1302_daily_bin882.fits evtable="EVENTS" outfile="/scratch/kocevski/706188/ft1_filtered_4FGL_J0338.5+1302_daily_bin882.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.64
user 0.33
sys 1.23

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/706188/ft1_filtered_4FGL_J0338.5+1302_daily_bin882.fits" evtable="EVENTS" scfile=/scratch/kocevski/706188/ft2_4FGL_J0338.5+1302_daily_bin882.fits sctable="SC_DATA" outfile=/scratch/kocevski/706188/ltcube_467942401_468201601_4FGL_J0338.5+1302_daily_bin882.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/706188/ft2_4FGL_J0338.5+1302_daily_bin882.fits
.....................!
real 13.34
user 11.70
sys 1.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706188/ft1_filtered_4FGL_J0338.5+1302_daily_bin882.fits evtable="EVENTS" scfile=/scratch/kocevski/706188/ft2_4FGL_J0338.5+1302_daily_bin882.fits sctable="SC_DATA" expcube=/scratch/kocevski/706188/ltcube_467942401_468201601_4FGL_J0338.5+1302_daily_bin882.fits outfile=/scratch/kocevski/706188/expmap_467942401_468201601_4FGL_J0338.5+1302_daily_bin882.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/706188/ltcube_467942401_468201601_4FGL_J0338.5+1302_daily_bin882.fits
.....................!
real 192.78
user 185.75
sys 6.50

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/706188/ft1_filtered_4FGL_J0338.5+1302_daily_bin882.fits scfile=/scratch/kocevski/706188/ft2_4FGL_J0338.5+1302_daily_bin882.fits outfile=/scratch/kocevski/706188/cmap_467942401_468201601_4FGL_J0338.5+1302_daily_bin882.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 1.65
user 0.38
sys 1.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/706188/ft1_filtered_4FGL_J0338.5+1302_daily_bin882.fits scfile=/scratch/kocevski/706188/ft2_4FGL_J0338.5+1302_daily_bin882.fits outfile=/scratch/kocevski/706188/cmap_HighResolution_467942401_468201601_4FGL_J0338.5+1302_daily_bin882.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 1.61
user 0.38
sys 1.21

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9863       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .55961       1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1717       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.0399       1.0000         .10000E-03   10000.    
     9 'Prefactor '    45.213       1.0000         .10000E-03   10000.    
    10 'norm      '    4.9613       1.0000         .10000E-03   10000.    
    11 'norm      '    129.84       1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.429       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.825       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.617       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1405       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .93580       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=   10664.75     FROM MIGRAD    STATUS=CONVERGED    339 CALLS     1640 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9863        3.7560       -.35469E-06   -.52645E-03
   2  Prefactor     .52798        4.4792       -.17220E-05   -.12168E-03
   3  norm          .10000E-03    4.5939       -.61726E-07** at limit **
   4  Prefactor     .10000E-03    183.96       -.83286E-06** at limit **
   5  Prefactor     .10000E-03    1.6899       -.26923E-07** at limit **
   6  Prefactor     2.1707        4.4503       -.78930E-06   -.82083E-03
   7  Prefactor     .10000E-03    6.7980        .25844E-07** at limit **
   8  norm          1.0401        1.8109       -.59568E-06   -.18008E-02
   9  Prefactor     45.211        19.978        .16859E-05    .54951E-04
  10  norm          4.9613        4.6858       -.49230E-06    .43274E-04
  11  norm          129.83        76.559       -.62848E-05    .45592E-05
  12  Prefactor     23.415        54.805       -.19127E-04    .45197E-05
  13  Prefactor     10.824        17.880        .23929E-05   -.13295E-04
  14  Prefactor     19.621        19.918       -.20357E-05    .80979E-05
  15  Prefactor     .10000E-03    26.674        .39143E-07** at limit **
  16  Normalizat    1.1407        .24701        .32926E-05    .39639E-04
  17  Prefactor     .93577        .66111E-01   -.55680E-07    .37550E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.98631
  Prefactor  = 0.52798
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.17066
  Prefactor  = 0.0001
  norm       = 1.04015
  Prefactor  = 45.2109
  norm       = 4.9613
  norm       = 129.827
  Prefactor  = 23.4148
  Prefactor  = 10.8244
  Prefactor  = 19.6212
  Prefactor  = 0.0001
  Normalizat = 1.14071
  Prefactor  = 0.935773
 **********
 **   18 **HESSE 
 **********

 FCN=   10664.75     FROM HESSE     STATUS=OK           227 CALLS     1867 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9863        3.7622        .21863E-03   -1.5362    
   2  Prefactor     .52798        19.636        .42413E-02   -1.5563    
   3  norm          .10000E-03    4.7015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    184.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.6991        .13110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.1707        4.4327        .27943E-03   -1.5413    
   7  Prefactor     .10000E-03    6.8562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0401        1.8015        .17481E-03   -1.5504    
   9  Prefactor     45.211        19.962        .59626E-04   -1.4362    
  10  norm          4.9613        4.6847        .18056E-03   -1.5262    
  11  norm          129.83        76.238        .35335E-04   -1.3424    
  12  Prefactor     23.415        54.250        .82755E-04   -1.4740    
  13  Prefactor     10.824        17.829        .12177E-03   -1.5050    
  14  Prefactor     19.621        19.896        .90430E-04   -1.4822    
  15  Prefactor     .10000E-03    26.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1407        .27202        .46351E-03   -.88455    
  17  Prefactor     .93577        .73436E-01    .14136E-03   -.94902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.44083e-08
Minuit parameter uncertainties:
  1  3.76247
  2  6.44133
  3  9.33201e-06
  4  3.19612e-05
  5  2.05971e-06
  6  4.43341
  7  3.95185e-06
  8  1.80164
  9  19.9651
  10  4.68509
  11  76.2962
  12  54.3643
  13  17.8379
  14  19.9028
  15  6.62835e-05
  16  0.272358
  17  0.073444
Done.

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

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  4.961e+00  4.685e+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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  9.358e-01  7.344e-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.141e+00  2.724e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.51
Ra Dec: 54.636 13.042
Photon Index (Fixed Index): 1.54 +/- 0.00
Photon Flux (Fixed Index): 9.96e-09 +/- 9.41e-09
Energy Flux (Fixed Index): 3.10e-05 +/- 2.93e-05

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

Saving results to:
/scratch/kocevski/706188/likelihoodResults_467942401_468201601_4FGL_J0338.5+1302_daily_bin882.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) = 10664.284458
delta logL = 0.465769758433

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10663.9952241
delta logL = 0.755003626487

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2400       1.0000         .10000E-03   10000.    
     2 'alpha     '    .18141       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1322       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93968       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=   10664.00     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      233 TOTAL
                     EDM=   .16E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2254        1.4577       -.12028E-06   -.10572E-03
   2  alpha         .17334        .24571       -.73400E-05    .10218E-05
   3  Normalizat    1.1324        .23440       -.10314E-07   -.99131E-06
   4  Prefactor     .93973        .65862E-01    .32463E-08    .11890E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.22543
  alpha      = 0.173339
  Normalizat = 1.13236
  Prefactor  = 0.939731
 **********
 **   18 **HESSE 
 **********

 FCN=   10664.00     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2254        2.7295        .11276E-03   -1.5487    
   2  alpha         .17334        2.8049        .63103E-01   -1.1962    
   3  Normalizat    1.1324        .25869        .46491E-03   -.88720    
   4  Prefactor     .93973        .72931E-01    .14111E-03   -.94766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21556e-10
Minuit parameter uncertainties:
  1  2.72981
  2  1.08703
  3  0.258978
  4  0.0729384
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706188': 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) = 10663.9951893
delta logL = 0.755038454539

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  1.225e+00  2.730e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.733e-01  1.087e+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:  9.397e-01  7.294e-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.132e+00  2.590e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.02
Ra Dec: 54.636 13.042
Photon Index (Free Index): 0.17 +/- 1.09
Photon Flux (Free Index): 3.58e-09 +/- 3.78e-09
Energy Flux (Free Index): 1.06e-04 +/- 1.37e-04

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/706188/cmap_HighResolution_467942401_468201601_4FGL_J0338.5+1302_daily_bin882.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-04', comment='SUCCESS', photon_flux='9.96e-09', energy_flux2='1.06e-04', photon_flux_error='9.41e-09', dlogl='7.55e-01', energy_flux='3.10e-05', photon_flux2='3.58e-09', job_status='DONE', time_completed='2021-08-18 20:42:32.809658', photon_index_error2='1.09', photon_index2='0.17', ts='3.51', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='3.83e-08', energy_flux_error2='1.37e-04', EG='1.14', time_epoch_completed='1629344552.81', return_code='0', job_id='706188', GAL2='0.94', EG2='1.13', return_code2='0', energy_flux_error='2.93e-05', photon_flux_error2='3.78e-09', ts2='5.02', photon_index='1.54' WHERE bin_id='882' AND source_name='4FGL J0338.5+1302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 20:42:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0140>
Subject: Job 706188: <4FGL_J0338.5+1302_daily_bin882> in cluster <slac> Done

Job <4FGL_J0338.5+1302_daily_bin882> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Aug 18 20:29:04 2021
Job was executed on host(s) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 20:29:05 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:29:05 2021
Terminated at Wed Aug 18 20:42:33 2021
Results reported at Wed Aug 18 20:42:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0338.5+1302_daily_bin882 54.6355 13.0419 467942401 468201601 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 :                                   773.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             366.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            809 sec.

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

