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


Performing analysis on: 4FGL_J0338.5+1302_daily_bin457
RA = 54.6355, Dec = 13.0419
tmin = 357782401, tmax = 358041601
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='700623', job_status='RUN', time_executed='2021-08-18 20:14:38.012010', time_epoch_executed='1629342878.01' WHERE source_name='4FGL J0338.5+1302' and cadence='daily' and bin_id='457'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/700623

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/700623/ft1_4FGL_J0338.5+1302_daily_bin457.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/700623/ft2_4FGL_J0338.5+1302_daily_bin457.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/700623/ft1_4FGL_J0338.5+1302_daily_bin457.fits outfile=/scratch/kocevski/700623/ft1_filteredMKT_4FGL_J0338.5+1302_daily_bin457.fits ra=54.6355 dec=13.0419 rad=12.0 tmin=357782401.0 tmax=358041601.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.26
user 3.35
sys 0.88

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/700623/ft1_filtered_4FGL_J0338.5+1302_daily_bin457.fits" evtable="EVENTS" scfile=/scratch/kocevski/700623/ft2_4FGL_J0338.5+1302_daily_bin457.fits sctable="SC_DATA" outfile=/scratch/kocevski/700623/ltcube_357782401_358041601_4FGL_J0338.5+1302_daily_bin457.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/700623/ft2_4FGL_J0338.5+1302_daily_bin457.fits
.....................!
real 12.94
user 11.79
sys 1.07

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/700623/ft1_filtered_4FGL_J0338.5+1302_daily_bin457.fits evtable="EVENTS" scfile=/scratch/kocevski/700623/ft2_4FGL_J0338.5+1302_daily_bin457.fits sctable="SC_DATA" expcube=/scratch/kocevski/700623/ltcube_357782401_358041601_4FGL_J0338.5+1302_daily_bin457.fits outfile=/scratch/kocevski/700623/expmap_357782401_358041601_4FGL_J0338.5+1302_daily_bin457.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/700623/ltcube_357782401_358041601_4FGL_J0338.5+1302_daily_bin457.fits
.....................!
real 192.56
user 186.09
sys 6.00

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/700623/ft1_filtered_4FGL_J0338.5+1302_daily_bin457.fits scfile=/scratch/kocevski/700623/ft2_4FGL_J0338.5+1302_daily_bin457.fits outfile=/scratch/kocevski/700623/cmap_357782401_358041601_4FGL_J0338.5+1302_daily_bin457.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.18
user 0.37
sys 0.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/700623/ft1_filtered_4FGL_J0338.5+1302_daily_bin457.fits scfile=/scratch/kocevski/700623/ft2_4FGL_J0338.5+1302_daily_bin457.fits outfile=/scratch/kocevski/700623/cmap_HighResolution_357782401_358041601_4FGL_J0338.5+1302_daily_bin457.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.20
user 0.39
sys 0.80

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    2.7793       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.799       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .94043       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4757       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.3981       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3220       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    76.812       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.735       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.686       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0988       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0758       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=   11789.39     FROM MIGRAD    STATUS=CONVERGED    328 CALLS     1587 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7539       -.11002E-07** at limit **
   2  Prefactor     2.7793        4.8078       -.55029E-08   -.26315E-03
   3  norm          .10000E-03    5.4341       -.16621E-06** at limit **
   4  Prefactor     11.832        151.48        .90943E-04    .33889E-05
   5  Prefactor     .94334        .91111        .69405E-07   -.12476E-02
   6  Prefactor     5.4757        6.2293       -.70549E-06   -.52455E-04
   7  Prefactor     .10000E-03    6.8372       -.40414E-07** at limit **
   8  norm          5.3981        2.6136       -.89919E-07   -.34746E-04
   9  Prefactor     2.3220        10.831        .94099E-07   -.66508E-06
  10  norm          .10000E-03    4.6151        .29541E-07** at limit **
  11  norm          76.812        60.002       -.92659E-06   -.10245E-05
  12  Prefactor     25.723        47.638       -.21030E-04   -.15199E-05
  13  Prefactor     .10000E-03    20.415        .71722E-06** at limit **
  14  Prefactor     20.686        16.599        .11845E-05    .19684E-04
  15  Prefactor     .10000E-03    18.186       -.74826E-06** at limit **
  16  Normalizat    1.0988        .24056        .12381E-05   -.19051E-04
  17  Prefactor     1.0758        .67358E-01   -.17557E-06    .63523E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.77927
  norm       = 0.0001
  Prefactor  = 11.8322
  Prefactor  = 0.94334
  Prefactor  = 5.47573
  Prefactor  = 0.0001
  norm       = 5.39811
  Prefactor  = 2.32198
  norm       = 0.0001
  norm       = 76.8115
  Prefactor  = 25.7227
  Prefactor  = 0.0001
  Prefactor  = 20.6857
  Prefactor  = 0.0001
  Normalizat = 1.0988
  Prefactor  = 1.07582
 **********
 **   18 **HESSE 
 **********

 FCN=   11789.39     FROM HESSE     STATUS=OK           225 CALLS     1812 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8028        .17592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.7793        4.8250        .12205E-02   -1.5375    
   3  norm          .10000E-03    5.5517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.832        151.23        .11662E-03   -1.5020    
   5  Prefactor     .94334        6.3053        .25879E-02   -1.5514    
   6  Prefactor     5.4757        6.2132        .17171E-03   -1.5240    
   7  Prefactor     .10000E-03    6.8564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.3981        2.6095        .11330E-03   -1.5243    
   9  Prefactor     2.3220        10.813        .26918E-03   -1.5403    
  10  norm          .10000E-03    4.6906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          76.812        60.011        .45817E-04   -1.3953    
  12  Prefactor     25.723        47.637        .78966E-04   -1.4693    
  13  Prefactor     .10000E-03    20.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.686        16.593        .88064E-04   -1.4798    
  15  Prefactor     .10000E-03    18.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0988        .26405        .50519E-03   -.89790    
  17  Prefactor     1.0758        .74731E-01    .14574E-03   -.90243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4148e-09
