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


Performing analysis on: 4FGL_J0348.6-1609_daily_bin168
RA = 57.1532, Dec = -16.1654
tmin = 282873601, tmax = 283132801
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='990137', job_status='RUN', time_executed='2021-08-19 13:36:15.423345', time_epoch_executed='1629405375.42' WHERE source_name='4FGL J0348.6-1609' and cadence='daily' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/990137

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/990137/ft1_4FGL_J0348.6-1609_daily_bin168.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/990137/ft2_4FGL_J0348.6-1609_daily_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/990137/ft1_4FGL_J0348.6-1609_daily_bin168.fits outfile=/scratch/kocevski/990137/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin168.fits ra=57.1532 dec=-16.1654 rad=12.0 tmin=282873601.0 tmax=283132801.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 3.33
user 3.04
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/990137/ft2_4FGL_J0348.6-1609_daily_bin168.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/990137/ft2_4FGL_J0348.6-1609_daily_bin168.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/990137/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/990137/ft1_filtered_4FGL_J0348.6-1609_daily_bin168.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 0.56
user 0.33
sys 0.22

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/990137/ft1_filtered_4FGL_J0348.6-1609_daily_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/990137/ft2_4FGL_J0348.6-1609_daily_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/990137/ltcube_282873601_283132801_4FGL_J0348.6-1609_daily_bin168.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/990137/ft2_4FGL_J0348.6-1609_daily_bin168.fits
.....................!
real 12.29
user 11.86
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/990137/ft1_filtered_4FGL_J0348.6-1609_daily_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/990137/ft2_4FGL_J0348.6-1609_daily_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/990137/ltcube_282873601_283132801_4FGL_J0348.6-1609_daily_bin168.fits outfile=/scratch/kocevski/990137/expmap_282873601_283132801_4FGL_J0348.6-1609_daily_bin168.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/990137/ltcube_282873601_283132801_4FGL_J0348.6-1609_daily_bin168.fits
.....................!
real 190.13
user 185.08
sys 4.65

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 159 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 J0348.6-1609 @ 57.1532 -16.1654

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/990137/ft1_filtered_4FGL_J0348.6-1609_daily_bin168.fits scfile=/scratch/kocevski/990137/ft2_4FGL_J0348.6-1609_daily_bin168.fits outfile=/scratch/kocevski/990137/cmap_282873601_283132801_4FGL_J0348.6-1609_daily_bin168.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=57.1532 yref=-16.1654 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 0.61
user 0.37
sys 0.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/990137/ft1_filtered_4FGL_J0348.6-1609_daily_bin168.fits scfile=/scratch/kocevski/990137/ft2_4FGL_J0348.6-1609_daily_bin168.fits outfile=/scratch/kocevski/990137/cmap_HighResolution_282873601_283132801_4FGL_J0348.6-1609_daily_bin168.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=57.1532 yref=-16.1654 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 0.61
user 0.40
sys 0.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/990137/ft1_filtered_4FGL_J0348.6-1609_daily_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/990137/ft2_4FGL_J0348.6-1609_daily_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/990137/Model_4FGL_J0348.6-1609_daily_bin168.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/990137/ft1_filtered_4FGL_J0348.6-1609_daily_bin168.fits.....................!
real 116.86
user 115.36
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/990137/ft1_filtered_4FGL_J0348.6-1609_daily_bin168.fits', '/scratch/kocevski/990137/ft2_4FGL_J0348.6-1609_daily_bin168.fits', expMap='/scratch/kocevski/990137/expmap_282873601_283132801_4FGL_J0348.6-1609_daily_bin168.fits', expCube='/scratch/kocevski/990137/ltcube_282873601_283132801_4FGL_J0348.6-1609_daily_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/990137/Model_4FGL_J0348.6-1609_daily_bin168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0348.6-1609'

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  9.725e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.371e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  9.291e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/990137/ft1_filtered_4FGL_J0348.6-1609_daily_bin168.fits
Spacecraft file(s): /scratch/kocevski/990137/ft2_4FGL_J0348.6-1609_daily_bin168.fits
Exposure map: /scratch/kocevski/990137/expmap_282873601_283132801_4FGL_J0348.6-1609_daily_bin168.fits
Exposure cube: /scratch/kocevski/990137/ltcube_282873601_283132801_4FGL_J0348.6-1609_daily_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/990137/Model_4FGL_J0348.6-1609_daily_bin168.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) = 5120.84177361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .21460       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.084       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.857       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.093       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .58868       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10672E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    31.539       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13352E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .33272E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.2209       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0093       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0996       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+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=   5120.816     FROM MIGRAD    STATUS=CONVERGED    926 CALLS     3030 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    65.348        .18142E-02** at limit **
   2  Prefactor     .10000E-03    48.070        .18142E-02** at limit **
   3  Prefactor     .10000E-03    8.0404        .36285E-03** at limit **
   4  Prefactor     .10000E-03    92.525        .18142E-02** at limit **
   5  Prefactor     .19317        26.343        .23785E-02    .53891E-04
   6  Prefactor     19.110        19.125        .91684E-04   -.48359E-04
   7  Prefactor     11.857        12.407        .11634E-03   -.26483E-04
   8  Prefactor     22.033        40.773        .85217E-04    .80045E-05
   9  Prefactor     .10000E-03    .69052        .57918E-03** at limit **
  10  Prefactor     .58864        4.0832        .27639E-03   -.51087E-04
  11  Prefactor     .10000E-03    1.7798        .92773E-03** at limit **
  12  norm          .10000E-03    .86823        .10459E-02** at limit **
  13  Prefactor     .10000E-03    28.358        .18142E-02** at limit **
  14  norm          .10000E-03    .47157        .47484E-03** at limit **
  15  Prefactor     .10000E-03    46.066        .36285E-03** at limit **
  16  Prefactor     .10000E-03    1.7906        .18444E-03** at limit **
  17  norm          31.482        23.845        .71347E-04   -.68358E-04
  18  Prefactor     .10002E-03    201.45        .70799E-02** at limit **
  19  Prefactor     .10001E-03    67.749        .36634E-02** at limit **
  20  Prefactor     6.2210        4.6268        .63702E-03   -.27452E-03
  21  Prefactor     .10000E-03    7.9783        .18142E-02** at limit **
  22  Normalizat    1.0087        .23968        .27664E-03   -.16582E-03
  23  Prefactor     1.1001        .18515        .20964E-03   -.97613E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.193168
  Prefactor  = 19.1102
  Prefactor  = 11.8569
  Prefactor  = 22.0325
  Prefactor  = 0.0001
  Prefactor  = 0.588639
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 31.4824
  Prefactor  = 0.000100025
  Prefactor  = 0.000100009
  Prefactor  = 6.22099
  Prefactor  = 0.0001
  Normalizat = 1.00868
  Prefactor  = 1.10008
 **********
 **   18 **HESSE 
 **********

 FCN=   5120.816     FROM HESSE     STATUS=OK           348 CALLS     3378 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    65.350        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    48.113        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.0408        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    92.525        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .19317        26.018        .95141E-04   -1.5620    
   6  Prefactor     19.110        18.940        .36674E-05   -1.4833    
   7  Prefactor     11.857        12.406        .46534E-05   -1.5019    
   8  Prefactor     22.033        40.790        .34087E-05   -1.4769    
   9  Prefactor     .10000E-03    .69053        .11584E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .58864        4.0811        .11056E-04   -1.5555    
  11  Prefactor     .10000E-03    1.7799        .18555E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .86902        .20918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    28.365        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .47160        .94968E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    46.068        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.7906        .36888E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          31.482        23.775        .28539E-05   -1.4585    
  18  Prefactor     .10002E-03    207.06        .28320E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    70.606        .14654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.2210        4.6263        .25481E-04   -1.5209    
  21  Prefactor     .10000E-03    7.9784        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0087        .23953        .11066E-04   -.92740    
  23  Prefactor     1.1001        .18486        .41928E-04   -.89464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.01211e-10
