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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1041
RA = 57.1417, Dec = -27.8303
tmin = 509155201, tmax = 509414401
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='983969', job_status='RUN', time_executed='2021-08-19 13:22:31.049882', time_epoch_executed='1629404551.05' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1041'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/983969

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/983969/ft1_4FGL_J0348.5-2749_daily_bin1041.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/983969/ft2_4FGL_J0348.5-2749_daily_bin1041.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/983969/ft1_4FGL_J0348.5-2749_daily_bin1041.fits outfile=/scratch/kocevski/983969/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1041.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=509155201.0 tmax=509414401.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 8.92
user 3.40
sys 5.47

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/983969/ft2_4FGL_J0348.5-2749_daily_bin1041.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/983969/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1041.fits evtable="EVENTS" outfile="/scratch/kocevski/983969/ft1_filtered_4FGL_J0348.5-2749_daily_bin1041.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 5.80
user 0.33
sys 5.44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/983969/ft1_filtered_4FGL_J0348.5-2749_daily_bin1041.fits" evtable="EVENTS" scfile=/scratch/kocevski/983969/ft2_4FGL_J0348.5-2749_daily_bin1041.fits sctable="SC_DATA" outfile=/scratch/kocevski/983969/ltcube_509155201_509414401_4FGL_J0348.5-2749_daily_bin1041.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/983969/ft2_4FGL_J0348.5-2749_daily_bin1041.fits
.....................!
real 18.32
user 12.04
sys 6.24

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/983969/ft1_filtered_4FGL_J0348.5-2749_daily_bin1041.fits evtable="EVENTS" scfile=/scratch/kocevski/983969/ft2_4FGL_J0348.5-2749_daily_bin1041.fits sctable="SC_DATA" expcube=/scratch/kocevski/983969/ltcube_509155201_509414401_4FGL_J0348.5-2749_daily_bin1041.fits outfile=/scratch/kocevski/983969/expmap_509155201_509414401_4FGL_J0348.5-2749_daily_bin1041.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/983969/ltcube_509155201_509414401_4FGL_J0348.5-2749_daily_bin1041.fits
.....................!
real 196.92
user 185.09
sys 11.49

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/983969/ft1_filtered_4FGL_J0348.5-2749_daily_bin1041.fits scfile=/scratch/kocevski/983969/ft2_4FGL_J0348.5-2749_daily_bin1041.fits outfile=/scratch/kocevski/983969/cmap_509155201_509414401_4FGL_J0348.5-2749_daily_bin1041.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 5.68
user 0.38
sys 5.27

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/983969/ft1_filtered_4FGL_J0348.5-2749_daily_bin1041.fits scfile=/scratch/kocevski/983969/ft2_4FGL_J0348.5-2749_daily_bin1041.fits outfile=/scratch/kocevski/983969/cmap_HighResolution_509155201_509414401_4FGL_J0348.5-2749_daily_bin1041.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 5.73
user 0.38
sys 5.32

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/983969/ft1_filtered_4FGL_J0348.5-2749_daily_bin1041.fits evtable="EVENTS" scfile=/scratch/kocevski/983969/ft2_4FGL_J0348.5-2749_daily_bin1041.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/983969/Model_4FGL_J0348.5-2749_daily_bin1041.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/983969/ft1_filtered_4FGL_J0348.5-2749_daily_bin1041.fits.....................!
real 128.91
user 120.56
sys 8.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/983969/ft1_filtered_4FGL_J0348.5-2749_daily_bin1041.fits', '/scratch/kocevski/983969/ft2_4FGL_J0348.5-2749_daily_bin1041.fits', expMap='/scratch/kocevski/983969/expmap_509155201_509414401_4FGL_J0348.5-2749_daily_bin1041.fits', expCube='/scratch/kocevski/983969/ltcube_509155201_509414401_4FGL_J0348.5-2749_daily_bin1041.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/983969/Model_4FGL_J0348.5-2749_daily_bin1041.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/983969/ft1_filtered_4FGL_J0348.5-2749_daily_bin1041.fits
Spacecraft file(s): /scratch/kocevski/983969/ft2_4FGL_J0348.5-2749_daily_bin1041.fits
Exposure map: /scratch/kocevski/983969/expmap_509155201_509414401_4FGL_J0348.5-2749_daily_bin1041.fits
Exposure cube: /scratch/kocevski/983969/ltcube_509155201_509414401_4FGL_J0348.5-2749_daily_bin1041.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/983969/Model_4FGL_J0348.5-2749_daily_bin1041.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) = 5479.82385584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.8510       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.250       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .54091E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9623       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2875       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10773E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6006       1.0000         .10000E-03   10000.    
    13 'norm      '    2.1254       1.0000         .10000E-03   10000.    
    14 'Prefactor '    64.957       1.0000         .10000E-03   10000.    
    15 'norm      '    2.6478       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10360E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    36.790       1.0000         .10000E-03   10000.    
    21 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.8232       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.7891       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .81732       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1619       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=   5479.810     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     3156 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7692        .18055E-07** at limit **
   2  norm          5.8511        3.3468        .24022E-08    .38374E-05
   3  Prefactor     .10000E-03    59.232        .13737E-05** at limit **
   4  Prefactor     24.253        18.341       -.18322E-07    .68235E-05
   5  Prefactor     .10000E-03    13.839        .86875E-07** at limit **
   6  norm          .10000E-03    1.6335       -.47761E-07** at limit **
   7  Prefactor     3.9621        41.271        .11538E-04    .65319E-04
   8  Prefactor     .10000E-03    35.717       -.10844E-05** at limit **
   9  Prefactor     1.2874        1.3307       -.28667E-07    .91121E-04
  10  Prefactor     .10009E-03    2.5465       -.10698E-05** at limit **
  11  Prefactor     .10000E-03    1.0708        .80461E-08** at limit **
  12  Prefactor     2.5924        16.968        .11175E-05    .13426E-04
  13  norm          2.1254        1.0321       -.34572E-07    .92479E-03
  14  Prefactor     64.966        41.642       -.44507E-07    .47570E-04
  15  norm          2.6476        1.8008        .54653E-07    .23179E-03
  16  Prefactor     .10000E-03    127.50       -.14886E-05** at limit **
  17  Prefactor     .10000E-03    15.857        .20349E-06** at limit **
  18  Prefactor     .10000E-03    2.2528        .36310E-07** at limit **
  19  norm          .10000E-03    25.812        .15536E-05** at limit **
  20  Prefactor     36.799        27.221        .38281E-06    .70833E-04
  21  norm          .10000E-03    .77416E-01   -.11228E-07** at limit **
  22  norm          .10000E-03    2.7636       -.24429E-09** at limit **
  23  Prefactor     4.8232        3.8438        .65137E-06    .17507E-03
  24  Prefactor     9.7884        13.276        .97791E-07    .18906E-05
  25  Normalizat    .81721        .18366       -.20966E-06    .14592E-03
  26  Prefactor     1.1620        .19098       -.53842E-06    .13478E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.85109
  Prefactor  = 0.000100005
  Prefactor  = 24.2529
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.96212
  Prefactor  = 0.000100003
  Prefactor  = 1.28742
  Prefactor  = 0.000100093
  Prefactor  = 0.0001
  Prefactor  = 2.59241
  norm       = 2.12545
  Prefactor  = 64.9665
  norm       = 2.64758
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 36.7986
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.82323
  Prefactor  = 9.78845
  Normalizat = 0.817214
  Prefactor  = 1.162
 **********
 **   18 **HESSE 
 **********

 FCN=   5479.810     FROM HESSE     STATUS=OK           456 CALLS     3612 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.7750        .17365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.8511        3.3482        .99728E-04   -1.5224    
   3  Prefactor     .10000E-03    59.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     24.253        18.334        .81343E-04   -1.4723    
   5  Prefactor     .10000E-03    13.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    11.651        .18266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.9621        41.881        .10132E-02   -1.5310    
   8  Prefactor     .10000E-03    35.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.2874        1.3424        .83768E-04   -1.5481    
  10  Prefactor     .10009E-03    14.985        .20115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.0750        .74780E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5924        16.771        .25299E-03   -1.5386    
  13  norm          2.1254        1.0165        .49198E-04   -1.5416    
  14  Prefactor     64.966        41.610        .49794E-04   -1.4094    
  15  norm          2.6476        1.7869        .76574E-04   -1.5383    
  16  Prefactor     .10000E-03    128.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.3150        .21635E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    26.829        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     36.799        27.182        .66075E-04   -1.4494    
  21  norm          .10000E-03    .84382E-01    .39996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.7784        .12017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.8232        3.8459        .62730E-03   -1.5269    
  24  Prefactor     9.7884        13.267        .12808E-03   -1.5082    
  25  Normalizat    .81721        .21160        .26676E-03   -.99433    
  26  Prefactor     1.1620        .22264        .24200E-03   -.87509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.39488e-09