Minuit parameter uncertainties:
  1  1.77122e-06
  2  4.82572
  3  2.47354e-06
  4  84.8664
  5  4.87819
  6  6.21389
  7  1.85004e-05
  8  2.60957
  9  10.0242
  10  3.31158e-07
  11  60.0579
  12  47.7077
  13  6.38601e-06
  14  16.597
  15  1.93466e-05
  16  0.264369
  17  0.0747382
Done.

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

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  1.000e-04  3.312e-07  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.536e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
287         beta:  1.650e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
288           Eb:  3.451e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.076e+00  7.474e-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.099e+00  2.644e-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: 2.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/700623/likelihoodResults_357782401_358041601_4FGL_J0338.5+1302_daily_bin457.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) = 11789.3920404
delta logL = -0.00101604054908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11789.3910243
delta logL = 8.20673449198e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5657       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0989       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0758       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=   11789.39     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      252 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .62035        .59614E-01** at limit **
   2  alpha         1.9849        3.1295        .50000        .15916E-06
   3  Normalizat    1.0988        .33702E-02    .50519E-03   -.19511E-03
   4  Prefactor     1.0758        .97133E-03    .14574E-03   -.60523E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.98493
  Normalizat = 1.0988
  Prefactor  = 1.07582
 **********
 **   18 **HESSE 
 **********

 FCN=   11789.39     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      283 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    72.796        .32732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9849        3.4826        .50000       -.20752    
   3  Normalizat    1.0988        .22535E-01    .20208E-04   -.89790    
   4  Prefactor     1.0758        .64949E-02    .29148E-04   -.90243    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.31722e-11
Minuit parameter uncertainties:
  1  0.000337847
  2  357.174
  3  0.0225352
  4  0.00649491
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/700623': 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): 102
logL (Free Index) = 11789.3910215
delta logL = 2.92243930744e-06

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  1.000e-04  3.378e-04  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.985e+00  3.572e+02  0.000e+00  5.000e+00 ( 1.000e+00)
287         beta:  1.650e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
288           Eb:  3.451e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.076e+00  6.495e-03  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.099e+00  2.254e-02  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/700623/cmap_HighResolution_357782401_358041601_4FGL_J0338.5+1302_daily_bin457.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.99e-05', job_status='DONE', photon_flux_upper_limit='2.89e-08', time_completed='2021-08-18 20:27:47.227062', job_id='700623', GAL2='1.08', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1629343667.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='2.92e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.54' WHERE bin_id='457' AND source_name='4FGL J0338.5+1302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 20:27:47 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0338.5+1302_daily_bin457 54.6355 13.0419 357782401 358041601 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 :                                   794.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            905 sec.

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

