/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


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


Performing analysis on: 4FGL_J0338.5+1302_daily_bin441
RA = 54.6355, Dec = 13.0419
tmin = 353635201, tmax = 353894401
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='700600', job_status='RUN', time_executed='2021-08-18 20:15:23.830816', time_epoch_executed='1629342923.83' WHERE source_name='4FGL J0338.5+1302' and cadence='daily' and bin_id='441'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/700600

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/700600/ft1_4FGL_J0338.5+1302_daily_bin441.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/700600/ft2_4FGL_J0338.5+1302_daily_bin441.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/700600/ft1_4FGL_J0338.5+1302_daily_bin441.fits outfile=/scratch/kocevski/700600/ft1_filteredMKT_4FGL_J0338.5+1302_daily_bin441.fits ra=54.6355 dec=13.0419 rad=12.0 tmin=353635201.0 tmax=353894401.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 6.45
user 3.34
sys 3.04

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/700600/ft1_filtered_4FGL_J0338.5+1302_daily_bin441.fits" evtable="EVENTS" scfile=/scratch/kocevski/700600/ft2_4FGL_J0338.5+1302_daily_bin441.fits sctable="SC_DATA" outfile=/scratch/kocevski/700600/ltcube_353635201_353894401_4FGL_J0338.5+1302_daily_bin441.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/700600/ft2_4FGL_J0338.5+1302_daily_bin441.fits
.....................!
real 15.43
user 11.78
sys 3.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/700600/ft1_filtered_4FGL_J0338.5+1302_daily_bin441.fits evtable="EVENTS" scfile=/scratch/kocevski/700600/ft2_4FGL_J0338.5+1302_daily_bin441.fits sctable="SC_DATA" expcube=/scratch/kocevski/700600/ltcube_353635201_353894401_4FGL_J0338.5+1302_daily_bin441.fits outfile=/scratch/kocevski/700600/expmap_353635201_353894401_4FGL_J0338.5+1302_daily_bin441.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/700600/ltcube_353635201_353894401_4FGL_J0338.5+1302_daily_bin441.fits
.....................!
real 193.73
user 185.45
sys 7.80

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/700600/ft1_filtered_4FGL_J0338.5+1302_daily_bin441.fits scfile=/scratch/kocevski/700600/ft2_4FGL_J0338.5+1302_daily_bin441.fits outfile=/scratch/kocevski/700600/cmap_353635201_353894401_4FGL_J0338.5+1302_daily_bin441.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 3.31
user 0.38
sys 2.90

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/700600/ft1_filtered_4FGL_J0338.5+1302_daily_bin441.fits scfile=/scratch/kocevski/700600/ft2_4FGL_J0338.5+1302_daily_bin441.fits outfile=/scratch/kocevski/700600/cmap_HighResolution_353635201_353894401_4FGL_J0338.5+1302_daily_bin441.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 3.07
user 0.38
sys 2.63

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    2.5946       1.0000         .10000E-03   10000.    
     3 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.688       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.8736       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.5826       1.0000         .10000E-03   10000.    
     8 'norm      '    7.6562       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1020       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    100.06       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11194E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0526       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .77980       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0489       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=   11519.12     FROM MIGRAD    STATUS=CONVERGED    340 CALLS     1641 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.8227        .16917E-07** at limit **
   2  Prefactor     2.5948        5.2548        .23104E-05    .75551E-03
   3  norm          .10000E-03    7.0094        .19413E-07** at limit **
   4  Prefactor     28.705        129.14        .58957E-05    .54847E-04
   5  Prefactor     5.8742        4.4889       -.46057E-07   -.10493E-03
   6  Prefactor     .10000E-03    4.1618        .24211E-07** at limit **
   7  Prefactor     7.5828        11.562       -.11836E-06   -.62110E-04
   8  norm          7.6557        3.0687        .80878E-07   -.69196E-04
   9  Prefactor     5.1021        13.124        .50205E-05   -.43349E-03
  10  norm          .10000E-03    2.2107        .23953E-08** at limit **
  11  norm          100.06        71.678        .86819E-06    .71568E-04
  12  Prefactor     .10000E-03    34.709       -.31591E-06** at limit **
  13  Prefactor     .10000E-03    162.48       -.11396E-05** at limit **
  14  Prefactor     5.0534        11.467        .60204E-06    .41719E-04
  15  Prefactor     .10000E-03    42.905        .54858E-06** at limit **
  16  Normalizat    .77989        .24678       -.12845E-05   -.47492E-04
  17  Prefactor     1.0488        .67165E-01   -.72263E-07   -.27232E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.59484
  norm       = 0.0001
  Prefactor  = 28.7055
  Prefactor  = 5.87418
  Prefactor  = 0.0001
  Prefactor  = 7.58284
  norm       = 7.65572
  Prefactor  = 5.10206
  norm       = 0.0001
  norm       = 100.06
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.05343
  Prefactor  = 0.0001
  Normalizat = 0.779889
  Prefactor  = 1.04883
 **********
 **   18 **HESSE 
 **********

 FCN=   11519.12     FROM HESSE     STATUS=OK           221 CALLS     1862 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8500        .14149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5948        5.5963        .25331E-03   -1.5386    
   3  norm          .10000E-03    7.2206        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     28.705        132.79        .74800E-04   -1.4636    
   5  Prefactor     5.8742        4.4901        .16570E-03   -1.5223    
   6  Prefactor     .10000E-03    4.2562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.5828        11.565        .14564E-03   -1.5157    
   8  norm          7.6557        3.0647        .11202E-03   -1.5155    
   9  Prefactor     5.1021        14.011        .89000E-03   -1.5256    
  10  norm          .10000E-03    2.2147        .15584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          100.06        71.824        .40191E-04   -1.3704    
  12  Prefactor     .10000E-03    34.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    168.43        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.0534        11.460        .17888E-03   -1.5258    
  15  Prefactor     .10000E-03    43.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .77989        .26608        .56261E-03   -1.0082    
  17  Prefactor     1.0488        .73234E-01    .13757E-03   -.91119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62298e-09
