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


Performing analysis on: 4FGL_J0338.5+1302_daily_bin1408
RA = 54.6355, Dec = 13.0419
tmin = 604281601, tmax = 604540801
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='708231', job_status='RUN', time_executed='2021-08-18 20:36:30.692258', time_epoch_executed='1629344190.69' WHERE source_name='4FGL J0338.5+1302' and cadence='daily' and bin_id='1408'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708231

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708231/ft1_4FGL_J0338.5+1302_daily_bin1408.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708231/ft2_4FGL_J0338.5+1302_daily_bin1408.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708231/ft1_4FGL_J0338.5+1302_daily_bin1408.fits outfile=/scratch/kocevski/708231/ft1_filteredMKT_4FGL_J0338.5+1302_daily_bin1408.fits ra=54.6355 dec=13.0419 rad=12.0 tmin=604281601.0 tmax=604540801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.20
user 3.42
sys 0.71

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/708231/ft1_filtered_4FGL_J0338.5+1302_daily_bin1408.fits" evtable="EVENTS" scfile=/scratch/kocevski/708231/ft2_4FGL_J0338.5+1302_daily_bin1408.fits sctable="SC_DATA" outfile=/scratch/kocevski/708231/ltcube_604281601_604540801_4FGL_J0338.5+1302_daily_bin1408.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/708231/ft2_4FGL_J0338.5+1302_daily_bin1408.fits
.....................!
real 12.25
user 11.36
sys 0.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708231/ft1_filtered_4FGL_J0338.5+1302_daily_bin1408.fits evtable="EVENTS" scfile=/scratch/kocevski/708231/ft2_4FGL_J0338.5+1302_daily_bin1408.fits sctable="SC_DATA" expcube=/scratch/kocevski/708231/ltcube_604281601_604540801_4FGL_J0338.5+1302_daily_bin1408.fits outfile=/scratch/kocevski/708231/expmap_604281601_604540801_4FGL_J0338.5+1302_daily_bin1408.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/708231/ltcube_604281601_604540801_4FGL_J0338.5+1302_daily_bin1408.fits
.....................!
real 191.37
user 186.21
sys 4.74

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/708231/ft1_filtered_4FGL_J0338.5+1302_daily_bin1408.fits scfile=/scratch/kocevski/708231/ft2_4FGL_J0338.5+1302_daily_bin1408.fits outfile=/scratch/kocevski/708231/cmap_604281601_604540801_4FGL_J0338.5+1302_daily_bin1408.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.06
user 0.38
sys 0.66

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708231/ft1_filtered_4FGL_J0338.5+1302_daily_bin1408.fits scfile=/scratch/kocevski/708231/ft2_4FGL_J0338.5+1302_daily_bin1408.fits outfile=/scratch/kocevski/708231/cmap_HighResolution_604281601_604540801_4FGL_J0338.5+1302_daily_bin1408.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 0.98
user 0.38
sys 0.58

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.9117       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .46733       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.8652       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7655       1.0000         .10000E-03   10000.    
    10 'norm      '    .38124E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    61.525       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.920       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .95067       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98334       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=   10427.53     FROM MIGRAD    STATUS=CONVERGED    338 CALLS     1612 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5257       -.16842E-09** at limit **
   2  Prefactor     .10000E-03    2.8750       -.69059E-10** at limit **
   3  norm          .10000E-03    5.5697       -.65338E-09** at limit **
   4  Prefactor     .10000E-03    68.164       -.49801E-07** at limit **
   5  Prefactor     5.9119        5.2186        .75023E-08   -.67651E-03
   6  Prefactor     .46788        1.6118       -.20299E-06   -.98901E-04
   7  Prefactor     .10000E-03    4.3234        .21542E-09** at limit **
   8  norm          3.8654        2.4485        .53815E-08   -.12459E-04
   9  Prefactor     4.7655        6.3156       -.90053E-07   -.99808E-04
  10  norm          .10000E-03    3.7948       -.10794E-08** at limit **
  11  norm          .10000E-03    12.829       -.16961E-09** at limit **
  12  Prefactor     .10000E-03    67.146        .50334E-07** at limit **
  13  Prefactor     61.526        30.705        .24671E-07   -.49336E-03
  14  Prefactor     .10000E-03    7.7156        .38823E-09** at limit **
  15  Prefactor     19.919        31.312       -.37144E-07    .17132E-03
  16  Normalizat    .95066        .23037        .83466E-08    .13478E-05
  17  Prefactor     .98333        .65801E-01    .41515E-08    .92658E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 5.91188
  Prefactor  = 0.467879
  Prefactor  = 0.0001
  norm       = 3.86545
  Prefactor  = 4.76547
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 61.5264
  Prefactor  = 0.0001
  Prefactor  = 19.9192
  Normalizat = 0.950665
  Prefactor  = 0.983329
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5362        .12317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.8925        .16908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.6443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    68.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.9119        5.2178        .16516E-03   -1.5222    
   6  Prefactor     .46788        4.8441        .43222E-03   -1.5571    
   7  Prefactor     .10000E-03    4.3255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.8654        2.4380        .11942E-03   -1.5315    
   9  Prefactor     4.7655        7.2874        .92154E-03   -1.5271    
  10  norm          .10000E-03    4.0384        .71445E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    12.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    67.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     61.526        30.697        .51155E-04   -1.4138    
  14  Prefactor     .10000E-03    7.7452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.919        31.308        .89740E-04   -1.4815    
  16  Normalizat    .95066        .24903        .47469E-03   -.94702    
  17  Prefactor     .98333        .71768E-01    .13607E-03   -.93287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.88215e-10
