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


Performing analysis on: 4FGL_J0338.5+1302_daily_bin1410
RA = 54.6355, Dec = 13.0419
tmin = 604800001, tmax = 605059201
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 sDone.


Performing analysis on: 4FGL_J0338.5+1302_daily_bin1410
RA = 54.6355, Dec = 13.0419
tmin = 604800001, tmax = 605059201
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='708236', job_status='RUN', time_executed='2021-08-18 20:36:10.455644', time_epoch_executed='1629344170.46' WHERE source_name='4FGL J0338.5+1302' and cadence='daily' and bin_id='1410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708236

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708236/ft1_4FGL_J0338.5+1302_daily_bin1410.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708236/ft2_4FGL_J0338.5+1302_daily_bin1410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708236/ft1_4FGL_J0338.5+1302_daily_bin1410.fits outfile=/scratch/kocevski/708236/ft1_filteredMKT_4FGL_J0338.5+1302_daily_bin1410.fits ra=54.6355 dec=13.0419 rad=12.0 tmin=604800001.0 tmax=605059201.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 10.95
user 4.85
sys 5.88

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/708236/ft1_filtered_4FGL_J0338.5+1302_daily_bin1410.fits" evtable="EVENTS" scfile=/scratch/kocevski/708236/ft2_4FGL_J0338.5+1302_daily_bin1410.fits sctable="SC_DATA" outfile=/scratch/kocevski/708236/ltcube_604800001_605059201_4FGL_J0338.5+1302_daily_bin1410.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/708236/ft2_4FGL_J0338.5+1302_daily_bin1410.fits
.....................!
real 21.17
user 14.36
sys 6.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708236/ft1_filtered_4FGL_J0338.5+1302_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/708236/ft2_4FGL_J0338.5+1302_daily_bin1410.fits sctable="SC_DATA" expcube=/scratch/kocevski/708236/ltcube_604800001_605059201_4FGL_J0338.5+1302_daily_bin1410.fits outfile=/scratch/kocevski/708236/expmap_604800001_605059201_4FGL_J0338.5+1302_daily_bin1410.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/708236/ltcube_604800001_605059201_4FGL_J0338.5+1302_daily_bin1410.fits
.....................!
real 201.15
user 187.47
sys 12.98

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/708236/ft1_filtered_4FGL_J0338.5+1302_daily_bin1410.fits scfile=/scratch/kocevski/708236/ft2_4FGL_J0338.5+1302_daily_bin1410.fits outfile=/scratch/kocevski/708236/cmap_604800001_605059201_4FGL_J0338.5+1302_daily_bin1410.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 6.05
user 0.38
sys 5.63

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708236/ft1_filtered_4FGL_J0338.5+1302_daily_bin1410.fits scfile=/scratch/kocevski/708236/ft2_4FGL_J0338.5+1302_daily_bin1410.fits outfile=/scratch/kocevski/708236/cmap_HighResolution_604800001_605059201_4FGL_J0338.5+1302_daily_bin1410.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 6.06
user 0.38
sys 5.66

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    24.480       1.0000         .10000E-03   10000.    
     3 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14074E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.7547       1.0000         .10000E-03   10000.    
     8 'norm      '    2.1121       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.949       1.0000         .10000E-03   10000.    
    10 'norm      '    3.3953       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    153.05       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8278       1.0000         .10000E-03   10000.    
    15 'Prefactor '    58.417       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .68948       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0736       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10339.85     FROM MIGRAD    STATUS=CONVERGED    335 CALLS     1619 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.1882         .0000    ** at limit **
   2  Prefactor     24.480        10.592         .0000       -.62762E-04
   3  norm          .10000E-03    3.9482         .0000    ** at limit **
   4  Prefactor     .10000E-03    28.311         .0000    ** at limit **
   5  Prefactor     .10000E-03    2.5690         .0000    ** at limit **
   6  Prefactor     .10000E-03    1.8407         .0000    ** at limit **
   7  Prefactor     6.7547        6.9420         .0000       -.28780E-03
   8  norm          2.1123        2.0190         .0000        .84324E-03
   9  Prefactor     17.949        18.358         .0000        .87635E-04
  10  norm          3.3953        3.3623         .0000       -.35594E-03
  11  norm          .10000E-03    17.642         .0000    ** at limit **
  12  Prefactor     .10000E-03    61.668         .0000    ** at limit **
  13  Prefactor     153.05        40.949         .0000       -.12877E-02
  14  Prefactor     1.8239        47.541         .0000        .24419E-02
  15  Prefactor     58.416        46.957         .0000        .36043E-03
  16  Normalizat    .68947        .26213         .0000        .58684E-04
  17  Prefactor     1.0736        .72395E-01     .0000       -.23783E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 24.4799
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.75466
  norm       = 2.11229
  Prefactor  = 17.9488
  norm       = 3.39533
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 153.055
  Prefactor  = 1.82391
  Prefactor  = 58.4158
  Normalizat = 0.689473
  Prefactor  = 1.07357
 **********
 **   18 **HESSE 
 **********

 FCN=   10339.85     FROM HESSE     STATUS=OK           223 CALLS     1842 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.1919        .10824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     24.480        10.585        .80962E-04   -1.4718    
   3  norm          .10000E-03    4.0028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.015        .31407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.8504        .13468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.7547        6.9448        .15439E-03   -1.5188    
   8  norm          2.1123        2.0020        .13361E-03   -1.5417    
   9  Prefactor     17.949        18.329        .94536E-04   -1.4860    
  10  norm          3.3953        3.3704        .18121E-03   -1.5339    
  11  norm          .10000E-03    17.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    61.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     153.05        40.868        .32583E-04   -1.3227    
  14  Prefactor     1.8239        46.850        .15437E-02   -1.5438    
  15  Prefactor     58.416        46.515        .52490E-04   -1.4178    
  16  Normalizat    .68947        .27159        .58137E-03   -1.0431    
  17  Prefactor     1.0736        .76692E-01    .13809E-03   -.90316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44605e-09
