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


Performing analysis on: 4FGL_J0338.5+1302_daily_bin424
RA = 54.6355, Dec = 13.0419
tmin = 349228801, tmax = 349488001
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='700576', job_status='RUN', time_executed='2021-08-18 20:14:23.073273', time_epoch_executed='1629342863.07' WHERE source_name='4FGL J0338.5+1302' and cadence='daily' and bin_id='424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/700576

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/700576/ft1_4FGL_J0338.5+1302_daily_bin424.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/700576/ft2_4FGL_J0338.5+1302_daily_bin424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/700576/ft1_4FGL_J0338.5+1302_daily_bin424.fits outfile=/scratch/kocevski/700576/ft1_filteredMKT_4FGL_J0338.5+1302_daily_bin424.fits ra=54.6355 dec=13.0419 rad=12.0 tmin=349228801.0 tmax=349488001.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.55
user 3.24
sys 1.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/700576/ft2_4FGL_J0338.5+1302_daily_bin424.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/700576/ft1_filteredMKT_4FGL_J0338.5+1302_daily_bin424.fits evtable="EVENTS" outfile="/scratch/kocevski/700576/ft1_filtered_4FGL_J0338.5+1302_daily_bin424.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.45
user 0.34
sys 1.06

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/700576/ft1_filtered_4FGL_J0338.5+1302_daily_bin424.fits" evtable="EVENTS" scfile=/scratch/kocevski/700576/ft2_4FGL_J0338.5+1302_daily_bin424.fits sctable="SC_DATA" outfile=/scratch/kocevski/700576/ltcube_349228801_349488001_4FGL_J0338.5+1302_daily_bin424.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/700576/ft2_4FGL_J0338.5+1302_daily_bin424.fits
.....................!
real 13.40
user 11.83
sys 1.51

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/700576/ft1_filtered_4FGL_J0338.5+1302_daily_bin424.fits evtable="EVENTS" scfile=/scratch/kocevski/700576/ft2_4FGL_J0338.5+1302_daily_bin424.fits sctable="SC_DATA" expcube=/scratch/kocevski/700576/ltcube_349228801_349488001_4FGL_J0338.5+1302_daily_bin424.fits outfile=/scratch/kocevski/700576/expmap_349228801_349488001_4FGL_J0338.5+1302_daily_bin424.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/700576/ltcube_349228801_349488001_4FGL_J0338.5+1302_daily_bin424.fits
.....................!
real 192.23
user 185.10
sys 6.38

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/700576/ft1_filtered_4FGL_J0338.5+1302_daily_bin424.fits scfile=/scratch/kocevski/700576/ft2_4FGL_J0338.5+1302_daily_bin424.fits outfile=/scratch/kocevski/700576/cmap_349228801_349488001_4FGL_J0338.5+1302_daily_bin424.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.60
user 0.40
sys 1.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/700576/ft1_filtered_4FGL_J0338.5+1302_daily_bin424.fits scfile=/scratch/kocevski/700576/ft2_4FGL_J0338.5+1302_daily_bin424.fits outfile=/scratch/kocevski/700576/cmap_HighResolution_349228801_349488001_4FGL_J0338.5+1302_daily_bin424.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.58
user 0.39
sys 1.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10285E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .66493       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.909       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5528       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.879       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3909       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .19401       1.0000         .10000E-03   10000.    
    11 'norm      '    117.06       1.0000         .10000E-03   10000.    
    12 'Prefactor '    71.752       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    38.736       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .72255       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0757       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=   11809.81     FROM MIGRAD    STATUS=CONVERGED    330 CALLS     1876 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10004E-03    2.3098       -.40119E-06** at limit **
   2  Prefactor     .66638        3.6342        .50011E-07   -.16419E-03
   3  norm          .10000E-03    11.084        .16800E-07** at limit **
   4  Prefactor     31.890        238.01       -.77077E-05   -.33325E-04
   5  Prefactor     .10000E-03    4.6186        .32396E-07** at limit **
   6  Prefactor     4.5565        10.342       -.11245E-05   -.15550E-03
   7  Prefactor     13.879        14.373       -.14801E-06   -.67459E-04
   8  norm          1.3899        3.2053        .12919E-05   -.35561E-03
   9  Prefactor     .10000E-03    21.169        .14052E-05** at limit **
  10  norm          .19250        2.7511        .16763E-07   -.10099E-03
  11  norm          117.06        72.393        .30342E-06    .32518E-04
  12  Prefactor     71.746        59.536       -.15196E-05   -.12188E-03
  13  Prefactor     .10000E-03    9.1102        .42470E-07** at limit **
  14  Prefactor     .10000E-03    4.3988       -.76426E-08** at limit **
  15  Prefactor     38.739        28.533        .66586E-06    .94515E-04
  16  Normalizat    .72258        .25104       -.29061E-06   -.16480E-04
  17  Prefactor     1.0757        .67070E-01   -.73825E-08    .14206E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100038
  Prefactor  = 0.666381
  norm       = 0.0001
  Prefactor  = 31.89
  Prefactor  = 0.0001
  Prefactor  = 4.55648
  Prefactor  = 13.8788
  norm       = 1.38989
  Prefactor  = 0.000100001
  norm       = 0.192498
  norm       = 117.061
  Prefactor  = 71.7459
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.7385
  Normalizat = 0.722575
  Prefactor  = 1.07572
 **********
 **   18 **HESSE 
 **********

 FCN=   11809.81     FROM HESSE     STATUS=OK           233 CALLS     2109 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10004E-03    2.2854        .53380E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .66638        11.002        .40656E-02   -1.5545    
   3  norm          .10000E-03    11.429        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     31.890        247.83        .70933E-04   -1.4578    
   5  Prefactor     .10000E-03    4.7061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.5565        10.209        .18866E-03   -1.5281    
   7  Prefactor     13.879        14.370        .10751E-03   -1.4963    
   8  norm          1.3899        3.3918        .24676E-03   -1.5472    
   9  Prefactor     .10000E-03    21.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .19250        23.050        .35205E-02   -1.5620    
  11  norm          117.06        72.433        .37189E-04   -1.3540    
  12  Prefactor     71.746        61.088        .47393E-04   -1.4012    
  13  Prefactor     .10000E-03    9.1191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.4025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     38.739        28.657        .64399E-04   -1.4462    
  16  Normalizat    .72258        .26343        .58582E-03   -1.0301    
  17  Prefactor     1.0757        .71635E-01    .13786E-03   -.90246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4152e-07
