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


Performing analysis on: 4FGL_J0338.5+1302_daily_bin347
RA = 54.6355, Dec = 13.0419
tmin = 329270401, tmax = 329529601
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='700465', job_status='RUN', time_executed='2021-08-18 20:12:57.873574', time_epoch_executed='1629342777.87' WHERE source_name='4FGL J0338.5+1302' and cadence='daily' and bin_id='347'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/700465

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/700465/ft1_4FGL_J0338.5+1302_daily_bin347.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/700465/ft2_4FGL_J0338.5+1302_daily_bin347.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/700465/ft1_4FGL_J0338.5+1302_daily_bin347.fits outfile=/scratch/kocevski/700465/ft1_filteredMKT_4FGL_J0338.5+1302_daily_bin347.fits ra=54.6355 dec=13.0419 rad=12.0 tmin=329270401.0 tmax=329529601.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 3.64
user 3.39
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/700465/ft1_filtered_4FGL_J0338.5+1302_daily_bin347.fits" evtable="EVENTS" scfile=/scratch/kocevski/700465/ft2_4FGL_J0338.5+1302_daily_bin347.fits sctable="SC_DATA" outfile=/scratch/kocevski/700465/ltcube_329270401_329529601_4FGL_J0338.5+1302_daily_bin347.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/700465/ft2_4FGL_J0338.5+1302_daily_bin347.fits
.....................!
real 15.13
user 14.73
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/700465/ft1_filtered_4FGL_J0338.5+1302_daily_bin347.fits evtable="EVENTS" scfile=/scratch/kocevski/700465/ft2_4FGL_J0338.5+1302_daily_bin347.fits sctable="SC_DATA" expcube=/scratch/kocevski/700465/ltcube_329270401_329529601_4FGL_J0338.5+1302_daily_bin347.fits outfile=/scratch/kocevski/700465/expmap_329270401_329529601_4FGL_J0338.5+1302_daily_bin347.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/700465/ltcube_329270401_329529601_4FGL_J0338.5+1302_daily_bin347.fits
.....................!
real 190.68
user 185.24
sys 5.02

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/700465/ft1_filtered_4FGL_J0338.5+1302_daily_bin347.fits scfile=/scratch/kocevski/700465/ft2_4FGL_J0338.5+1302_daily_bin347.fits outfile=/scratch/kocevski/700465/cmap_329270401_329529601_4FGL_J0338.5+1302_daily_bin347.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 0.60
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/700465/ft1_filtered_4FGL_J0338.5+1302_daily_bin347.fits scfile=/scratch/kocevski/700465/ft2_4FGL_J0338.5+1302_daily_bin347.fits outfile=/scratch/kocevski/700465/cmap_HighResolution_329270401_329529601_4FGL_J0338.5+1302_daily_bin347.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10859E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.3478       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0344       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4229       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.4157       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.310       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    122.95       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9931       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.856       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0277       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0394       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=   10827.52     FROM MIGRAD    STATUS=CONVERGED    326 CALLS     1586 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.7875       -.11665E-07** at limit **
   2  Prefactor     .10000E-03    1.6156       -.81883E-08** at limit **
   3  norm          3.3484        5.5280       -.12830E-05   -.25200E-03
   4  Prefactor     .10000E-03    68.467        .23680E-06** at limit **
   5  Prefactor     4.0347        5.4093       -.14961E-05   -.20618E-03
   6  Prefactor     3.4226        5.9895       -.12414E-05   -.33828E-03
   7  Prefactor     .10000E-03    3.9657       -.35402E-07** at limit **
   8  norm          3.4157        2.3272       -.11267E-06   -.52812E-03
   9  Prefactor     20.310        15.320       -.53631E-06   -.32264E-03
  10  norm          .10000E-03    3.5793       -.45565E-07** at limit **
  11  norm          122.95        67.482        .25385E-07   -.74845E-05
  12  Prefactor     4.9818        84.450       -.31984E-04    .97927E-04
  13  Prefactor     24.855        31.077       -.12650E-05    .12679E-04
  14  Prefactor     .10000E-03    6.5797        .98562E-07** at limit **
  15  Prefactor     .10000E-03    39.182        .27824E-07** at limit **
  16  Normalizat    1.0277        .24167        .25845E-05    .12630E-04
  17  Prefactor     1.0394        .68286E-01    .18337E-06    .13097E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.34836
  Prefactor  = 0.0001
  Prefactor  = 4.03473
  Prefactor  = 3.42261
  Prefactor  = 0.0001
  norm       = 3.41569
  Prefactor  = 20.3096
  norm       = 0.0001
  norm       = 122.955
  Prefactor  = 4.9818
  Prefactor  = 24.8547
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.02768
  Prefactor  = 1.03943
 **********
 **   18 **HESSE 
 **********

 FCN=   10827.52     FROM HESSE     STATUS=OK           225 CALLS     1811 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.6828        .27055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.6171        .12917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.3484        5.5782        .22119E-03   -1.5342    
   4  Prefactor     .10000E-03    68.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.0347        5.4735        .20076E-03   -1.5306    
   6  Prefactor     3.4226        6.0461        .21864E-03   -1.5338    
   7  Prefactor     .10000E-03    3.9669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.4157        2.3184        .12336E-03   -1.5338    
   9  Prefactor     20.310        15.429        .44438E-03   -1.4806    
  10  norm          .10000E-03    3.5954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          122.95        67.474        .36298E-04   -1.3486    
  12  Prefactor     4.9818        82.098        .17997E-03   -1.5262    
  13  Prefactor     24.855        31.095        .80348E-04   -1.4710    
  14  Prefactor     .10000E-03    6.5992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    39.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0277        .26722        .49036E-03   -.92109    
  17  Prefactor     1.0394        .76422E-01    .14130E-03   -.91427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.63859e-10
