/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 153 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0348.6-1609_daily_bin1438
RA = 57.1532, Dec = -16.1654
tmin = 612057601, tmax = 612316801
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='997990', job_status='RUN', time_executed='2021-08-19 14:03:19.963537', time_epoch_executed='1629406999.96' WHERE source_name='4FGL J0348.6-1609' and cadence='daily' and bin_id='1438'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/997990

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/997990/ft1_4FGL_J0348.6-1609_daily_bin1438.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/997990/ft2_4FGL_J0348.6-1609_daily_bin1438.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/997990/ft1_4FGL_J0348.6-1609_daily_bin1438.fits outfile=/scratch/kocevski/997990/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin1438.fits ra=57.1532 dec=-16.1654 rad=12.0 tmin=612057601.0 tmax=612316801.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.73
user 4.29
sys 0.43

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/997990/ft1_filtered_4FGL_J0348.6-1609_daily_bin1438.fits" evtable="EVENTS" scfile=/scratch/kocevski/997990/ft2_4FGL_J0348.6-1609_daily_bin1438.fits sctable="SC_DATA" outfile=/scratch/kocevski/997990/ltcube_612057601_612316801_4FGL_J0348.6-1609_daily_bin1438.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/997990/ft2_4FGL_J0348.6-1609_daily_bin1438.fits
.....................!
real 12.10
user 11.45
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/997990/ft1_filtered_4FGL_J0348.6-1609_daily_bin1438.fits evtable="EVENTS" scfile=/scratch/kocevski/997990/ft2_4FGL_J0348.6-1609_daily_bin1438.fits sctable="SC_DATA" expcube=/scratch/kocevski/997990/ltcube_612057601_612316801_4FGL_J0348.6-1609_daily_bin1438.fits outfile=/scratch/kocevski/997990/expmap_612057601_612316801_4FGL_J0348.6-1609_daily_bin1438.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/997990/ltcube_612057601_612316801_4FGL_J0348.6-1609_daily_bin1438.fits
.....................!
real 191.07
user 185.41
sys 5.28

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/997990/ft1_filtered_4FGL_J0348.6-1609_daily_bin1438.fits scfile=/scratch/kocevski/997990/ft2_4FGL_J0348.6-1609_daily_bin1438.fits outfile=/scratch/kocevski/997990/cmap_612057601_612316801_4FGL_J0348.6-1609_daily_bin1438.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.75
user 0.36
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/997990/ft1_filtered_4FGL_J0348.6-1609_daily_bin1438.fits scfile=/scratch/kocevski/997990/ft2_4FGL_J0348.6-1609_daily_bin1438.fits outfile=/scratch/kocevski/997990/cmap_HighResolution_612057601_612316801_4FGL_J0348.6-1609_daily_bin1438.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.75
user 0.37
sys 0.37

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/997990/ft1_filtered_4FGL_J0348.6-1609_daily_bin1438.fits evtable="EVENTS" scfile=/scratch/kocevski/997990/ft2_4FGL_J0348.6-1609_daily_bin1438.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/997990/Model_4FGL_J0348.6-1609_daily_bin1438.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/997990/ft1_filtered_4FGL_J0348.6-1609_daily_bin1438.fits.....................!
real 131.93
user 130.17
sys 1.52

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/997990/ft1_filtered_4FGL_J0348.6-1609_daily_bin1438.fits', '/scratch/kocevski/997990/ft2_4FGL_J0348.6-1609_daily_bin1438.fits', expMap='/scratch/kocevski/997990/expmap_612057601_612316801_4FGL_J0348.6-1609_daily_bin1438.fits', expCube='/scratch/kocevski/997990/ltcube_612057601_612316801_4FGL_J0348.6-1609_daily_bin1438.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/997990/Model_4FGL_J0348.6-1609_daily_bin1438.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/997990/ft1_filtered_4FGL_J0348.6-1609_daily_bin1438.fits
Spacecraft file(s): /scratch/kocevski/997990/ft2_4FGL_J0348.6-1609_daily_bin1438.fits
Exposure map: /scratch/kocevski/997990/expmap_612057601_612316801_4FGL_J0348.6-1609_daily_bin1438.fits
Exposure cube: /scratch/kocevski/997990/ltcube_612057601_612316801_4FGL_J0348.6-1609_daily_bin1438.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/997990/Model_4FGL_J0348.6-1609_daily_bin1438.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) = 5826.05893592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .27307E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    69.971       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1869       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10519E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.8973       1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.518       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.930       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.5776       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2971       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .79295       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1648       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.

 FCN=   5826.052     FROM MIGRAD    STATUS=CONVERGED    527 CALLS     2641 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.020        .67512E-06** at limit **
   2  Prefactor     .10000E-03    5.4011        .97592E-06** at limit **
   3  Prefactor     .10002E-03    2.6358       -.90737E-06** at limit **
   4  Prefactor     69.833        144.25       -.16043E-03    .31050E-05
   5  Prefactor     .10000E-03    1.8312        .61880E-06** at limit **
   6  Prefactor     .10000E-03    3.3026       -.81132E-06** at limit **
   7  Prefactor     .10000E-03    7.9423        .42498E-05** at limit **
   8  Prefactor     .10000E-03    29.921        .34495E-06** at limit **
   9  Prefactor     3.1873        2.0986        .11572E-06    .52105E-04
  10  Prefactor     .10000E-03    2.3449       -.95483E-07** at limit **
  11  Prefactor     .10000E-03    1.6924        .30816E-07** at limit **
  12  norm          6.8974        1.6538       -.59436E-07    .24327E-03
  13  Prefactor     31.520        27.527        .12867E-05    .24962E-04
  14  norm          .10000E-03    .52970       -.75640E-07** at limit **
  15  Prefactor     25.928        29.097       -.26615E-05    .33747E-04
  16  Prefactor     7.5777        3.3614       -.56214E-07    .17658E-03
  17  norm          .10000E-03    4.0991       -.84069E-06** at limit **
  18  Prefactor     .10000E-03    7.4010       -.45514E-05** at limit **
  19  Prefactor     .10000E-03    12.263       -.12451E-05** at limit **
  20  Prefactor     1.2960        4.3468       -.23324E-05   -.10728E-02
  21  Prefactor     .10000E-03    43.634       -.36615E-06** at limit **
  22  Normalizat    .79300        .19693        .31542E-05    .17417E-03
  23  Prefactor     1.1648        .15267        .17162E-05    .19564E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 69.833
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.18727
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.89735
  Prefactor  = 31.5199
  norm       = 0.0001
  Prefactor  = 25.9283
  Prefactor  = 7.57773
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.29598
  Prefactor  = 0.0001
  Normalizat = 0.793005
  Prefactor  = 1.16482
 **********
 **   18 **HESSE 
 **********

 FCN=   5826.052     FROM HESSE     STATUS=OK           372 CALLS     3013 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.4058        .17325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    67.881        .23607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     69.833        144.20        .23994E-03   -1.4035    
   5  Prefactor     .10000E-03    3.5500        .20107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.3046        .13546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.0284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.1873        2.0772        .85222E-04   -1.5351    
  10  Prefactor     .10000E-03    2.3797        .11393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.0156        .19119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.8974        1.6520        .46259E-04   -1.5183    
  13  Prefactor     31.520        27.498        .71370E-04   -1.4585    
  14  norm          .10000E-03    .78257        .10631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.928        29.074        .78669E-04   -1.4689    
  16  Prefactor     7.5777        3.3424        .88497E-04   -1.5157    
  17  norm          .10000E-03    4.1017        .15093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.4069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.673        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.2960        4.3534        .27185E-03   -1.5480    
  21  Prefactor     .10000E-03    45.260        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .79300        .22125        .29807E-03   -1.0033    
  23  Prefactor     1.1648        .17437        .20544E-03   -.87421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48065e-09