Minuit parameter uncertainties:
  1  0.000591015
  2  5.41605
  3  1.9565e-06
  4  178.833
  5  1.06568e-06
  6  10.2127
  7  14.3734
  8  3.39226
  9  0.000218436
  10  4.2134
  11  72.4879
  12  61.1415
  13  1.77729e-06
  14  3.12107e-06
  15  28.6677
  16  0.263892
  17  0.0716411
Done.

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

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  1.925e-01  4.213e+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:  1.076e+00  7.164e-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:  7.226e-01  2.639e-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.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.91e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/700576/likelihoodResults_349228801_349488001_4FGL_J0338.5+1302_daily_bin424.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) = 11809.8028758
delta logL = 0.00481830216995

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11809.7993436
delta logL = 0.00835046065731

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .52525       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8877       1.0000          .0000       5.0000    
     3 'Normalizat'    .72417       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0750       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=   11809.80     FROM MIGRAD    STATUS=FAILED       101 CALLS      270 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51432        11.977        .22747E-02    .20629E-02
   2  alpha         1.8849        3.4225        .74244E-01    .18968E-03
   3  Normalizat    .72402        .24933        .58529E-03   -.66042E-05
   4  Prefactor     1.0750        .71479E-01    .13790E-03   -.17972E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   11809.80     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      358 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51432        11.977        .33252E-03   -1.5565    
   2  alpha         1.8849        3.4225        .58536E-02   -.24861    
   3  Normalizat    .72402        .24933        .47085E-03   -1.0295    
   4  Prefactor     1.0750        .71479E-01    .12077E-03   -.90271    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11809.80     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      393 TOTAL
                     EDM=   .50E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51432        7.8236        .45494E-03   -.40633E-04
   2  alpha         1.8849        1.9431        .14849E-01   -.94632E-06
   3  Normalizat    .72402        .24913        .23412E-04   -.29136E-05
   4  Prefactor     1.0750        .71376E-01    .55160E-05   -.82441E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.514318
  alpha      = 1.88487
  Normalizat = 0.724024
  Prefactor  = 1.07497
 **********
 **   18 **HESSE 
 **********

 FCN=   11809.80     FROM HESSE     STATUS=OK            25 CALLS      418 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51432        7.5844        .18198E-04   -1.5565    
   2  alpha         1.8849        1.9226        .59395E-03   -.24860    
   3  Normalizat    .72402        .24899        .46823E-05   -1.0295    
   4  Prefactor     1.0750        .71346E-01    .11032E-05   -.90271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.24711e-12
Minuit parameter uncertainties:
  1  3.95029
  2  2.22065
  3  0.249385
  4  0.0713527
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/700576': 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) = 11809.7993378
delta logL = 0.00835625801483

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  5.143e-01  3.950e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.885e+00  2.221e+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.075e+00  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:  7.240e-01  2.494e-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/700576/cmap_HighResolution_349228801_349488001_4FGL_J0338.5+1302_daily_bin424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.91e-05', job_status='DONE', photon_flux_upper_limit='3.18e-08', time_completed='2021-08-18 20:28:17.636135', job_id='700576', GAL2='1.07', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1629343697.64', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='8.36e-03', ts2='0.02', photon_index_error='0.00', photon_index='1.54' WHERE bin_id='424' AND source_name='4FGL J0338.5+1302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 20:28:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0029>
Subject: Job 700576: <4FGL_J0338.5+1302_daily_bin424> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0338.5+1302_daily_bin424 54.6355 13.0419 349228801 349488001 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 :                                   843.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             342.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            938 sec.

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

