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


Performing analysis on: 4FGL_J0338.5+1302_daily_bin1158
RA = 54.6355, Dec = 13.0419
tmin = 539481601, tmax = 539740801
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='706693', job_status='RUN', time_executed='2021-08-18 20:31:46.454931', time_epoch_executed='1629343906.45' WHERE source_name='4FGL J0338.5+1302' and cadence='daily' and bin_id='1158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706693

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706693/ft1_4FGL_J0338.5+1302_daily_bin1158.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706693/ft2_4FGL_J0338.5+1302_daily_bin1158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706693/ft1_4FGL_J0338.5+1302_daily_bin1158.fits outfile=/scratch/kocevski/706693/ft1_filteredMKT_4FGL_J0338.5+1302_daily_bin1158.fits ra=54.6355 dec=13.0419 rad=12.0 tmin=539481601.0 tmax=539740801.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.13
user 4.90
sys 4.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/706693/ft1_filtered_4FGL_J0338.5+1302_daily_bin1158.fits" evtable="EVENTS" scfile=/scratch/kocevski/706693/ft2_4FGL_J0338.5+1302_daily_bin1158.fits sctable="SC_DATA" outfile=/scratch/kocevski/706693/ltcube_539481601_539740801_4FGL_J0338.5+1302_daily_bin1158.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/706693/ft2_4FGL_J0338.5+1302_daily_bin1158.fits
.....................!
real 16.38
user 11.56
sys 4.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706693/ft1_filtered_4FGL_J0338.5+1302_daily_bin1158.fits evtable="EVENTS" scfile=/scratch/kocevski/706693/ft2_4FGL_J0338.5+1302_daily_bin1158.fits sctable="SC_DATA" expcube=/scratch/kocevski/706693/ltcube_539481601_539740801_4FGL_J0338.5+1302_daily_bin1158.fits outfile=/scratch/kocevski/706693/expmap_539481601_539740801_4FGL_J0338.5+1302_daily_bin1158.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/706693/ltcube_539481601_539740801_4FGL_J0338.5+1302_daily_bin1158.fits
.....................!
real 196.80
user 186.82
sys 9.43

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/706693/ft1_filtered_4FGL_J0338.5+1302_daily_bin1158.fits scfile=/scratch/kocevski/706693/ft2_4FGL_J0338.5+1302_daily_bin1158.fits outfile=/scratch/kocevski/706693/cmap_539481601_539740801_4FGL_J0338.5+1302_daily_bin1158.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 4.42
user 0.38
sys 3.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/706693/ft1_filtered_4FGL_J0338.5+1302_daily_bin1158.fits scfile=/scratch/kocevski/706693/ft2_4FGL_J0338.5+1302_daily_bin1158.fits outfile=/scratch/kocevski/706693/cmap_HighResolution_539481601_539740801_4FGL_J0338.5+1302_daily_bin1158.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 4.45
user 0.38
sys 4.01

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.5856       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.8287       1.0000         .10000E-03   10000.    
     3 'norm      '    11.411       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.179       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.0332       1.0000         .10000E-03   10000.    
     8 'norm      '    .28180E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    53.815       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.1425       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0841       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98789       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=   10187.92     FROM MIGRAD    STATUS=CONVERGED    324 CALLS     1354 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5857        5.4914        .86388E-06   -.14325E-03
   2  Prefactor     7.8283        8.5734       -.20754E-06   -.89743E-04
   3  norm          11.411        8.0899       -.20135E-06   -.37294E-04
   4  Prefactor     .10000E-03    49.093       -.39938E-04** at limit **
   5  Prefactor     .10000E-03    1.5409       -.13486E-06** at limit **
   6  Prefactor     17.173        8.2367        .89776E-06    .11974E-03
   7  Prefactor     6.0330        6.7849        .28277E-06    .67283E-04
   8  norm          .10000E-03    .83625       -.15821E-06** at limit **
   9  Prefactor     53.815        21.134       -.34844E-06   -.86169E-05
  10  norm          .10000E-03    3.4221       -.45101E-07** at limit **
  11  norm          .10000E-03    39.668        .36454E-04** at limit **
  12  Prefactor     .10000E-03    15.655        .12171E-04** at limit **
  13  Prefactor     .10000E-03    16.839       -.15604E-04** at limit **
  14  Prefactor     8.1431        10.255       -.93916E-07   -.54053E-04
  15  Prefactor     .10000E-03    7.3883       -.22326E-06** at limit **
  16  Normalizat    1.0842        .25194       -.30582E-06   -.76199E-06
  17  Prefactor     .98785        .69622E-01   -.13197E-06    .94560E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.58573
  Prefactor  = 7.82833
  norm       = 11.4111
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.1727
  Prefactor  = 6.03304
  norm       = 0.0001
  Prefactor  = 53.8145
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.14311
  Prefactor  = 0.0001
  Normalizat = 1.08418
  Prefactor  = 0.98785
 **********
 **   18 **HESSE 
 **********

 FCN=   10187.92     FROM HESSE     STATUS=OK           225 CALLS     1579 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5857        5.4842        .14561E-03   -1.5157    
   2  Prefactor     7.8283        8.5726        .14331E-03   -1.5148    
   3  norm          11.411        8.0866        .11860E-03   -1.5032    
   4  Prefactor     .10000E-03    49.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.5450        .12235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.173        8.0006        .96633E-04   -1.4879    
   7  Prefactor     6.0330        6.7864        .16347E-03   -1.5217    
   8  norm          .10000E-03    7.0372        .17211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     53.815        21.142        .54676E-04   -1.4239    
  10  norm          .10000E-03    3.4423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    39.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.1431        10.252        .14050E-03   -1.5137    
  15  Prefactor     .10000E-03    7.3922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0842        .27348        .48347E-03   -.90261    
  17  Prefactor     .98785        .76428E-01    .14275E-03   -.93136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.02688e-11
