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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1076
RA = 57.1417, Dec = -27.8303
tmin = 518227201, tmax = 518486401
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='984025', job_status='RUN', time_executed='2021-08-19 13:24:37.916478', time_epoch_executed='1629404677.92' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1076'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/984025

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/984025/ft1_4FGL_J0348.5-2749_daily_bin1076.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/984025/ft2_4FGL_J0348.5-2749_daily_bin1076.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/984025/ft1_4FGL_J0348.5-2749_daily_bin1076.fits outfile=/scratch/kocevski/984025/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1076.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=518227201.0 tmax=518486401.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 12.76
user 3.41
sys 9.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/984025/ft2_4FGL_J0348.5-2749_daily_bin1076.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/984025/ft2_4FGL_J0348.5-2749_daily_bin1076.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/984025/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1076.fits evtable="EVENTS" outfile="/scratch/kocevski/984025/ft1_filtered_4FGL_J0348.5-2749_daily_bin1076.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 10.89
user 0.34
sys 10.51

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/984025/ft1_filtered_4FGL_J0348.5-2749_daily_bin1076.fits" evtable="EVENTS" scfile=/scratch/kocevski/984025/ft2_4FGL_J0348.5-2749_daily_bin1076.fits sctable="SC_DATA" outfile=/scratch/kocevski/984025/ltcube_518227201_518486401_4FGL_J0348.5-2749_daily_bin1076.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/984025/ft2_4FGL_J0348.5-2749_daily_bin1076.fits
.....................!
real 24.15
user 13.22
sys 10.85

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/984025/ft1_filtered_4FGL_J0348.5-2749_daily_bin1076.fits evtable="EVENTS" scfile=/scratch/kocevski/984025/ft2_4FGL_J0348.5-2749_daily_bin1076.fits sctable="SC_DATA" expcube=/scratch/kocevski/984025/ltcube_518227201_518486401_4FGL_J0348.5-2749_daily_bin1076.fits outfile=/scratch/kocevski/984025/expmap_518227201_518486401_4FGL_J0348.5-2749_daily_bin1076.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/984025/ltcube_518227201_518486401_4FGL_J0348.5-2749_daily_bin1076.fits
.....................!
real 204.95
user 187.97
sys 16.50

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 160 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.5-2749 @ 57.1417 -27.8303

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/984025/ft1_filtered_4FGL_J0348.5-2749_daily_bin1076.fits scfile=/scratch/kocevski/984025/ft2_4FGL_J0348.5-2749_daily_bin1076.fits outfile=/scratch/kocevski/984025/cmap_518227201_518486401_4FGL_J0348.5-2749_daily_bin1076.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.1417 yref=-27.8303 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 9.49
user 0.38
sys 9.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/984025/ft1_filtered_4FGL_J0348.5-2749_daily_bin1076.fits scfile=/scratch/kocevski/984025/ft2_4FGL_J0348.5-2749_daily_bin1076.fits outfile=/scratch/kocevski/984025/cmap_HighResolution_518227201_518486401_4FGL_J0348.5-2749_daily_bin1076.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.1417 yref=-27.8303 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 9.46
user 0.37
sys 9.05

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/984025/ft1_filtered_4FGL_J0348.5-2749_daily_bin1076.fits evtable="EVENTS" scfile=/scratch/kocevski/984025/ft2_4FGL_J0348.5-2749_daily_bin1076.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/984025/Model_4FGL_J0348.5-2749_daily_bin1076.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/984025/ft1_filtered_4FGL_J0348.5-2749_daily_bin1076.fits.....................!
real 124.01
user 110.66
sys 13.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/984025/ft1_filtered_4FGL_J0348.5-2749_daily_bin1076.fits', '/scratch/kocevski/984025/ft2_4FGL_J0348.5-2749_daily_bin1076.fits', expMap='/scratch/kocevski/984025/expmap_518227201_518486401_4FGL_J0348.5-2749_daily_bin1076.fits', expCube='/scratch/kocevski/984025/ltcube_518227201_518486401_4FGL_J0348.5-2749_daily_bin1076.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/984025/Model_4FGL_J0348.5-2749_daily_bin1076.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0348.5-2749'

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.231e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  2.088e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
249         beta:  6.312e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
250           Eb:  6.046e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/984025/ft1_filtered_4FGL_J0348.5-2749_daily_bin1076.fits
Spacecraft file(s): /scratch/kocevski/984025/ft2_4FGL_J0348.5-2749_daily_bin1076.fits
Exposure map: /scratch/kocevski/984025/expmap_518227201_518486401_4FGL_J0348.5-2749_daily_bin1076.fits
Exposure cube: /scratch/kocevski/984025/ltcube_518227201_518486401_4FGL_J0348.5-2749_daily_bin1076.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/984025/Model_4FGL_J0348.5-2749_daily_bin1076.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) = 4982.32173713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.538       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .35604E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.5987       1.0000         .10000E-03   10000.    
     7 'Prefactor '    77.128       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8185       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15154E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14110E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.4724       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    103.76       1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.099       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.3709       1.0000         .10000E-03   10000.    
    21 'norm      '    .68541       1.0000         .10000E-03   10000.    
    22 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    31.706       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1699       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .83554       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4982.282     FROM MIGRAD    STATUS=CONVERGED    622 CALLS     3148 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.539        16.871        .34405E-06   -.36075E-05
   2  norm          .10000E-03    1.9446       -.59506E-07** at limit **
   3  Prefactor     .10000E-03    85.877       -.36188E-06** at limit **
   4  Prefactor     .10000E-03    70.037        .12350E-04** at limit **
   5  Prefactor     .10000E-03    17.388       -.33857E-06** at limit **
   6  norm          2.5982        2.5835       -.19634E-06   -.21818E-03
   7  Prefactor     77.145        77.005       -.11100E-05   -.44955E-04
   8  Prefactor     2.8347        126.12       -.78725E-05   -.34642E-04
   9  Prefactor     .10000E-03    1.1070       -.14844E-06** at limit **
  10  Prefactor     .10000E-03    2.5573        .25342E-06** at limit **
  11  Prefactor     .10000E-03    2.2544       -.22954E-06** at limit **
  12  Prefactor     .10000E-03    20.012       -.31954E-05** at limit **
  13  norm          5.4728        1.6024        .23714E-06    .83156E-03
  14  Prefactor     .10000E-03    13.731       -.45015E-06** at limit **
  15  norm          .10000E-03    .51675       -.31523E-07** at limit **
  16  Prefactor     103.67        120.74        .84939E-05    .13009E-03
  17  Prefactor     33.085        29.526        .12759E-05    .10354E-03
  18  Prefactor     .10000E-03    .73282       -.69864E-07** at limit **
  19  norm          .10000E-03    15.091       -.10023E-05** at limit **
  20  Prefactor     4.3820        47.683        .15144E-05    .16668E-04
  21  norm          .68544        .38902       -.85224E-07   -.11848E-02
  22  norm          .10000E-03    4.0875        .43186E-06** at limit **
  23  Prefactor     .10000E-03    3.2858       -.68342E-07** at limit **
  24  Prefactor     31.686        30.749        .12958E-05    .62305E-04
  25  Normalizat    1.1699        .23197       -.48247E-05    .16906E-03
  26  Prefactor     .83559        .21822        .51258E-05   -.16447E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.539
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 2.59817
  Prefactor  = 77.1451
  Prefactor  = 2.83473
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 5.47282
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 103.671
  Prefactor  = 33.0848
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.38205
  norm       = 0.685436
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.6861
  Normalizat = 1.16992
  Prefactor  = 0.835587
 **********
 **   18 **HESSE 
 **********

 FCN=   4982.282     FROM HESSE     STATUS=OK           452 CALLS     3600 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.539        16.867        .93023E-04   -1.4847    
   2  norm          .10000E-03    1.9791        .96110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    85.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    73.433        .50508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.5982        2.5846        .10998E-03   -1.5386    
   7  Prefactor     77.145        77.255        .45724E-04   -1.3949    
   8  Prefactor     2.8347        125.34        .24227E-03   -1.5371    
   9  Prefactor     .10000E-03    1.1406        .14495E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.8452        .21276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.3040        .10338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    85.638        .52279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.4728        1.5902        .44535E-04   -1.5240    
  14  Prefactor     .10000E-03    13.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .90878        .98381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     103.67        122.95        .19737E-03   -1.3668    
  17  Prefactor     33.085        29.606        .69651E-04   -1.4557    
  18  Prefactor     .10000E-03    .73637        .59007E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    15.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.3820        47.434        .19265E-03   -1.5289    
  21  norm          .68544        .38750        .30973E-04   -1.5542    
  22  norm          .10000E-03    4.1054        .13947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.3836        .24980E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     31.686        30.715        .71160E-04   -1.4582    
  25  Normalizat    1.1699        .23916        .24423E-03   -.87538    
  26  Prefactor     .83559        .22712        .27946E-03   -.98430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07743e-09
