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


Performing analysis on: 4FGL_J0338.5+1302_daily_bin1479
RA = 54.6355, Dec = 13.0419
tmin = 622684801, tmax = 622944001
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='710984', job_status='RUN', time_executed='2021-08-18 20:47:18.287595', time_epoch_executed='1629344838.29' WHERE source_name='4FGL J0338.5+1302' and cadence='daily' and bin_id='1479'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/710984

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/710984/ft1_4FGL_J0338.5+1302_daily_bin1479.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/710984/ft2_4FGL_J0338.5+1302_daily_bin1479.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/710984/ft1_4FGL_J0338.5+1302_daily_bin1479.fits outfile=/scratch/kocevski/710984/ft1_filteredMKT_4FGL_J0338.5+1302_daily_bin1479.fits ra=54.6355 dec=13.0419 rad=12.0 tmin=622684801.0 tmax=622944001.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 5.94
user 4.94
sys 0.94

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/710984/ft2_4FGL_J0338.5+1302_daily_bin1479.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/710984/ft1_filteredMKT_4FGL_J0338.5+1302_daily_bin1479.fits evtable="EVENTS" outfile="/scratch/kocevski/710984/ft1_filtered_4FGL_J0338.5+1302_daily_bin1479.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.26
user 0.31
sys 0.83

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/710984/ft1_filtered_4FGL_J0338.5+1302_daily_bin1479.fits" evtable="EVENTS" scfile=/scratch/kocevski/710984/ft2_4FGL_J0338.5+1302_daily_bin1479.fits sctable="SC_DATA" outfile=/scratch/kocevski/710984/ltcube_622684801_622944001_4FGL_J0338.5+1302_daily_bin1479.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/710984/ft2_4FGL_J0338.5+1302_daily_bin1479.fits
.....................!
real 14.24
user 12.65
sys 1.14

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/710984/ft1_filtered_4FGL_J0338.5+1302_daily_bin1479.fits evtable="EVENTS" scfile=/scratch/kocevski/710984/ft2_4FGL_J0338.5+1302_daily_bin1479.fits sctable="SC_DATA" expcube=/scratch/kocevski/710984/ltcube_622684801_622944001_4FGL_J0338.5+1302_daily_bin1479.fits outfile=/scratch/kocevski/710984/expmap_622684801_622944001_4FGL_J0338.5+1302_daily_bin1479.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/710984/ltcube_622684801_622944001_4FGL_J0338.5+1302_daily_bin1479.fits
.....................!
real 192.87
user 186.23
sys 5.84

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/710984/ft1_filtered_4FGL_J0338.5+1302_daily_bin1479.fits scfile=/scratch/kocevski/710984/ft2_4FGL_J0338.5+1302_daily_bin1479.fits outfile=/scratch/kocevski/710984/cmap_622684801_622944001_4FGL_J0338.5+1302_daily_bin1479.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.27
user 0.38
sys 0.85

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/710984/ft1_filtered_4FGL_J0338.5+1302_daily_bin1479.fits scfile=/scratch/kocevski/710984/ft2_4FGL_J0338.5+1302_daily_bin1479.fits outfile=/scratch/kocevski/710984/cmap_HighResolution_622684801_622944001_4FGL_J0338.5+1302_daily_bin1479.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.28
user 0.39
sys 0.85

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.3505       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2991       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12834E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.667       1.0000         .10000E-03   10000.    
     8 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    71.681       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9049       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.704       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    44.429       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .60963       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0535       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=   9859.228     FROM MIGRAD    STATUS=CONVERGED    347 CALLS     1633 TOTAL
                     EDM=   .91E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.1446        .17123E-07** at limit **
   2  Prefactor     .10000E-03    2.0939        .34886E-08** at limit **
   3  norm          2.3505        4.9699       -.47820E-06   -.11149E-03
   4  Prefactor     .10000E-03    215.80       -.26100E-06** at limit **
   5  Prefactor     2.2991        1.4179        .17005E-06   -.14775E-02
   6  Prefactor     .10000E-03    2.8166       -.55260E-07** at limit **
   7  Prefactor     10.666        11.926        .20230E-05    .48101E-04
   8  norm          .10000E-03    .83327       -.20844E-08** at limit **
   9  Prefactor     .10000E-03    11.070       -.13759E-07** at limit **
  10  norm          .10000E-03    2.2042        .50971E-08** at limit **
  11  norm          71.685        68.294        .32381E-05    .15853E-04
  12  Prefactor     2.9137        116.13        .50912E-05    .81453E-06
  13  Prefactor     18.704        25.525        .13292E-05    .12279E-04
  14  Prefactor     .10000E-03    12.731        .99943E-07** at limit **
  15  Prefactor     44.442        32.628       -.29087E-06   -.61746E-05
  16  Normalizat    .60958        .25545       -.11633E-05   -.21211E-04
  17  Prefactor     1.0535        .72869E-01    .31771E-07    .15899E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.35051
  Prefactor  = 0.0001
  Prefactor  = 2.29906
  Prefactor  = 0.0001
  Prefactor  = 10.6658
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 71.6851
  Prefactor  = 2.9137
  Prefactor  = 18.7035
  Prefactor  = 0.0001
  Prefactor  = 44.4416
  Normalizat = 0.609578
  Prefactor  = 1.05347
 **********
 **   18 **HESSE 
 **********

 FCN=   9859.228     FROM HESSE     STATUS=OK           225 CALLS     1858 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.2001        .17190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.0971        .14032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.3505        4.9415        .26737E-03   -1.5401    
   4  Prefactor     .10000E-03    216.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.2991        3.4441        .11008E-02   -1.5405    
   6  Prefactor     .10000E-03    14.028        .31758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.666        11.931        .12267E-03   -1.5055    
   8  norm          .10000E-03    3.2934        .17223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.2080        .14397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          71.685        68.290        .47417E-04   -1.4013    
  12  Prefactor     2.9137        115.97        .23840E-03   -1.5367    
  13  Prefactor     18.704        25.500        .92610E-04   -1.4843    
  14  Prefactor     .10000E-03    12.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     44.442        32.565        .60148E-04   -1.4374    
  16  Normalizat    .60958        .25793        .57521E-03   -1.0758    
  17  Prefactor     1.0535        .75321E-01    .13089E-03   -.90968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11699e-09
