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


Performing analysis on: 4FGL_J0338.5+1302_daily_bin238
RA = 54.6355, Dec = 13.0419
tmin = 301017601, tmax = 301276801
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='695563', job_status='RUN', time_executed='2021-08-18 20:08:04.564131', time_epoch_executed='1629342484.56' WHERE source_name='4FGL J0338.5+1302' and cadence='daily' and bin_id='238'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/695563

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/695563/ft1_4FGL_J0338.5+1302_daily_bin238.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/695563/ft2_4FGL_J0338.5+1302_daily_bin238.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/695563/ft1_4FGL_J0338.5+1302_daily_bin238.fits outfile=/scratch/kocevski/695563/ft1_filteredMKT_4FGL_J0338.5+1302_daily_bin238.fits ra=54.6355 dec=13.0419 rad=12.0 tmin=301017601.0 tmax=301276801.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 6.73
user 3.31
sys 3.37

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/695563/ft1_filtered_4FGL_J0338.5+1302_daily_bin238.fits" evtable="EVENTS" scfile=/scratch/kocevski/695563/ft2_4FGL_J0338.5+1302_daily_bin238.fits sctable="SC_DATA" outfile=/scratch/kocevski/695563/ltcube_301017601_301276801_4FGL_J0338.5+1302_daily_bin238.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/695563/ft2_4FGL_J0338.5+1302_daily_bin238.fits
.....................!
real 15.97
user 11.99
sys 3.88

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/695563/ft1_filtered_4FGL_J0338.5+1302_daily_bin238.fits evtable="EVENTS" scfile=/scratch/kocevski/695563/ft2_4FGL_J0338.5+1302_daily_bin238.fits sctable="SC_DATA" expcube=/scratch/kocevski/695563/ltcube_301017601_301276801_4FGL_J0338.5+1302_daily_bin238.fits outfile=/scratch/kocevski/695563/expmap_301017601_301276801_4FGL_J0338.5+1302_daily_bin238.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/695563/ltcube_301017601_301276801_4FGL_J0338.5+1302_daily_bin238.fits
.....................!
real 194.95
user 185.91
sys 8.53

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/695563/ft1_filtered_4FGL_J0338.5+1302_daily_bin238.fits scfile=/scratch/kocevski/695563/ft2_4FGL_J0338.5+1302_daily_bin238.fits outfile=/scratch/kocevski/695563/cmap_301017601_301276801_4FGL_J0338.5+1302_daily_bin238.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 8.96
user 0.38
sys 3.30

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/695563/ft1_filtered_4FGL_J0338.5+1302_daily_bin238.fits scfile=/scratch/kocevski/695563/ft2_4FGL_J0338.5+1302_daily_bin238.fits outfile=/scratch/kocevski/695563/cmap_HighResolution_301017601_301276801_4FGL_J0338.5+1302_daily_bin238.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 3.71
user 0.39
sys 3.25

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0847       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1686       1.0000         .10000E-03   10000.    
     3 'norm      '    20.248       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.8964       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5615       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .18829       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0138       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.630       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .80781       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0093       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10586.59     FROM MIGRAD    STATUS=CONVERGED    101 CALLS     1435 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0845        4.9028        .60870E-06    .27448E-03
   2  Prefactor     1.1670        12.237       -.14366E-05   -.87905E-03
   3  norm          20.249        1.9754        .60104E-07    .32671E-02
   4  Prefactor     .10076E-03    26.709       -.35080E-05** at limit **
   5  Prefactor     .10000E-03    4.4874       -.94097E-08** at limit **
   6  Prefactor     .10000E-03    16.306        .87958E-05** at limit **
   7  Prefactor     .10000E-03    3.3615       -.49736E-06** at limit **
   8  norm          4.8966        2.3705        .17033E-06    .26186E-04
   9  Prefactor     2.5600        1.0520       -.27835E-07   -.85689E-04
  10  norm          .10000E-03    2.6258       -.22074E-05** at limit **
  11  norm          .10915E-03    6540.6       -.83036E-04** at limit **
  12  Prefactor     .10078E-03    26.376       -.76409E-05** at limit **
  13  Prefactor     6.0031        9.3523        .10430E-05   -.53441E-02
  14  Prefactor     .10000E-03    10.824       -.10942E-05** at limit **
  15  Prefactor     30.615        3.1723       -.85442E-07   -.45784E-02
  16  Normalizat    .80791        .25183       -.23909E-05   -.18259E-04
  17  Prefactor     1.0093        .72218E-01    .14844E-06   -.42950E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.08446
  Prefactor  = 1.16699
  norm       = 20.2486
  Prefactor  = 0.000100764
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.89658
  Prefactor  = 2.56001
  norm       = 0.0001
  norm       = 0.000109146
  Prefactor  = 0.00010078
  Prefactor  = 6.00306
  Prefactor  = 0.0001
  Prefactor  = 30.6153
  Normalizat = 0.807909
  Prefactor  = 1.0093
 **********
 **   18 **HESSE 
 **********

 FCN=   10586.59     FROM HESSE     STATUS=OK           271 CALLS     1706 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0845        4.9268        .40691E-02   -1.5215    
   2  Prefactor     1.1670        12.295        .10621E-01   -1.5492    
   3  norm          20.249        9.3975        .22252E-02   -1.4808    
   4  Prefactor     .10076E-03    29.718        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.4013        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.9046        .64474E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.3605        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.8966        2.4175        .45443E-02   -1.5265    
   9  Prefactor     2.5600        11.054        .63769E-02   -1.5388    
  10  norm          .10000E-03    2.6186        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10915E-03    28.149        .18526       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10078E-03    29.368        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.0031        21.258        .40933E-02   -1.5218    
  14  Prefactor     .10000E-03    10.744        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     30.615        31.058        .18099E-02   -1.4601    
  16  Normalizat    .80791        .24266        .11630       -.99776    
  17  Prefactor     1.0093        .67519E-01    .30565E-01   -.92420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11719e-06