Minuit parameter uncertainties:
  1  1.42848e-08
  2  1.71464e-07
  3  7.6681e-07
  4  0.00112647
  5  5.21822
  6  3.01095
  7  5.1113e-07
  8  2.43811
  9  7.28873
  10  2.92185e-06
  11  3.49525e-07
  12  0.00112517
  13  30.7048
  14  1.32217e-06
  15  31.3342
  16  0.249338
  17  0.0717747
Done.

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

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  1.000e-04  2.922e-06  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.833e-01  7.177e-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:  9.507e-01  2.493e-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: 3.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/708231/likelihoodResults_604281601_604540801_4FGL_J0338.5+1302_daily_bin1408.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) = 10427.5263877
delta logL = -9.75504699454e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10426.8078406
delta logL = 0.718449507787

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .68426       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2102       1.0000          .0000       5.0000    
     3 'Normalizat'    .93135       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97679       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=   10426.81     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      290 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .68581        9.2886        .12001E-01    .19943E-02
   2  alpha         3.2101        1.9249        .19446        .16029E-03
   3  Normalizat    .93134        .54842E-01    .10804        .43241E-04
   4  Prefactor     .97678        .15631E-01    .30868E-01   -.10148E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.685811
  alpha      = 3.21009
  Normalizat = 0.931341
  Prefactor  = 0.976779
 **********
 **   18 **HESSE 
 **********

 FCN=   10426.81     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      323 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .68581        28.724        .76515E-04   -1.5542    
   2  alpha         3.2101        4.0524        .11694E-01    .28800    
   3  Normalizat    .93134        .28196        .47895E-03   -.95367    
   4  Prefactor     .97678        .72095E-01    .13640E-03   -.93508    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.93833e-06
Minuit parameter uncertainties:
  1  8.88075
  2  5.15406
  3  0.28241
  4  0.0721017
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708231': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10426.8078384
delta logL = 0.718451738507

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  6.858e-01  8.881e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  3.210e+00  5.154e+00  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.768e-01  7.210e-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:  9.313e-01  2.824e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.44
Ra Dec: 54.636 13.042
Photon Index (Free Index): 3.21 +/- 5.15
Photon Flux (Free Index): 5.91e-08 +/- 1.18e-07
Energy Flux (Free Index): 1.54e-05 +/- 2.83e-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/708231/cmap_HighResolution_604281601_604540801_4FGL_J0338.5+1302_daily_bin1408.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-04', comment='SUCCESS', energy_flux2='1.54e-05', dlogl='7.18e-01', photon_flux2='5.91e-08', job_status='DONE', time_completed='2021-08-18 20:49:00.085209', photon_index_error2='5.15', photon_index2='3.21', ts='-0.00', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='3.36e-08', energy_flux_error2='2.83e-05', EG='0.95', time_epoch_completed='1629344940.09', return_code='0', job_id='708231', GAL2='0.98', EG2='0.93', return_code2='102', photon_flux_error2='1.18e-07', ts2='1.44', photon_index='1.54' WHERE bin_id='1408' AND source_name='4FGL J0338.5+1302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 20:49:00 PDT 2021

708316', GAL2='0.98', EG2='0.93', return_code2='102', photon_flux_error2='1.18e-07', ts2='1.44', photon_index='1.54' WHERE bin_id='1408' AND source_name='4FGL J0338.5+1302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 20:48:48 PDT 2021


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

Job <4FGL_J0338.5+1302_daily_bin1408> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Aug 18 20:33:40 2021
Job was executed on host(s) <bullet0009>, 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:48:49 2021
Results reported at Wed Aug 18 20:48:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0338.5+1302_daily_bin1408 54.6355 13.0419 604281601 604540801 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 :                                   771.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            909 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 708231: <4FGL_J0338.5+1302_daily_bin1408> in cluster <slac> Done

Job <4FGL_J0338.5+1302_daily_bin1408> 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) <bullet0224>, 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:00 2021
Results reported at Wed Aug 18 20:49:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0338.5+1302_daily_bin1408 54.6355 13.0419 604281601 604540801 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 :                                   759.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            924 sec.

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

