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


Performing analysis on: 4FGL_J0338.5+1302_daily_bin546
RA = 54.6355, Dec = 13.0419
tmin = 380851201, tmax = 381110401
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='701891', job_status='RUN', time_executed='2021-08-18 20:18:03.815426', time_epoch_executed='1629343083.82' WHERE source_name='4FGL J0338.5+1302' and cadence='daily' and bin_id='546'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/701891

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/701891/ft1_4FGL_J0338.5+1302_daily_bin546.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/701891/ft2_4FGL_J0338.5+1302_daily_bin546.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/701891/ft1_4FGL_J0338.5+1302_daily_bin546.fits outfile=/scratch/kocevski/701891/ft1_filteredMKT_4FGL_J0338.5+1302_daily_bin546.fits ra=54.6355 dec=13.0419 rad=12.0 tmin=380851201.0 tmax=381110401.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 8.51
user 3.25
sys 5.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/701891/ft1_filtered_4FGL_J0338.5+1302_daily_bin546.fits" evtable="EVENTS" scfile=/scratch/kocevski/701891/ft2_4FGL_J0338.5+1302_daily_bin546.fits sctable="SC_DATA" outfile=/scratch/kocevski/701891/ltcube_380851201_381110401_4FGL_J0338.5+1302_daily_bin546.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/701891/ft2_4FGL_J0338.5+1302_daily_bin546.fits
.....................!
real 17.84
user 11.86
sys 5.92

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/701891/ft1_filtered_4FGL_J0338.5+1302_daily_bin546.fits evtable="EVENTS" scfile=/scratch/kocevski/701891/ft2_4FGL_J0338.5+1302_daily_bin546.fits sctable="SC_DATA" expcube=/scratch/kocevski/701891/ltcube_380851201_381110401_4FGL_J0338.5+1302_daily_bin546.fits outfile=/scratch/kocevski/701891/expmap_380851201_381110401_4FGL_J0338.5+1302_daily_bin546.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/701891/ltcube_380851201_381110401_4FGL_J0338.5+1302_daily_bin546.fits
.....................!
real 196.87
user 185.22
sys 11.10

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/701891/ft1_filtered_4FGL_J0338.5+1302_daily_bin546.fits scfile=/scratch/kocevski/701891/ft2_4FGL_J0338.5+1302_daily_bin546.fits outfile=/scratch/kocevski/701891/cmap_380851201_381110401_4FGL_J0338.5+1302_daily_bin546.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 5.41
user 0.39
sys 4.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/701891/ft1_filtered_4FGL_J0338.5+1302_daily_bin546.fits scfile=/scratch/kocevski/701891/ft2_4FGL_J0338.5+1302_daily_bin546.fits outfile=/scratch/kocevski/701891/cmap_HighResolution_380851201_381110401_4FGL_J0338.5+1302_daily_bin546.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 5.47
user 0.38
sys 5.06

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .34271E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4706       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.5338       1.0000         .10000E-03   10000.    
     8 'norm      '    2.4991       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.471       1.0000         .10000E-03   10000.    
    10 'norm      '    10.327       1.0000         .10000E-03   10000.    
    11 'norm      '    65.163       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.440       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13083E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    40.572       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .75633       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .97822       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=   10244.92     FROM MIGRAD    STATUS=CONVERGED    347 CALLS     1411 TOTAL
                     EDM=   .99E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    11.598        .39725E-05** at limit **
   2  Prefactor     .10000E-03    2.5729       -.41965E-07** at limit **
   3  norm          .10000E-03    2.8128       -.92304E-07** at limit **
   4  Prefactor     .10000E-03    53.101        .15319E-05** at limit **
   5  Prefactor     .10000E-03    1.9638       -.66958E-07** at limit **
   6  Prefactor     2.4717        7.3979       -.34492E-05   -.57899E-04
   7  Prefactor     6.5324        16.815       -.65607E-06    .89107E-05
   8  norm          2.4978        2.2138       -.52943E-06    .93178E-04
   9  Prefactor     19.471        15.365       -.27991E-07   -.64253E-05
  10  norm          10.327        6.7567       -.63264E-08    .71413E-05
  11  norm          65.160        52.291        .84794E-07    .13012E-04
  12  Prefactor     .10000E-03    24.003       -.52137E-06** at limit **
  13  Prefactor     22.438        24.630       -.13409E-07    .82722E-05
  14  Prefactor     .10002E-03    48.620       -.67909E-05** at limit **
  15  Prefactor     40.551        28.197       -.19455E-05   -.44543E-04
  16  Normalizat    .75630        .24255       -.15385E-05   -.91102E-04
  17  Prefactor     .97823        .67124E-01    .19054E-06   -.46109E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100015
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.47166
  Prefactor  = 6.5324
  norm       = 2.49784
  Prefactor  = 19.4712
  norm       = 10.3272
  norm       = 65.16
  Prefactor  = 0.0001
  Prefactor  = 22.4385
  Prefactor  = 0.000100022
  Prefactor  = 40.5513
  Normalizat = 0.756304
  Prefactor  = 0.978226
 **********
 **   18 **HESSE 
 **********

 FCN=   10244.92     FROM HESSE     STATUS=OK           227 CALLS     1638 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    24.642        .33347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.5824        .15855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.8249        .16575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    52.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.9784        .13850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.4717        7.2425        .26014E-03   -1.5394    
   7  Prefactor     6.5324        16.771        .15700E-03   -1.5197    
   8  norm          2.4978        2.1608        .12582E-03   -1.5392    
   9  Prefactor     19.471        15.353        .90768E-04   -1.4825    
  10  norm          10.327        6.7594        .12468E-03   -1.5065    
  11  norm          65.160        52.269        .49715E-04   -1.4092    
  12  Prefactor     .10000E-03    23.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.438        24.610        .84557E-04   -1.4760    
  14  Prefactor     .10002E-03    69.802        .61489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     40.551        28.031        .62931E-04   -1.4434    
  16  Normalizat    .75630        .25287        .52096E-03   -1.0171    
  17  Prefactor     .97823        .71412E-01    .13319E-03   -.93459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.92623e-10
