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


Performing analysis on: 4FGL_J0338.9-2848_daily_bin739
RA = 54.7447, Dec = -28.8009
tmin = 430876801, tmax = 431136001
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='718576', job_status='RUN', time_executed='2021-08-18 21:12:33.134132', time_epoch_executed='1629346353.13' WHERE source_name='4FGL J0338.9-2848' and cadence='daily' and bin_id='739'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/718576

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/718576/ft1_4FGL_J0338.9-2848_daily_bin739.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/718576/ft2_4FGL_J0338.9-2848_daily_bin739.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/718576/ft1_4FGL_J0338.9-2848_daily_bin739.fits outfile=/scratch/kocevski/718576/ft1_filteredMKT_4FGL_J0338.9-2848_daily_bin739.fits ra=54.7447 dec=-28.8009 rad=12.0 tmin=430876801.0 tmax=431136001.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.52
user 5.08
sys 1.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/718576/ft2_4FGL_J0338.9-2848_daily_bin739.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/718576/ft1_filteredMKT_4FGL_J0338.9-2848_daily_bin739.fits evtable="EVENTS" outfile="/scratch/kocevski/718576/ft1_filtered_4FGL_J0338.9-2848_daily_bin739.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 1.61
user 0.34
sys 1.22

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/718576/ft1_filtered_4FGL_J0338.9-2848_daily_bin739.fits" evtable="EVENTS" scfile=/scratch/kocevski/718576/ft2_4FGL_J0338.9-2848_daily_bin739.fits sctable="SC_DATA" outfile=/scratch/kocevski/718576/ltcube_430876801_431136001_4FGL_J0338.9-2848_daily_bin739.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/718576/ft2_4FGL_J0338.9-2848_daily_bin739.fits
.....................!
real 14.52
user 12.90
sys 1.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/718576/ft1_filtered_4FGL_J0338.9-2848_daily_bin739.fits evtable="EVENTS" scfile=/scratch/kocevski/718576/ft2_4FGL_J0338.9-2848_daily_bin739.fits sctable="SC_DATA" expcube=/scratch/kocevski/718576/ltcube_430876801_431136001_4FGL_J0338.9-2848_daily_bin739.fits outfile=/scratch/kocevski/718576/expmap_430876801_431136001_4FGL_J0338.9-2848_daily_bin739.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/718576/ltcube_430876801_431136001_4FGL_J0338.9-2848_daily_bin739.fits
.....................!
real 192.90
user 185.65
sys 6.67

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/718576/ft1_filtered_4FGL_J0338.9-2848_daily_bin739.fits scfile=/scratch/kocevski/718576/ft2_4FGL_J0338.9-2848_daily_bin739.fits outfile=/scratch/kocevski/718576/cmap_430876801_431136001_4FGL_J0338.9-2848_daily_bin739.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 1.60
user 0.37
sys 1.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/718576/ft1_filtered_4FGL_J0338.9-2848_daily_bin739.fits scfile=/scratch/kocevski/718576/ft2_4FGL_J0338.9-2848_daily_bin739.fits outfile=/scratch/kocevski/718576/cmap_HighResolution_430876801_431136001_4FGL_J0338.9-2848_daily_bin739.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 1.64
user 0.38
sys 1.21

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/718576/ft1_filtered_4FGL_J0338.9-2848_daily_bin739.fits evtable="EVENTS" scfile=/scratch/kocevski/718576/ft2_4FGL_J0338.9-2848_daily_bin739.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/718576/Model_4FGL_J0338.9-2848_daily_bin739.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/718576/ft1_filtered_4FGL_J0338.9-2848_daily_bin739.fits.....................!
real 83.34
user 80.20
sys 2.63

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/718576/ft1_filtered_4FGL_J0338.9-2848_daily_bin739.fits', '/scratch/kocevski/718576/ft2_4FGL_J0338.9-2848_daily_bin739.fits', expMap='/scratch/kocevski/718576/expmap_430876801_431136001_4FGL_J0338.9-2848_daily_bin739.fits', expCube='/scratch/kocevski/718576/ltcube_430876801_431136001_4FGL_J0338.9-2848_daily_bin739.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/718576/Model_4FGL_J0338.9-2848_daily_bin739.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/718576/ft1_filtered_4FGL_J0338.9-2848_daily_bin739.fits
Spacecraft file(s): /scratch/kocevski/718576/ft2_4FGL_J0338.9-2848_daily_bin739.fits
Exposure map: /scratch/kocevski/718576/expmap_430876801_431136001_4FGL_J0338.9-2848_daily_bin739.fits
Exposure cube: /scratch/kocevski/718576/ltcube_430876801_431136001_4FGL_J0338.9-2848_daily_bin739.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/718576/Model_4FGL_J0338.9-2848_daily_bin739.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) = 3448.36793258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.060       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .34183E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .12015E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.1553       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11487E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    71.193       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6497       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.9639       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6391       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .70833       1.0000         .10000E-03   10000.    
    17 'norm      '    5.5993       1.0000         .10000E-03   10000.    
    18 'Prefactor '    96.059       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.1309       1.0000         .10000E-03   10000.    
    22 'norm      '    3.3486       1.0000         .10000E-03   10000.    
    23 'norm      '    14.309       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2270       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .72148       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=   3448.350     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2903 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    145.58        .13736E-04** at limit **
   2  Prefactor     .10000E-03    31.894        .60138E-05** at limit **
   3  norm          .10000E-03    3.0903       -.53753E-07** at limit **
   4  Prefactor     .10000E-03    25.292       -.39816E-05** at limit **
   5  Prefactor     .10000E-03    111.04        .66389E-04** at limit **
   6  Prefactor     29.067        29.283       -.56252E-06    .48658E-05
   7  Prefactor     .10009E-03    317.68       -.23115E-03** at limit **
   8  norm          .10000E-03    3.8218       -.83979E-07** at limit **
   9  norm          1.1554        1.3916       -.18261E-06   -.14014E-03
  10  Prefactor     .10000E-03    72.207       -.32273E-04** at limit **
  11  Prefactor     71.201        64.661        .59051E-05    .18956E-05
  12  Prefactor     1.6498        2.0715        .17620E-07    .50282E-04
  13  Prefactor     8.9635        10.166       -.57624E-06    .29751E-03
  14  Prefactor     5.6405        8.8081       -.16682E-05   -.79536E-04
  15  Prefactor     .10000E-03    20.314        .93868E-06** at limit **
  16  norm          .70758        1.0366        .24611E-06    .11018E-02
  17  norm          5.6000        2.4403        .15959E-07    .12805E-03
  18  Prefactor     96.005        167.39       -.51831E-04    .55782E-04
  19  Prefactor     .10000E-03    1.3056       -.13796E-07** at limit **
  20  norm          .10000E-03    8.3966        .15325E-07** at limit **
  21  Prefactor     3.1505        59.044       -.23923E-05   -.21751E-04
  22  norm          3.3488        .78048        .99934E-07    .67677E-03
  23  norm          14.311        11.366       -.43415E-06   -.30196E-03
  24  Normalizat    1.2267        .26269        .53698E-05    .37729E-03
  25  Prefactor     .72129        .25296       -.15434E-05    .47604E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.0673
  Prefactor  = 0.000100085
  norm       = 0.0001
  norm       = 1.15541
  Prefactor  = 0.000100001
  Prefactor  = 71.2012
  Prefactor  = 1.64981
  Prefactor  = 8.96351
  Prefactor  = 5.64048
  Prefactor  = 0.0001
  norm       = 0.707579
  norm       = 5.59995
  Prefactor  = 96.0054
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.15048
  norm       = 3.34879
  norm       = 14.3108
  Normalizat = 1.22673
  Prefactor  = 0.721292
 **********
 **   18 **HESSE 
 **********

 FCN=   3448.350     FROM HESSE     STATUS=OK           423 CALLS     3326 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    146.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    32.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.1296        .10079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    25.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    111.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     29.067        29.286        .74320E-04   -1.4629    
   7  Prefactor     .10009E-03    318.62        .19682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.3606        .22157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.1554        1.3595        .72925E-04   -1.5493    
  10  Prefactor     .10000E-03    72.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     71.201        64.821        .47578E-04   -1.4018    
  12  Prefactor     1.6498        2.0567        .91230E-04   -1.5451    
  13  Prefactor     8.9635        10.099        .13387E-03   -1.5109    
  14  Prefactor     5.6405        8.7314        .16692E-03   -1.5233    
  15  Prefactor     .10000E-03    20.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .70758        .97279        .67588E-03   -1.5540    
  17  norm          5.6000        2.4374        .57230E-04   -1.5235    
  18  Prefactor     96.005        167.93        .20505E-03   -1.3745    
  19  Prefactor     .10000E-03    1.3103        .65510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    8.4039        .16614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.1505        59.022        .22912E-03   -1.5353    
  22  norm          3.3488        .78511        .23597E-04   -1.5342    
  23  norm          14.311        11.379        .52943E-03   -1.4951    
  24  Normalizat    1.2267        .31518        .25316E-03   -.85781    
  25  Prefactor     .72129        .30068        .31800E-03   -1.0270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73587e-09