Minuit parameter uncertainties:
  1  2.87828e-07
  2  10.5856
  3  5.15555e-07
  4  4.69548e-06
  5  2.24562e-06
  6  3.84611e-07
  7  6.94566
  8  2.00209
  9  18.3347
  10  3.37056
  11  2.73452e-08
  12  7.24932e-06
  13  40.8753
  14  18.5034
  15  46.5435
  16  0.272122
  17  0.0766999
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.074e+00  7.670e-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.895e-01  2.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.72
Ra Dec: 54.636 13.042
Photon Index (Fixed Index): 1.54 +/- 0.00
Photon Flux (Fixed Index): 6.82e-09 +/- 6.77e-09
Energy Flux (Fixed Index): 2.12e-05 +/- 2.11e-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) = 10339.5042266
delta logL = 0.344461896711

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10339.4977921
delta logL = 0.350896399425

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9978       1.0000         .10000E-03   10000.    
     2 'alpha     '    .86778       1.0000          .0000       5.0000    
     3 'Normalizat'    .68829       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0744       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.

 FCN=   10339.50     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      197 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9990        3.0516        .58611E-02   -.38056E-03
   2  alpha         .86636        .68654        .50000       -.27714E-04
   3  Normalizat    .68823        .24642        .13110        .64182E-04
   4  Prefactor     1.0744        .72156E-01    .38651E-01   -.18408E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.99898
  alpha      = 0.866355
  Normalizat = 0.688233
  Prefactor  = 1.07444
 **********
 **   18 **HESSE 
 **********

 FCN=   10339.50     FROM HESSE     STATUS=OK            31 CALLS      228 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9990        3.4951        .17240E-03   -1.5362    
   2  alpha         .86636        .78000        .36304E-02   -.71214    
   3  Normalizat    .68823        .25986        .58183E-03   -1.0436    
   4  Prefactor     1.0744        .76459E-01    .13804E-03   -.90288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.74425e-11
Minuit parameter uncertainties:
  1  3.49538
  2  0.803969
  3  0.260326
  4  0.0764669
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708236': 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) = 10339.4977895
delta logL = 0.350899006982

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  2.999e+00  3.495e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  8.664e-01  8.040e-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:  1.074e+00  7.647e-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.882e-01  2.603e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.42
Ra Dec: 54.636 13.042
Photon Index (Free Index): 0.87 +/- 0.80
Photon Flux (Free Index): 4.38e-09 +/- 4.67e-09
Energy Flux (Free Index): 5.29e-05 +/- 7.58e-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/708236/cmap_HighResolution_604800001_605059201_4FGL_J0338.5+1302_daily_bin1410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.82e-09', energy_flux2='5.29e-05', photon_flux_error='6.77e-09', dlogl='3.51e-01', energy_flux='2.12e-05', photon_flux2='4.38e-09', job_status='DONE', time_completed='2021-08-18 20:49:05.010393', photon_index_error2='0.80', photon_index2='0.87', ts='6.72', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='7.58e-05', EG='0.69', time_epoch_completed='1629344945.01', return_code='0', job_id='708236', GAL2='1.07', EG2='0.69', return_code2='0', energy_flux_error='2.11e-05', photon_flux_error2='4.67e-09', ts2='7.42', photon_index='1.54' WHERE bin_id='1410' AND source_name='4FGL J0338.5+1302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 20:49:05 PDT 2021

slac> at Wed Aug 18 20:33:40 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 20:33:53 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:33:53 2021
Terminated at Wed Aug 18 20:46:25 2021
Results reported at Wed Aug 18 20:46:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0338.5+1302_daily_bin1410 54.6355 13.0419 604800001 605059201 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 :                                   542.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            765 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 708236: <4FGL_J0338.5+1302_daily_bin1410> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0338.5+1302_daily_bin1410 54.6355 13.0419 604800001 605059201 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 :                                   851.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            930 sec.

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

