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


Performing analysis on: 4FGL_J0338.5+1302_daily_bin990
RA = 54.6355, Dec = 13.0419
tmin = 495936001, tmax = 496195201
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='706372', job_status='RUN', time_executed='2021-08-18 20:31:06.164187', time_epoch_executed='1629343866.16' WHERE source_name='4FGL J0338.5+1302' and cadence='daily' and bin_id='990'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706372

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706372/ft1_4FGL_J0338.5+1302_daily_bin990.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706372/ft2_4FGL_J0338.5+1302_daily_bin990.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706372/ft1_4FGL_J0338.5+1302_daily_bin990.fits outfile=/scratch/kocevski/706372/ft1_filteredMKT_4FGL_J0338.5+1302_daily_bin990.fits ra=54.6355 dec=13.0419 rad=12.0 tmin=495936001.0 tmax=496195201.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 9.18
user 3.32
sys 5.69

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/706372/ft1_filtered_4FGL_J0338.5+1302_daily_bin990.fits" evtable="EVENTS" scfile=/scratch/kocevski/706372/ft2_4FGL_J0338.5+1302_daily_bin990.fits sctable="SC_DATA" outfile=/scratch/kocevski/706372/ltcube_495936001_496195201_4FGL_J0338.5+1302_daily_bin990.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/706372/ft2_4FGL_J0338.5+1302_daily_bin990.fits
.....................!
real 18.56
user 11.64
sys 6.85

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706372/ft1_filtered_4FGL_J0338.5+1302_daily_bin990.fits evtable="EVENTS" scfile=/scratch/kocevski/706372/ft2_4FGL_J0338.5+1302_daily_bin990.fits sctable="SC_DATA" expcube=/scratch/kocevski/706372/ltcube_495936001_496195201_4FGL_J0338.5+1302_daily_bin990.fits outfile=/scratch/kocevski/706372/expmap_495936001_496195201_4FGL_J0338.5+1302_daily_bin990.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/706372/ltcube_495936001_496195201_4FGL_J0338.5+1302_daily_bin990.fits
.....................!
real 197.51
user 185.31
sys 11.71

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/706372/ft1_filtered_4FGL_J0338.5+1302_daily_bin990.fits scfile=/scratch/kocevski/706372/ft2_4FGL_J0338.5+1302_daily_bin990.fits outfile=/scratch/kocevski/706372/cmap_495936001_496195201_4FGL_J0338.5+1302_daily_bin990.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.92
user 0.36
sys 5.50

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/706372/ft1_filtered_4FGL_J0338.5+1302_daily_bin990.fits scfile=/scratch/kocevski/706372/ft2_4FGL_J0338.5+1302_daily_bin990.fits outfile=/scratch/kocevski/706372/cmap_HighResolution_495936001_496195201_4FGL_J0338.5+1302_daily_bin990.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.00
user 0.39
sys 5.54

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.7037       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11837E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .70800E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.7625       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.9658       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.4171       1.0000         .10000E-03   10000.    
    11 'norm      '    26.074       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11201E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10389E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13863       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.836       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.4834       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .91647       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13608.32     FROM MIGRAD    STATUS=CONVERGED     99 CALLS     1385 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.1291       -.72207E-06** at limit **
   2  Prefactor     .10000E-03    4.0486       -.50008E-06** at limit **
   3  norm          3.7094        7.4277        .15398E-05   -.25110E-02
   4  Prefactor     .10009E-03    45.830        .13723E-04** at limit **
   5  Prefactor     .10000E-03    8.4203       -.29895E-05** at limit **
   6  Prefactor     9.7594        2.4100       -.44001E-06   -.15852E-01
   7  Prefactor     .10000E-03    3.0727        .18727E-05** at limit **
   8  norm          1.9652        2.3493        .76313E-07    .85547E-03
   9  Prefactor     .10000E-03    3.4334       -.53639E-05** at limit **
  10  norm          3.4148        3.4063        .10633E-05    .52511E-04
  11  norm          26.093        1.8496       -.92130E-07   -.14507E-02
  12  Prefactor     .10000E-03    13.404        .22165E-05** at limit **
  13  Prefactor     .10005E-03    50.297        .31930E-04** at limit **
  14  Prefactor     .10003E-03    627.79        .40914E-04** at limit **
  15  Prefactor     19.836        2.8136        .70389E-06   -.28400E-02
  16  Normalizat    1.4835        .24169        .83676E-05    .14270E-04
  17  Prefactor     .91652        .65959E-01   -.29818E-05   -.12214E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.70943
  Prefactor  = 0.00010009
  Prefactor  = 0.0001
  Prefactor  = 9.75944
  Prefactor  = 0.0001
  norm       = 1.96525
  Prefactor  = 0.0001
  norm       = 3.4148
  norm       = 26.0933
  Prefactor  = 0.0001
  Prefactor  = 0.000100052
  Prefactor  = 0.000100026
  Prefactor  = 19.8362
  Normalizat = 1.48353
  Prefactor  = 0.916519
 **********
 **   18 **HESSE 
 **********

 FCN=   13608.32     FROM HESSE     STATUS=OK           269 CALLS     1654 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.0391        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.9553        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.7094        7.9520        .52461E-02   -1.5323    
   4  Prefactor     .10009E-03    47.132        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.4935        .64455E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.7594        5.6668        .32063E-02   -1.5083    
   7  Prefactor     .10000E-03    3.0726        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.9652        2.4501        .73950E-02   -1.5428    
   9  Prefactor     .10000E-03    3.4290        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.4148        3.4002        .54709E-02   -1.5338    
  11  norm          26.093        59.359        .19613E-02   -1.4686    
  12  Prefactor     .10000E-03    13.429        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10005E-03    51.025        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10003E-03    4.8341        .13941       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.836        21.857        .22483E-02   -1.4817    
  16  Normalizat    1.4835        .21792        .97553E-01   -.78242    
  17  Prefactor     .91652        .58661E-01    .33099E-01   -.95566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95766e-07
