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


Performing analysis on: 4FGL_J0338.9-2848_daily_bin1096
RA = 54.7447, Dec = -28.8009
tmin = 523411201, tmax = 523670401
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='723565', job_status='RUN', time_executed='2021-08-18 21:26:25.887912', time_epoch_executed='1629347185.89' WHERE source_name='4FGL J0338.9-2848' and cadence='daily' and bin_id='1096'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/723565

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/723565/ft1_4FGL_J0338.9-2848_daily_bin1096.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/723565/ft2_4FGL_J0338.9-2848_daily_bin1096.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/723565/ft1_4FGL_J0338.9-2848_daily_bin1096.fits outfile=/scratch/kocevski/723565/ft1_filteredMKT_4FGL_J0338.9-2848_daily_bin1096.fits ra=54.7447 dec=-28.8009 rad=12.0 tmin=523411201.0 tmax=523670401.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 7.68
user 3.35
sys 4.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/723565/ft2_4FGL_J0338.9-2848_daily_bin1096.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/723565/ft2_4FGL_J0338.9-2848_daily_bin1096.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/723565/ft1_filteredMKT_4FGL_J0338.9-2848_daily_bin1096.fits evtable="EVENTS" outfile="/scratch/kocevski/723565/ft1_filtered_4FGL_J0338.9-2848_daily_bin1096.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.56
user 0.33
sys 4.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/723565/ft1_filtered_4FGL_J0338.9-2848_daily_bin1096.fits" evtable="EVENTS" scfile=/scratch/kocevski/723565/ft2_4FGL_J0338.9-2848_daily_bin1096.fits sctable="SC_DATA" outfile=/scratch/kocevski/723565/ltcube_523411201_523670401_4FGL_J0338.9-2848_daily_bin1096.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/723565/ft2_4FGL_J0338.9-2848_daily_bin1096.fits
.....................!
real 19.10
user 12.76
sys 4.89

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/723565/ft1_filtered_4FGL_J0338.9-2848_daily_bin1096.fits evtable="EVENTS" scfile=/scratch/kocevski/723565/ft2_4FGL_J0338.9-2848_daily_bin1096.fits sctable="SC_DATA" expcube=/scratch/kocevski/723565/ltcube_523411201_523670401_4FGL_J0338.9-2848_daily_bin1096.fits outfile=/scratch/kocevski/723565/expmap_523411201_523670401_4FGL_J0338.9-2848_daily_bin1096.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/723565/ltcube_523411201_523670401_4FGL_J0338.9-2848_daily_bin1096.fits
.....................!
real 195.33
user 184.74
sys 10.10

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 163 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0338.9-2848 @ 54.7447 -28.8009

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/723565/ft1_filtered_4FGL_J0338.9-2848_daily_bin1096.fits scfile=/scratch/kocevski/723565/ft2_4FGL_J0338.9-2848_daily_bin1096.fits outfile=/scratch/kocevski/723565/cmap_523411201_523670401_4FGL_J0338.9-2848_daily_bin1096.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.7447 yref=-28.8009 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.52
user 0.37
sys 4.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/723565/ft1_filtered_4FGL_J0338.9-2848_daily_bin1096.fits scfile=/scratch/kocevski/723565/ft2_4FGL_J0338.9-2848_daily_bin1096.fits outfile=/scratch/kocevski/723565/cmap_HighResolution_523411201_523670401_4FGL_J0338.9-2848_daily_bin1096.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.7447 yref=-28.8009 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.49
user 0.39
sys 4.08

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/723565/ft1_filtered_4FGL_J0338.9-2848_daily_bin1096.fits evtable="EVENTS" scfile=/scratch/kocevski/723565/ft2_4FGL_J0338.9-2848_daily_bin1096.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/723565/Model_4FGL_J0338.9-2848_daily_bin1096.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/723565/ft1_filtered_4FGL_J0338.9-2848_daily_bin1096.fits.....................!
real 139.02
user 132.19
sys 6.46

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/723565/ft1_filtered_4FGL_J0338.9-2848_daily_bin1096.fits', '/scratch/kocevski/723565/ft2_4FGL_J0338.9-2848_daily_bin1096.fits', expMap='/scratch/kocevski/723565/expmap_523411201_523670401_4FGL_J0338.9-2848_daily_bin1096.fits', expCube='/scratch/kocevski/723565/ltcube_523411201_523670401_4FGL_J0338.9-2848_daily_bin1096.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/723565/Model_4FGL_J0338.9-2848_daily_bin1096.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0338.9-2848'

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  7.603e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
259        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/723565/ft1_filtered_4FGL_J0338.9-2848_daily_bin1096.fits
Spacecraft file(s): /scratch/kocevski/723565/ft2_4FGL_J0338.9-2848_daily_bin1096.fits
Exposure map: /scratch/kocevski/723565/expmap_523411201_523670401_4FGL_J0338.9-2848_daily_bin1096.fits
Exposure cube: /scratch/kocevski/723565/ltcube_523411201_523670401_4FGL_J0338.9-2848_daily_bin1096.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/723565/Model_4FGL_J0338.9-2848_daily_bin1096.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) = 6142.40929022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.7294       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .96870       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.9435       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15437E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7192       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0845       1.0000         .10000E-03   10000.    
    16 'norm      '    2.1459       1.0000         .10000E-03   10000.    
    17 'norm      '    1.3865       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .54337       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    12.303       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .88744       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97699       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6142.311     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2499 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.700        .10242E-04** at limit **
   2  Prefactor     .10000E-03    6.5005        .55743E-06** at limit **
   3  norm          5.7296        3.3137       -.79952E-07   -.10216E-03
   4  Prefactor     .99491        10.620       -.10143E-05    .28184E-04
   5  Prefactor     .10000E-03    56.137        .89564E-05** at limit **
   6  Prefactor     .10000E-03    6.8637       -.12728E-05** at limit **
   7  Prefactor     .10000E-03    12.350       -.27013E-05** at limit **
   8  norm          3.9424        2.8078       -.51454E-06   -.27265E-02
   9  norm          .10000E-03    .39478        .32177E-07** at limit **
  10  Prefactor     .10000E-03    66.101       -.40171E-04** at limit **
  11  Prefactor     .10000E-03    51.988        .22290E-04** at limit **
  12  Prefactor     1.7193        1.5197       -.44561E-07   -.13145E-03
  13  Prefactor     .10000E-03    .86313        .10434E-07** at limit **
  14  Prefactor     .10000E-03    .66363       -.15799E-08** at limit **
  15  Prefactor     3.0880        18.038       -.10162E-05   -.88758E-04
  16  norm          2.1455        .87606        .29206E-08    .96576E-03
  17  norm          1.3866        1.1135        .14810E-07   -.20533E-04
  18  Prefactor     .10000E-03    37.094        .16807E-04** at limit **
  19  Prefactor     .54374        1.9304       -.10967E-05   -.15123E-02
  20  norm          .10000E-03    7.6856        .11283E-05** at limit **
  21  Prefactor     .10000E-03    25.509       -.21515E-04** at limit **
  22  norm          .10000E-03    .18113       -.19044E-07** at limit **
  23  norm          12.306        7.8222        .33583E-07   -.16030E-04
  24  Normalizat    .88742        .15449        .63097E-06    .33105E-03
  25  Prefactor     .97699        .16201        .19554E-06    .28820E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.72961
  Prefactor  = 0.994913
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.94236
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 1.71933
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.08797
  norm       = 2.14545
  norm       = 1.38659
  Prefactor  = 0.0001
  Prefactor  = 0.543743
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.306
  Normalizat = 0.88742
  Prefactor  = 0.976994
 **********
 **   18 **HESSE 
 **********

 FCN=   6142.311     FROM HESSE     STATUS=OK           425 CALLS     2924 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.5237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.7296        3.3134        .10497E-03   -1.5229    
   4  Prefactor     .99491        75.472        .48226E-02   -1.5508    
   5  Prefactor     .10000E-03    56.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.8888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.9424        2.8289        .53227E-03   -1.5311    
   9  norm          .10000E-03    .79743        .95268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    66.209        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    51.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.7193        1.5062        .86851E-04   -1.5446    
  13  Prefactor     .10000E-03    .86744        .71075E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .66619        .62335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.0880        17.747        .23093E-03   -1.5356    
  16  norm          2.1455        .87374        .44733E-04   -1.5415    
  17  norm          1.3866        1.0911        .69374E-04   -1.5472    
  18  Prefactor     .10000E-03    36.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .54374        1.9491        .19513E-03   -1.5560    
  20  norm          .10000E-03    7.7748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .88645        .62021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          12.306        7.6679        .11420E-03   -1.5006    
  24  Normalizat    .88742        .17990        .22877E-03   -.96904    
  25  Prefactor     .97699        .18862        .23834E-03   -.93500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69118e-09