Minuit parameter uncertainties:
  1  1.48696e-05
  2  5.73494e-06
  3  0.00247887
  4  144.931
  5  0.000111047
  6  1.01162e-05
  7  4.88441e-05
  8  1.95481e-05
  9  2.07723
  10  2.98309e-06
  11  2.45263e-05
  12  1.652
  13  27.5093
  14  4.89291e-06
  15  29.0903
  16  3.34249
  17  3.62428e-06
  18  7.73598e-06
  19  8.80903e-05
  20  4.35441
  21  0.00014532
  22  0.221498
  23  0.174453
Done.

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

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  3.152e+01  2.751e+01  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.165e+00  1.745e-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:  7.930e-01  2.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.60
Ra Dec: 57.153 -16.165
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 4.54e-08 +/- 3.96e-08
Energy Flux (Fixed Index): 1.55e-05 +/- 1.35e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5825.2976636
delta logL = 0.75414602279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5825.25532993
delta logL = 0.796479692036

Fit tolerance = 1e-08

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

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

 FCN=   5825.255     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      214 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.468        21.379        .21569E-02   -.87127E-05
   2  Index         1.4549        .43027        .22986       -.55974E-04
   3  Normalizat    .81901        .18435        .66444E-01    .15687E-04
   4  Prefactor     1.1596        .15173        .35667E-01   -.13756E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.4679
  Index      = 1.45486
  Normalizat = 0.819008
  Prefactor  = 1.15956
 **********
 **   18 **HESSE 
 **********

 FCN=   5825.255     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.468        31.144        .86276E-04   -1.4781    
   2  Index         1.4549        .71393        .88920E-02   -.78812    
   3  Normalizat    .81901        .20998        .29395E-03   -.99367    
   4  Prefactor     1.1596        .17324        .20598E-03   -.87585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19072e-09