Minuit parameter uncertainties:
  1  16.8711
  2  2.2786e-06
  3  9.83104e-05
  4  0.000786098
  5  3.06014e-05
  6  2.58466
  7  77.3555
  8  37.7823
  9  4.63193e-06
  10  7.38906e-05
  11  8.40681e-06
  12  0.000960793
  13  1.59026
  14  4.8255e-05
  15  8.99284e-06
  16  123.259
  17  29.6187
  18  1.81751e-06
  19  0.000136187
  20  28.8634
  21  0.387506
  22  2.39673e-05
  23  5.01548e-06
  24  30.7306
  25  0.239387
  26  0.227376
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  5.473e+00  1.590e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  2.088e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
249         beta:  6.312e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
250           Eb:  6.046e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  8.356e-01  2.274e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  1.170e+00  2.394e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 35.00
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 1.95e-07 +/- 5.67e-08
Energy Flux (Fixed Index): 9.21e-05 +/- 2.68e-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) = 4982.24193413
delta logL = 0.0404909445397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4982.23947691
delta logL = 0.0429481694391

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4703       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0007       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1858       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82567       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4982.239     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4670        1.7171        .42949E-02    .43460E-04
   2  alpha         2.0007        .30625        .17946       -.13269E-04
   3  Normalizat    1.1858        .19495        .54927E-01    .18106E-05
   4  Prefactor     .82574        .18927        .63523E-01    .79275E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.46703
  alpha      = 2.00073
  Normalizat = 1.18577
  Prefactor  = 0.825743
 **********
 **   18 **HESSE 
 **********

 FCN=   4982.239     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4670        1.5727        .45182E-04   -1.5240    
   2  alpha         2.0007        .29122        .76440E-02   -.20106    
   3  Normalizat    1.1858        .23136        .24288E-03   -.87044    
   4  Prefactor     .82574        .22259        .28097E-03   -.98786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.10018e-11
