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


Performing analysis on: 4FGL_J0338.9-2848_daily_bin844
RA = 54.7447, Dec = -28.8009
tmin = 458092801, tmax = 458352001
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='720785', job_status='RUN', time_executed='2021-08-18 21:14:05.234755', time_epoch_executed='1629346445.23' WHERE source_name='4FGL J0338.9-2848' and cadence='daily' and bin_id='844'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/720785

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/720785/ft1_4FGL_J0338.9-2848_daily_bin844.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/720785/ft2_4FGL_J0338.9-2848_daily_bin844.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/720785/ft1_4FGL_J0338.9-2848_daily_bin844.fits outfile=/scratch/kocevski/720785/ft1_filteredMKT_4FGL_J0338.9-2848_daily_bin844.fits ra=54.7447 dec=-28.8009 rad=12.0 tmin=458092801.0 tmax=458352001.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 4.48
user 3.36
sys 1.07

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/720785/ft1_filtered_4FGL_J0338.9-2848_daily_bin844.fits" evtable="EVENTS" scfile=/scratch/kocevski/720785/ft2_4FGL_J0338.9-2848_daily_bin844.fits sctable="SC_DATA" outfile=/scratch/kocevski/720785/ltcube_458092801_458352001_4FGL_J0338.9-2848_daily_bin844.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/720785/ft2_4FGL_J0338.9-2848_daily_bin844.fits
.....................!
real 14.80
user 13.32
sys 1.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/720785/ft1_filtered_4FGL_J0338.9-2848_daily_bin844.fits evtable="EVENTS" scfile=/scratch/kocevski/720785/ft2_4FGL_J0338.9-2848_daily_bin844.fits sctable="SC_DATA" expcube=/scratch/kocevski/720785/ltcube_458092801_458352001_4FGL_J0338.9-2848_daily_bin844.fits outfile=/scratch/kocevski/720785/expmap_458092801_458352001_4FGL_J0338.9-2848_daily_bin844.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/720785/ltcube_458092801_458352001_4FGL_J0338.9-2848_daily_bin844.fits
.....................!
real 194.50
user 187.51
sys 6.09

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/720785/ft1_filtered_4FGL_J0338.9-2848_daily_bin844.fits scfile=/scratch/kocevski/720785/ft2_4FGL_J0338.9-2848_daily_bin844.fits outfile=/scratch/kocevski/720785/cmap_458092801_458352001_4FGL_J0338.9-2848_daily_bin844.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.39
user 0.39
sys 0.98

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/720785/ft1_filtered_4FGL_J0338.9-2848_daily_bin844.fits scfile=/scratch/kocevski/720785/ft2_4FGL_J0338.9-2848_daily_bin844.fits outfile=/scratch/kocevski/720785/cmap_HighResolution_458092801_458352001_4FGL_J0338.9-2848_daily_bin844.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.39
user 0.38
sys 0.99

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/720785/ft1_filtered_4FGL_J0338.9-2848_daily_bin844.fits evtable="EVENTS" scfile=/scratch/kocevski/720785/ft2_4FGL_J0338.9-2848_daily_bin844.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/720785/Model_4FGL_J0338.9-2848_daily_bin844.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/720785/ft1_filtered_4FGL_J0338.9-2848_daily_bin844.fits.....................!
real 106.81
user 103.80
sys 2.42

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10374E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.5745       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    104.74       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .33209E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10477E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    25.767       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .39017E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5822       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6556       1.0000         .10000E-03   10000.    
    16 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    190.13       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .76736       1.0000         .10000E-03   10000.    
    20 'norm      '    2.1608       1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.100       1.0000         .10000E-03   10000.    
    22 'norm      '    4.0441       1.0000         .10000E-03   10000.    
    23 'norm      '    9.7584       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0608       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .73537       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=   4638.369     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     2939 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.362       -.31827E-06** at limit **
   2  Prefactor     .10000E-03    9.8167       -.12229E-07** at limit **
   3  norm          5.5745        3.7058        .37128E-07   -.17141E-04
   4  Prefactor     .10000E-03    19.333       -.48096E-06** at limit **
   5  Prefactor     104.62        227.30        .11892E-04    .82795E-05
   6  Prefactor     .10000E-03    162.33        .34676E-04** at limit **
   7  Prefactor     .10000E-03    66.449        .13746E-05** at limit **
   8  norm          25.768        7.0687       -.56032E-07    .39882E-04
   9  norm          .10000E-03    .40642       -.10359E-06** at limit **
  10  Prefactor     .10000E-03    21.735        .41263E-06** at limit **
  11  Prefactor     .10000E-03    536.75        .33641E-04** at limit **
  12  Prefactor     1.5820        1.6520        .68375E-07   -.84380E-04
  13  Prefactor     .10000E-03    1.1500        .18864E-06** at limit **
  14  Prefactor     .10000E-03    1.0665        .23901E-06** at limit **
  15  Prefactor     2.6663        30.631       -.32050E-05    .20113E-04
  16  norm          .10000E-03    .66020        .73832E-07** at limit **
  17  norm          .10000E-03    .47364        .35337E-06** at limit **
  18  Prefactor     190.09        160.28        .59295E-05   -.19136E-06
  19  Prefactor     .76850        2.9085       -.30627E-05    .15695E-03
  20  norm          2.1548        30.107       -.24003E-05    .62914E-05
  21  Prefactor     32.108        29.054        .34820E-05    .82196E-04
  22  norm          4.0442        .72298        .41648E-07   -.18950E-03
  23  norm          9.7603        8.5454       -.33302E-06    .67638E-05
  24  Normalizat    1.0603        .20376       -.97033E-06   -.32340E-04
  25  Prefactor     .73566        .20260       -.18696E-05   -.10867E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.57448
  Prefactor  = 0.0001
  Prefactor  = 104.617
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 25.768
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.58201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.66628
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 190.088
  Prefactor  = 0.768504
  norm       = 2.15475
  Prefactor  = 32.108
  norm       = 4.04417
  norm       = 9.76026
  Normalizat = 1.06034
  Prefactor  = 0.735655
 **********
 **   18 **HESSE 
 **********

 FCN=   4638.369     FROM HESSE     STATUS=OK           429 CALLS     3368 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.8649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.5745        3.7049        .10356E-03   -1.5236    
   4  Prefactor     .10000E-03    19.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     104.62        228.51        .19645E-03   -1.3659    
   6  Prefactor     .10000E-03    158.66        .61868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    66.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          25.768        7.0585        .78917E-04   -1.4692    
   9  norm          .10000E-03    .41596        .84665E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    558.42        .39050E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.5820        1.6533        .86386E-04   -1.5456    
  13  Prefactor     .10000E-03    1.1545        .71322E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.0703        .68698E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.6663        30.359        .25014E-03   -1.5381    
  16  norm          .10000E-03    2.3727        .10671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .48139        .45883E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     190.09        160.36        .14645E-03   -1.2942    
  19  Prefactor     .76850        2.8877        .21085E-03   -1.5533    
  20  norm          2.1548        30.058        .28022E-03   -1.5414    
  21  Prefactor     32.108        29.063        .70723E-04   -1.4574    
  22  norm          4.0442        .72422        .22885E-04   -1.5306    
  23  norm          9.7603        8.5534        .12828E-03   -1.5083    
  24  Normalizat    1.0603        .23173        .24560E-03   -.91036    
  25  Prefactor     .73566        .23361        .29306E-03   -1.0215    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60073e-10