Minuit parameter uncertainties:
  1  0.000538661
  2  0.000146744
  3  1.11192e-05
  4  2.68392e-05
  5  2.69578e-05
  6  29.3001
  7  0.010488
  8  1.16125e-05
  9  1.35955
  10  0.000438257
  11  64.8851
  12  2.05681
  13  10.1005
  14  8.73334
  15  6.96773e-05
  16  0.972814
  17  2.43742
  18  168.767
  19  2.24618e-06
  20  4.14623e-06
  21  27.3034
  22  0.785108
  23  11.3803
  24  0.315671
  25  0.301358
Done.

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

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  1.000e-04  4.383e-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:  7.213e-01  3.014e-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:  1.227e+00  3.157e-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: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/718576/likelihoodResults_430876801_431136001_4FGL_J0338.9-2848_daily_bin739.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) = 3448.35009447
delta logL = -6.58549402033e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3448.35002869
delta logL = -8.08749973658e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10595E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8972       1.0000          .0000       10.000    
     3 'Normalizat'    1.2267       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72129       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3448.350     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      277 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8286.5        .18142E-02** at limit **
   2  Index         1.9241        7.7758        .50000       -.32260E-05
   3  Normalizat    1.2267        .89241E-01    .25316E-03   -.14127E-03
   4  Prefactor     .72129        .88589E-01    .31800E-03    .48263E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.92415
  Normalizat = 1.22673
  Prefactor  = 0.721288
 **********
 **   18 **HESSE 
 **********

 FCN=   3448.350     FROM HESSE     STATUS=OK            29 CALLS      306 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    103.89        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9241        5.8340        .50000       -.66260    
   3  Normalizat    1.2267        .28780        .50631E-04   -.85781    
   4  Prefactor     .72129        .28552        .12720E-04   -1.0270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69615e-10