Minuit parameter uncertainties:
  1  5.45134e-08
  2  5.59739
  3  8.95263e-06
  4  123.933
  5  4.49037
  6  2.03291e-06
  7  11.5684
  8  3.0648
  9  14.0201
  10  6.80965e-07
  11  71.8867
  12  9.30196e-05
  13  0.000422531
  14  11.465
  15  0.000203924
  16  0.266524
  17  0.0732408
Done.

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

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  1.000e-04  6.810e-07  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.049e+00  7.324e-02  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  7.799e-01  2.665e-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: 2.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.32e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/700600/likelihoodResults_353635201_353894401_4FGL_J0338.5+1302_daily_bin441.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): 0
logL (Free Index) = 11519.1203187
delta logL = -0.00214300238622

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11519.118176
delta logL = -2.80180756818e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5423       1.0000          .0000       5.0000    
     3 'Normalizat'    .78009       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0488       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=   11518.53     FROM MIGRAD    STATUS=CONVERGED    159 CALLS      304 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20445E-01    .30521        .32973E-02    .13189E-01
   2  alpha         4.4736        4.2150        .18331        .14466E-03
   3  Normalizat    .71305        .53690E-01    .56261E-02    .23935E-03
   4  Prefactor     1.0542        .15211E-01    .13757E-03   -.12561E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0204452
  alpha      = 4.47362
  Normalizat = 0.713052
  Prefactor  = 1.05416
 **********
 **   18 **HESSE 
 **********

 FCN=   11518.53     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      335 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20445E-01    .94392        .14837E-03   -1.5679    
   2  alpha         4.4736        4.6679        .20575E-02    7.1931    
   3  Normalizat    .71305        .21411        .11252E-02   -1.0338    
   4  Prefactor     1.0542        .60455E-01    .55029E-05   -.90945    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.18457e-06
Minuit parameter uncertainties:
  1  0.277163
  2  4.31867
  3  0.214358
  4  0.0604593
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/700600': 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) = 11518.5330883
delta logL = 0.585087361282

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  2.045e-02  2.772e-01  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  4.474e+00  4.319e+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.054e+00  6.046e-02  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  7.131e-01  2.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 54.636 13.042
Photon Index (Free Index): 4.47 +/- 4.32
Photon Flux (Free Index): 8.07e-08 +/- 7.71e-08
Energy Flux (Free Index): 1.31e-05 +/- 1.64e-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/700600/cmap_HighResolution_353635201_353894401_4FGL_J0338.5+1302_daily_bin441.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.32e-05', comment='SUCCESS', energy_flux2='1.31e-05', dlogl='5.85e-01', photon_flux2='8.07e-08', job_status='DONE', time_completed='2021-08-18 20:28:58.638885', photon_index_error2='4.32', photon_index2='4.47', ts='-0.00', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='2.35e-08', energy_flux_error2='1.64e-05', EG='0.78', time_epoch_completed='1629343738.64', return_code='0', job_id='700600', GAL2='1.05', EG2='0.71', return_code2='102', photon_flux_error2='7.71e-08', ts2='1.23', photon_index='1.54' WHERE bin_id='441' AND source_name='4FGL J0338.5+1302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 20:28:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 700600: <4FGL_J0338.5+1302_daily_bin441> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0338.5+1302_daily_bin441 54.6355 13.0419 353635201 353894401 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 :                                   854.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             355.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            977 sec.

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