Minuit parameter uncertainties:
  1  0.000209327
  2  9.30827e-05
  3  1.46713e-05
  4  0.000326878
  5  4.48451
  6  18.9458
  7  12.4089
  8  40.8416
  9  1.5875e-06
  10  3.0999
  11  6.42971e-06
  12  2.13917e-05
  13  6.7289e-05
  14  1.39192e-06
  15  2.63539e-05
  16  5.74979e-06
  17  23.7826
  18  0.00453142
  19  0.00157487
  20  4.62656
  21  4.40699e-06
  22  0.239782
  23  0.184964
Done.

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

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  6.729e-05  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.371e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  9.291e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  1.100e+00  1.850e-01  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
503   Normalization:  1.009e+00  2.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 57.153 -16.165
Photon Flux Upper Limit: 8.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/990137/likelihoodResults_282873601_283132801_4FGL_J0348.6-1609_daily_bin168.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) = 5120.81661063
delta logL = -0.00016797711487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5120.81644366
delta logL = -1.00148645288e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12470E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6262       1.0000          .0000       10.000    
     3 'Normalizat'    1.0087       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1001       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+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=   5120.816     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      273 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10160E-03    133.78        .18142E-02** at limit **
   2  Index         2.5629        5.4668        .50000        .11009E-04
   3  Normalizat    1.0087        .12461E-01    .27664E-03   -.10685E-05
   4  Prefactor     1.1001        .98643E-02    .20964E-03   -.25596E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101602
  Index      = 2.56294
  Normalizat = 1.00869
  Prefactor  = 1.10008
 **********
 **   18 **HESSE 
 **********

 FCN=   5120.816     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      302 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10160E-03    573.44        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5629        8.6599        .50000       -.50912    
   3  Normalizat    1.0087        .26507E-01    .11066E-04   -.92740    
   4  Prefactor     1.1001        .20984E-01    .83856E-05   -.89464    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.61832e-09
Minuit parameter uncertainties:
  1  0.0612221
  2  513.065
  3  0.0265075
  4  0.0209837
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/990137': 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) = 5120.81644296
delta logL = -3.07564732793e-07

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.016e-04  6.122e-02  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.563e+00  5.131e+02  0.000e+00  1.000e+01 (-1.000e+00)
279        Scale:  9.291e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  1.100e+00  2.098e-02  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
503   Normalization:  1.009e+00  2.651e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 57.153 -16.165

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/990137/cmap_HighResolution_282873601_283132801_4FGL_J0348.6-1609_daily_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.76e-03', job_status='DONE', photon_flux_upper_limit='8.77e-08', time_completed='2021-08-19 13:47:12.291974', job_id='990137', GAL2='1.10', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1629406032.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='-3.08e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='168' AND source_name='4FGL J0348.6-1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:47:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 990137: <4FGL_J0348.6-1609_daily_bin168> in cluster <slac> Done

Job <4FGL_J0348.6-1609_daily_bin168> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Aug 19 13:35:56 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:35:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 13:35:58 2021
Terminated at Thu Aug 19 13:47:13 2021
Results reported at Thu Aug 19 13:47:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.6-1609_daily_bin168 57.1532 -16.1654 282873601 283132801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0348.6-1609 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   655.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             340.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   674 sec.
    Turnaround time :                            677 sec.

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