Minuit parameter uncertainties:
  1  1.5727
  2  0.291913
  3  0.231559
  4  0.222832
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/984025': 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) = 4982.23947455
delta logL = 0.0429505256043

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  5.467e+00  1.573e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  2.001e+00  2.919e-01  0.000e+00  5.000e+00 ( 1.000e+00)
249         beta:  6.312e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
250           Eb:  6.046e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  8.257e-01  2.228e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  1.186e+00  2.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 35.06
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 2.00 +/- 0.29
Photon Flux (Free Index): 1.81e-07 +/- 6.96e-08
Energy Flux (Free Index): 9.92e-05 +/- 3.90e-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/984025/cmap_HighResolution_518227201_518486401_4FGL_J0348.5-2749_daily_bin1076.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.95e-07', energy_flux2='9.92e-05', photon_flux_error='5.67e-08', dlogl='4.30e-02', energy_flux='9.21e-05', photon_flux2='1.81e-07', job_status='DONE', time_completed='2021-08-19 13:37:18.196724', photon_index_error2='0.29', photon_index2='2.00', ts='35.00', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='3.90e-05', EG='1.17', time_epoch_completed='1629405438.2', return_code='0', job_id='984025', GAL2='0.83', EG2='1.19', return_code2='0', energy_flux_error='2.68e-05', photon_flux_error2='6.96e-08', ts2='35.06', photon_index='2.09' WHERE bin_id='1076' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:37:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 984025: <4FGL_J0348.5-2749_daily_bin1076> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin1076> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Aug 19 13:20:58 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:21:00 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:21:00 2021
Terminated at Thu Aug 19 13:37:20 2021
Results reported at Thu Aug 19 13:37:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1076 57.1417 -27.8303 518227201 518486401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0348.5-2749 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   904.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            982 sec.

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