Minuit parameter uncertainties:
  1  0.00119825
  2  5.16427e-07
  3  8.12557e-07
  4  0.000321769
  5  4.11471e-07
  6  7.24506
  7  16.7832
  8  2.16088
  9  15.3557
  10  6.75989
  11  52.306
  12  0.000124277
  13  24.6207
  14  0.00245517
  15  28.0402
  16  0.253264
  17  0.0714189
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  9.782e-01  7.142e-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.563e-01  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.42
Ra Dec: 54.636 13.042
Photon Index (Fixed Index): 1.54 +/- 0.00
Photon Flux (Fixed Index): 2.07e-08 +/- 1.36e-08
Energy Flux (Fixed Index): 6.45e-05 +/- 4.22e-05

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) = 10243.7719019
delta logL = 1.14871363202

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10243.7709107
delta logL = 1.14970491232

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.2217       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3111       1.0000          .0000       5.0000    
     3 'Normalizat'    .75745       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97009       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=   10243.77     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      329 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.2231        5.7543        .13125E-03   -.10394E-05
   2  alpha         2.3115        .47987        .99390E-02    .52541E-03
   3  Normalizat    .75765        .24435        .52035E-03    .87392E-07
   4  Prefactor     .97001        .71121E-01    .13356E-03   -.17025E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.22311
  alpha      = 2.31149
  Normalizat = 0.757646
  Prefactor  = 0.970007
 **********
 **   18 **HESSE 
 **********

 FCN=   10243.77     FROM HESSE     STATUS=OK            25 CALLS      354 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.2231        5.3884        .52499E-05   -1.5170    
   2  alpha         2.3115        .44966        .19878E-02   -.75475E-01
   3  Normalizat    .75765        .24434        .20814E-04   -1.0166    
   4  Prefactor     .97001        .71142E-01    .53423E-05   -.93736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45596e-11
Minuit parameter uncertainties:
  1  5.38875
  2  0.45213
  3  0.244689
  4  0.071149
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/701891': 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) = 10243.7709089
delta logL = 1.14970670975

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  9.700e-01  7.115e-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.576e-01  2.447e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.72
Ra Dec: 54.636 13.042
Photon Index (Free Index): 2.31 +/- 0.45
Photon Flux (Free Index): 5.92e-08 +/- 4.10e-08
Energy Flux (Free Index): 4.03e-05 +/- 2.20e-05

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/701891/cmap_HighResolution_380851201_381110401_4FGL_J0338.5+1302_daily_bin546.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.07e-08', energy_flux2='4.03e-05', photon_flux_error='1.36e-08', dlogl='1.15e+00', energy_flux='6.45e-05', photon_flux2='5.92e-08', job_status='DONE', time_completed='2021-08-18 20:29:57.378633', photon_index_error2='0.45', photon_index2='2.31', ts='12.42', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='2.20e-05', EG='0.76', time_epoch_completed='1629343797.38', return_code='0', job_id='701891', GAL2='0.97', EG2='0.76', return_code2='0', energy_flux_error='4.22e-05', photon_flux_error2='4.10e-08', ts2='14.72', photon_index='1.54' WHERE bin_id='546' AND source_name='4FGL J0338.5+1302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 20:29:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 701891: <4FGL_J0338.5+1302_daily_bin546> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0338.5+1302_daily_bin546 54.6355 13.0419 380851201 381110401 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 :                                   789.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            865 sec.

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