Minuit parameter uncertainties:
  1  31.1671
  2  0.718905
  3  0.210184
  4  0.173327
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/997990': 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) = 5825.25532601
delta logL = 0.796483611725

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  2.147e+01  3.117e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  1.455e+00  7.189e-01  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.160e+00  1.733e-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:  8.190e-01  2.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.19
Ra Dec: 57.153 -16.165
Photon Index (Free Index): 1.45 +/- 0.72
Photon Flux (Free Index): 1.16e-08 +/- 1.90e-08
Energy Flux (Free Index): 4.26e-05 +/- 6.20e-05

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/997990/cmap_HighResolution_612057601_612316801_4FGL_J0348.6-1609_daily_bin1438.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.54e-08', energy_flux2='4.26e-05', photon_flux_error='3.96e-08', dlogl='7.96e-01', energy_flux='1.55e-05', photon_flux2='1.16e-08', job_status='DONE', time_completed='2021-08-19 14:14:06.868843', photon_index_error2='0.72', photon_index2='1.45', ts='4.60', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='6.20e-05', EG='0.79', time_epoch_completed='1629407646.87', return_code='0', job_id='997990', GAL2='1.16', EG2='0.82', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='1.90e-08', ts2='6.19', photon_index='2.37' WHERE bin_id='1438' AND source_name='4FGL J0348.6-1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 14:14:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 997990: <4FGL_J0348.6-1609_daily_bin1438> in cluster <slac> Done

Job <4FGL_J0348.6-1609_daily_bin1438> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Aug 19 14:00:30 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 14:00:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 14:00:32 2021
Terminated at Thu Aug 19 14:14:07 2021
Results reported at Thu Aug 19 14:14:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.6-1609_daily_bin1438 57.1532 -16.1654 612057601 612316801 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 :                                   644.26 sec.
    Max Memory :                                 1149 MB
    Average Memory :                             291.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            817 sec.

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