Minuit parameter uncertainties:
  1  1.41777e-05
  2  6.22545e-06
  3  3.31346
  4  17.3525
  5  5.15919e-06
  6  4.3699e-06
  7  2.38617e-06
  8  2.82903
  9  3.84578e-06
  10  0.00088399
  11  7.12214e-05
  12  1.5062
  13  1.55397e-07
  14  2.11763e-07
  15  14.8123
  16  0.873745
  17  1.09107
  18  3.69547e-06
  19  1.94929
  20  4.83367e-06
  21  0.000107039
  22  1.32459e-07
  23  7.66846
  24  0.180021
  25  0.188748
Done.

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

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  1.000e-04  8.840e-04  1.000e-04  1.000e+04 ( 1.000e-14)
259        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  9.770e-01  1.887e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  8.874e-01  1.800e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 54.745 -28.801
Photon Flux Upper Limit: 3.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/723565/likelihoodResults_523411201_523670401_4FGL_J0338.9-2848_daily_bin1096.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) = 6142.31087959
delta logL = -7.19496347301e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6142.31080855
delta logL = -9.06481545826e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23969E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0847       1.0000          .0000       10.000    
     3 'Normalizat'    .88742       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97699       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6142.311     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      238 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.910        .90712E-02** at limit **
   2  Index         2.0862        5.9139        .50000       -.77443E-07
   3  Normalizat    .88742        .19246E-02    .44741E-01    .21295E-04
   4  Prefactor     .97699        .21054E-02    .45979E-01    .15983E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.08622
  Normalizat = 0.887419
  Prefactor  = 0.976994
 **********
 **   18 **HESSE 
 **********

 FCN=   6142.311     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      271 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1205.3        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0862        5.4518        .50000       -.62212    
   3  Normalizat    .88742        .16037E-01    .22877E-03   -.96904    
   4  Prefactor     .97699        .17545E-01    .23834E-03   -.93500    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.16999e-10