Minuit parameter uncertainties:
  1  3.65567e-06
  2  3.34831
  3  0.00105949
  4  18.3385
  5  3.81527e-05
  6  0.000106303
  7  25.7861
  8  0.000658966
  9  1.34247
  10  0.00235809
  11  1.41015e-06
  12  13.1925
  13  1.01647
  14  41.6285
  15  1.78689
  16  0.00150377
  17  1.36903e-05
  18  9.95171e-07
  19  0.000312574
  20  27.1911
  21  3.64934e-09
  22  6.68603e-07
  23  3.8461
  24  13.2707
  25  0.211812
  26  0.222824
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  2.125e+00  1.016e+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:  1.162e+00  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:  8.172e-01  2.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.73
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 7.59e-08 +/- 3.63e-08
Energy Flux (Fixed Index): 3.58e-05 +/- 1.71e-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) = 5479.77576529
delta logL = 0.0341967313052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5479.77508319
delta logL = 0.0348788348556

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1087       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9793       1.0000          .0000       5.0000    
     3 'Normalizat'    .82653       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1561       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=   5479.775     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      197 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1092        1.1631        .71029E-03    .74711E-03
   2  alpha         1.9792        .42013        .26633       -.85945E-05
   3  Normalizat    .82652        .17948        .43956E-01    .15654E-04
   4  Prefactor     1.1561        .18973        .54856E-01    .43778E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.10923
  alpha      = 1.97921
  Normalizat = 0.826517
  Prefactor  = 1.15605
 **********
 **   18 **HESSE 
 **********

 FCN=   5479.775     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1092        1.0325        .14206E-03   -1.5417    
   2  alpha         1.9792        .40636        .10774E-01   -.20985    
   3  Normalizat    .82652        .21039        .26543E-03   -.99093    
   4  Prefactor     1.1561        .22148        .24255E-03   -.87695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36639e-11