Minuit parameter uncertainties:
  1  0.000556483
  2  4.84714
  3  0.288173
  4  0.2861
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/718576': 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) = 3448.35002863
delta logL = -1.42285898619e-08

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  1.000e-04  5.565e-04  1.000e-04  1.000e+04 ( 1.000e-14)
259        Index:  1.924e+00  4.847e+00  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:  7.213e-01  2.861e-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:  1.227e+00  2.882e-01  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/718576/cmap_HighResolution_430876801_431136001_4FGL_J0338.9-2848_daily_bin739.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.67e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-08-18 21:22:23.787967', job_id='718576', GAL2='0.72', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1629346943.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='-1.42e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='739' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 21:22:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0140>
Subject: Job 718576: <4FGL_J0338.9-2848_daily_bin739> in cluster <slac> Done

Job <4FGL_J0338.9-2848_daily_bin739> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Aug 18 21:05:51 2021
Job was executed on host(s) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 21:08:30 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:08:30 2021
Terminated at Wed Aug 18 21:22:24 2021
Results reported at Wed Aug 18 21:22:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0338.9-2848_daily_bin739 54.7447 -28.8009 430876801 431136001 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 :                                   601.44 sec.
    Max Memory :                                 1004 MB
    Average Memory :                             256.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            993 sec.

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