Minuit parameter uncertainties:
  1  5.48455
  2  8.57391
  3  8.08733
  4  8.12671e-06
  5  3.69071e-07
  6  8.00114
  7  6.78723
  8  0.000105698
  9  21.1453
  10  7.87436e-07
  11  2.87906e-05
  12  5.38378e-06
  13  1.89482e-05
  14  10.2538
  15  9.08028e-07
  16  0.273832
  17  0.0764367
Done.

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

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  1.000e-04  7.874e-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:  9.879e-01  7.644e-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.084e+00  2.738e-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.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.02e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/706693/likelihoodResults_539481601_539740801_4FGL_J0338.5+1302_daily_bin1158.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) = 10187.9236927
delta logL = -0.0013845710946

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10187.9223079
delta logL = 2.10322468774e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5602       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0841       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98787       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=   10187.92     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.0799        .90712E-02** at limit **
   2  alpha         1.5849        3.2924        .45612       -.31185E-04
   3  Normalizat    1.0842        .24298        .10905       -.22723E-04
   4  Prefactor     .98785        .69317E-01    .32305E-01    .12859E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 1.5849
  Normalizat = 1.08418
  Prefactor  = 0.987851
 **********
 **   18 **HESSE 
 **********

 FCN=   10187.92     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.6817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5849        3.2712        .50000       -.37475    
   3  Normalizat    1.0842        .26560        .48347E-03   -.90261    
   4  Prefactor     .98785        .76045E-01    .14275E-03   -.93136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48427e-09
Minuit parameter uncertainties:
  1  0.000186286
  2  2.35286
  3  0.265925
  4  0.0760536
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706693': 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) = 10187.9223075
delta logL = 6.55105395708e-07

Extracting fit parameters...

4FGL J0338.5+1302
   Spectrum: LogParabola
285         norm:  1.000e-04  1.863e-04  1.000e-04  1.000e+04 ( 1.000e-13)
286        alpha:  1.585e+00  2.353e+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.879e-01  7.605e-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.084e+00  2.659e-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/706693/cmap_HighResolution_539481601_539740801_4FGL_J0338.5+1302_daily_bin1158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.02e-05', job_status='DONE', photon_flux_upper_limit='2.90e-08', time_completed='2021-08-18 20:44:45.629053', job_id='706693', GAL2='0.99', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1629344685.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='6.55e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.54' WHERE bin_id='1158' AND source_name='4FGL J0338.5+1302' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 20:44:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 706693: <4FGL_J0338.5+1302_daily_bin1158> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0338.5+1302_daily_bin1158 54.6355 13.0419 539481601 539740801 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 :                                   823.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            905 sec.

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