Minuit parameter uncertainties:
  1  1.03246
  2  0.408257
  3  0.210601
  4  0.221657
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/983969': 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) = 5479.77508306
delta logL = 0.0348789667087

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  2.109e+00  1.032e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  1.979e+00  4.083e-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:  1.156e+00  2.217e-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:  8.265e-01  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.75
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 1.98 +/- 0.41
Photon Flux (Free Index): 6.88e-08 +/- 4.25e-08
Energy Flux (Free Index): 3.91e-05 +/- 2.39e-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/983969/cmap_HighResolution_509155201_509414401_4FGL_J0348.5-2749_daily_bin1041.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.59e-08', energy_flux2='3.91e-05', photon_flux_error='3.63e-08', dlogl='3.49e-02', energy_flux='3.58e-05', photon_flux2='6.88e-08', job_status='DONE', time_completed='2021-08-19 13:34:48.501017', photon_index_error2='0.41', photon_index2='1.98', ts='11.73', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='2.39e-05', EG='0.82', time_epoch_completed='1629405288.5', return_code='0', job_id='983969', GAL2='1.16', EG2='0.83', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='4.25e-08', ts2='11.75', photon_index='2.09' WHERE bin_id='1041' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:34:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 983969: <4FGL_J0348.5-2749_daily_bin1041> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin1041> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Aug 19 13:20:53 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:20:54 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:20:54 2021
Terminated at Thu Aug 19 13:34:50 2021
Results reported at Thu Aug 19 13:34:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1041 57.1417 -27.8303 509155201 509414401 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 :                                   816.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            837 sec.

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