Minuit parameter uncertainties:
  1  4.00457e-06
  2  6.36775e-07
  3  4.94233
  4  5.17265e-05
  5  3.44439
  6  3.56042e-06
  7  11.934
  8  3.01018e-06
  9  7.50451e-06
  10  1.80036e-07
  11  68.3652
  12  36.8411
  13  25.5144
  14  1.96581e-06
  15  32.5777
  16  0.258439
  17  0.0753284
Done.

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

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  1.000e-04  1.800e-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.053e+00  7.533e-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:  6.096e-01  2.584e-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.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.39e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/710984/likelihoodResults_622684801_622944001_4FGL_J0338.5+1302_daily_bin1479.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) = 9859.22982596
delta logL = -0.00214243167102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9859.22768351
delta logL = 1.66473910213e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5311       1.0000          .0000       5.0000    
     3 'Normalizat'    .60958       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0535       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=   9859.228     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      244 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    449.28        .14410E-02** at limit **
   2  alpha         1.4158        2.7449        .18386        .20282E-07
   3  Normalizat    .60958        .14189        .57521E-03    .10554E-04
   4  Prefactor     1.0535        .41987E-01    .13089E-03    .47251E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.4158
  Normalizat = 0.609579
  Prefactor  = 1.05347
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2342        .28820E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4158        4.2091        .73542E-02   -.44857    
   3  Normalizat    .60958        .25372        .23008E-04   -1.0758    
   4  Prefactor     1.0535        .75171E-01    .52355E-05   -.90968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22713e-12
Minuit parameter uncertainties:
  1  4.37312e-06
  2  166.123
  3  0.254208
  4  0.0751782
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/710984': 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) = 9859.22768327
delta logL = 2.61728928308e-07

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  1.000e-04  4.373e-06  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.416e+00  1.661e+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.053e+00  7.518e-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:  6.096e-01  2.542e-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/710984/cmap_HighResolution_622684801_622944001_4FGL_J0338.5+1302_daily_bin1479.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.39e-05', job_status='DONE', photon_flux_upper_limit='2.37e-08', time_completed='2021-08-18 20:59:29.466881', job_id='710984', GAL2='1.05', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1629345569.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.54' WHERE bin_id='1479' AND source_name='4FGL J0338.5+1302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 20:59:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 710984: <4FGL_J0338.5+1302_daily_bin1479> in cluster <slac> Done

Job <4FGL_J0338.5+1302_daily_bin1479> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Aug 18 20:43:10 2021
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 20:43:36 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:43:36 2021
Terminated at Wed Aug 18 20:59:30 2021
Results reported at Wed Aug 18 20:59:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0338.5+1302_daily_bin1479 54.6355 13.0419 622684801 622944001 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 :                                   735.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            980 sec.

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