Minuit parameter uncertainties:
  1  0.000294717
  2  460.543
  3  0.016037
  4  0.0175447
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/723565': 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) = 6142.31080758
delta logL = 6.10707502346e-08

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  1.000e-04  2.947e-04  1.000e-04  1.000e+04 ( 1.000e-14)
259        Index:  2.086e+00  4.605e+02  0.000e+00  1.000e+01 (-1.000e+00)
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  9.770e-01  1.754e-02  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  8.874e-01  1.604e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 54.745 -28.801

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/723565/cmap_HighResolution_523411201_523670401_4FGL_J0338.9-2848_daily_bin1096.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.72e-03', job_status='DONE', photon_flux_upper_limit='3.64e-08', time_completed='2021-08-18 21:39:34.001244', job_id='723565', GAL2='0.98', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1629347974.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='6.11e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='1096' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 21:39:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 723565: <4FGL_J0338.9-2848_daily_bin1096> in cluster <slac> Done

Job <4FGL_J0338.9-2848_daily_bin1096> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Aug 18 21:24:02 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 21:25:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 18 21:25:01 2021
Terminated at Wed Aug 18 21:39:51 2021
Results reported at Wed Aug 18 21:39:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0338.9-2848_daily_bin1096 54.7447 -28.8009 523411201 523670401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0338.9-2848 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   843.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             317.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            949 sec.

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