Minuit parameter uncertainties:
  1  1.26072e-05
  2  3.86359e-07
  3  5.57905
  4  2.0579e-05
  5  5.47418
  6  6.04718
  7  3.22256e-07
  8  2.31844
  9  15.4316
  10  1.75282e-06
  11  67.516
  12  40.5126
  13  31.1156
  14  2.55498e-05
  15  6.01763e-06
  16  0.267568
  17  0.0764301
Done.

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

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  1.000e-04  1.753e-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:  1.039e+00  7.643e-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:  1.028e+00  2.676e-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.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/700465/likelihoodResults_329270401_329529601_4FGL_J0338.5+1302_daily_bin347.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) = 10827.5165215
delta logL = -0.0013250512402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10827.5151955
delta logL = 8.6122599896e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5791       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0276       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0394       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=   10827.52     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      239 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    6.3373        .18142E-02** at limit **
   2  alpha         1.6282        3.3141        .50000       -.60328E-04
   3  Normalizat    1.0277        .25879        .49036E-03    .26546E-03
   4  Prefactor     1.0394        .75752E-01    .14130E-03    .25482E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100016
  alpha      = 1.62822
  Normalizat = 1.02769
  Prefactor  = 1.03942
 **********
 **   18 **HESSE 
 **********

 FCN=   10827.52     FROM HESSE     STATUS=OK            29 CALLS      268 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    4.3357        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6282        3.2872        .50000       -.35620    
   3  Normalizat    1.0277        .25888        .19614E-04   -.92108    
   4  Prefactor     1.0394        .75779E-01    .28260E-04   -.91427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.90446e-09
Minuit parameter uncertainties:
  1  0.000525464
  2  2.35893
  3  0.2592
  4  0.0757871
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/700465': 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) = 10827.5151942
delta logL = 2.23344068218e-06

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  1.000e-04  5.255e-04  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.628e+00  2.359e+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:  1.039e+00  7.579e-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:  1.028e+00  2.592e-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/700465/cmap_HighResolution_329270401_329529601_4FGL_J0338.5+1302_daily_bin347.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.67e-05', job_status='DONE', photon_flux_upper_limit='3.11e-08', time_completed='2021-08-18 20:25:33.271810', job_id='700465', GAL2='1.04', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1629343533.27', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.23e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.54' WHERE bin_id='347' AND source_name='4FGL J0338.5+1302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 20:25:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 700465: <4FGL_J0338.5+1302_daily_bin347> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0338.5+1302_daily_bin347 54.6355 13.0419 329270401 329529601 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 :                                   750.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             374.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            781 sec.

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