Minuit parameter uncertainties:
  1  6.5212e-05
  2  3.59553e-05
  3  3.7051
  4  7.43361e-05
  5  230.479
  6  0.00045025
  7  0.000199959
  8  7.05875
  9  3.86268e-06
  10  1.60667e-05
  11  8.52396e-05
  12  1.65335
  13  1.86717e-06
  14  2.4228e-06
  15  18.0051
  16  3.01467e-05
  17  6.88978e-06
  18  160.732
  19  2.88818
  20  16.1052
  21  29.0754
  22  0.724221
  23  8.55451
  24  0.231952
  25  0.233923
Done.

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

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  1.000e-04  1.607e-05  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.357e-01  2.339e-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.060e+00  2.320e-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: 4.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/720785/likelihoodResults_458092801_458352001_4FGL_J0338.9-2848_daily_bin844.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) = 4638.36929629
delta logL = -0.000218628620132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4638.3690789
delta logL = -1.24577763927e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2025       1.0000          .0000       10.000    
     3 'Normalizat'    1.0603       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73566       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=   4638.369     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      272 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10457E-03    4.4962        .18142E-01** at limit **
   2  Index         2.1051        5.0630        .50000        .21896E-04
   3  Normalizat    1.0603        .26175E-02    .24560E-03   -.54327E-03
   4  Prefactor     .73566        .26573E-02    .29306E-03   -.45161E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010457
  Index      = 2.10511
  Normalizat = 1.06034
  Prefactor  = 0.735656
 **********
 **   18 **HESSE 
 **********

 FCN=   4638.369     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      301 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10457E-03    68.918        .27240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1051        7.8449        .50000       -.61747    
   3  Normalizat    1.0603        .10282E-01    .49120E-04   -.91036    
   4  Prefactor     .73566        .10439E-01    .58611E-04   -1.0215    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.62193e-09
Minuit parameter uncertainties:
  1  0.0355352
  2  199.983
  3  0.0102825
  4  0.0104386
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/720785': 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) = 4638.36907847
delta logL = -8.10360688774e-07

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  1.046e-04  3.554e-02  1.000e-04  1.000e+04 ( 1.000e-14)
259        Index:  2.105e+00  2.000e+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:  7.357e-01  1.044e-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:  1.060e+00  1.028e-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/720785/cmap_HighResolution_458092801_458352001_4FGL_J0338.9-2848_daily_bin844.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.73e-03', job_status='DONE', photon_flux_upper_limit='4.99e-08', time_completed='2021-08-18 21:25:11.325896', job_id='720785', GAL2='0.74', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1629347111.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='-8.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='844' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 21:25:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 720785: <4FGL_J0338.9-2848_daily_bin844> in cluster <slac> Done

Job <4FGL_J0338.9-2848_daily_bin844> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Aug 18 21:13:32 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 21:13:35 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:13:35 2021
Terminated at Wed Aug 18 21:25:11 2021
Results reported at Wed Aug 18 21:25:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0338.9-2848_daily_bin844 54.7447 -28.8009 458092801 458352001 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 :                                   674.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             387.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   696 sec.
    Turnaround time :                            699 sec.

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