Minuit parameter uncertainties:
  1  4.79645e-06
  2  1.22084e-06
  3  7.95423
  4  0.00412091
  5  3.12238e-05
  6  5.66716
  7  8.66781e-06
  8  2.4502
  9  2.4833e-05
  10  3.40044
  11  59.4936
  12  0.000120862
  13  0.00327274
  14  0.00071325
  15  21.8655
  16  0.218054
  17  0.0586649
Done.

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

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  3.415e+00  3.400e+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.165e-01  5.866e-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.484e+00  2.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.86
Ra Dec: 54.636 13.042
Photon Index (Fixed Index): 1.54 +/- 0.00
Photon Flux (Fixed Index): 6.86e-09 +/- 6.83e-09
Energy Flux (Fixed Index): 2.13e-05 +/- 2.13e-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) = 13608.2703739
delta logL = 0.0531978240651

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13608.2689699
delta logL = 0.0546018319237

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2303       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2469       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4825       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91725       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=   13608.27     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2338        4.1119        .56345E-02   -.43342E-03
   2  alpha         1.2446        .93153        .50000       -.25961E-04
   3  Normalizat    1.4824        .21200        .97582E-01    .21209E-03
   4  Prefactor     .91727        .58524E-01    .33087E-01    .28706E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.23379
  alpha      = 1.24457
  Normalizat = 1.48241
  Prefactor  = 0.917269
 **********
 **   18 **HESSE 
 **********

 FCN=   13608.27     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2338        3.3834        .20579E-03   -1.5348    
   2  alpha         1.2446        .83541        .39874E-01   -.52611    
   3  Normalizat    1.4824        .23789        .43226E-03   -.78274    
   4  Prefactor     .91727        .65815E-01    .14620E-03   -.95540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.54997e-11
Minuit parameter uncertainties:
  1  3.38359
  2  0.857736
  3  0.238067
  4  0.065821
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706372': 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) = 13608.2689645
delta logL = 0.0546072532634

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  3.234e+00  3.384e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.245e+00  8.577e-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.173e-01  6.582e-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.482e+00  2.381e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.97
Ra Dec: 54.636 13.042
Photon Index (Free Index): 1.24 +/- 0.86
Photon Flux (Free Index): 5.00e-09 +/- 6.38e-09
Energy Flux (Free Index): 2.92e-05 +/- 4.17e-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/706372/cmap_HighResolution_495936001_496195201_4FGL_J0338.5+1302_daily_bin990.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.86e-09', energy_flux2='2.92e-05', photon_flux_error='6.83e-09', dlogl='5.46e-02', energy_flux='2.13e-05', photon_flux2='5.00e-09', job_status='DONE', time_completed='2021-08-18 20:44:59.416264', photon_index_error2='0.86', photon_index2='1.24', ts='5.86', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='4.17e-05', EG='1.48', time_epoch_completed='1629344699.42', return_code='0', job_id='706372', GAL2='0.92', EG2='1.48', return_code2='0', energy_flux_error='2.13e-05', photon_flux_error2='6.38e-09', ts2='5.97', photon_index='1.54' WHERE bin_id='990' AND source_name='4FGL J0338.5+1302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 20:44:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 706372: <4FGL_J0338.5+1302_daily_bin990> in cluster <slac> Done

Job <4FGL_J0338.5+1302_daily_bin990> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Aug 18 20:29:17 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 20:29:18 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:29:18 2021
Terminated at Wed Aug 18 20:45:01 2021
Results reported at Wed Aug 18 20:45:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0338.5+1302_daily_bin990 54.6355 13.0419 495936001 496195201 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 :                                   914.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            944 sec.

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