Minuit parameter uncertainties:
  1  4.92713
  2  7.57746
  3  9.39818
  4  0.0095371
  5  3.63313e-07
  6  7.59748e-05
  7  2.7427e-06
  8  2.4176
  9  10.6424
  10  1.2195e-05
  11  0.0321056
  12  0.00957879
  13  21.2847
  14  2.2169e-05
  15  31.0748
  16  0.242982
  17  0.067525
Done.

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

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  1.000e-04  1.219e-05  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.009e+00  6.753e-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:  8.079e-01  2.430e-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.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.09e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/695563/likelihoodResults_301017601_301276801_4FGL_J0338.5+1302_daily_bin238.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) = 10586.5924299
delta logL = -0.00181151091056

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10586.5906184
delta logL = -6.93999027135e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5277       1.0000          .0000       5.0000    
     3 'Normalizat'    .80780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0093       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=   10586.59     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      244 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    544.54        .16302E-02** at limit **
   2  alpha         1.3049        4.3234        .18402        .16804E-07
   3  Normalizat    .80791        .13862        .51582E-03    .77801E-04
   4  Prefactor     1.0093        .40560E-01    .13507E-03    .35784E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.30495
  Normalizat = 0.807909
  Prefactor  = 1.0093
 **********
 **   18 **HESSE 
 **********

 FCN=   10586.59     FROM HESSE     STATUS=OK            23 CALLS      267 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7291        .32604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3049        4.1986        .73610E-02   -.49840    
   3  Normalizat    .80791        .24610        .20633E-04   -.99776    
   4  Prefactor     1.0093        .72072E-01    .27015E-04   -.92420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05516e-10
Minuit parameter uncertainties:
  1  4.89887e-05
  2  189.698
  3  0.246444
  4  0.0720788
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/695563': 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) = 10586.5906176
delta logL = 7.12756445864e-07

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  1.000e-04  4.899e-05  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.305e+00  1.897e+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.009e+00  7.208e-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:  8.079e-01  2.464e-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/695563/cmap_HighResolution_301017601_301276801_4FGL_J0338.5+1302_daily_bin238.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.09e-05', job_status='DONE', photon_flux_upper_limit='2.60e-08', time_completed='2021-08-18 20:21:02.313930', job_id='695563', GAL2='1.01', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1629343262.31', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='7.13e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.54' WHERE bin_id='238' AND source_name='4FGL J0338.5+1302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 20:21:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 695563: <4FGL_J0338.5+1302_daily_bin238> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0338.5+1302_daily_bin238 54.6355 13.0419 301017601 301276801 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 :                                   819.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            922 sec.

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

