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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1104
RA = 57.1417, Dec = -27.8303
tmin = 525484801, tmax = 525744001
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='985186', job_status='RUN', time_executed='2021-08-19 13:25:31.829242', time_epoch_executed='1629404731.83' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1104'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/985186

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/985186/ft1_4FGL_J0348.5-2749_daily_bin1104.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/985186/ft2_4FGL_J0348.5-2749_daily_bin1104.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/985186/ft1_4FGL_J0348.5-2749_daily_bin1104.fits outfile=/scratch/kocevski/985186/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1104.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=525484801.0 tmax=525744001.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.99
user 3.38
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/985186/ft1_filtered_4FGL_J0348.5-2749_daily_bin1104.fits" evtable="EVENTS" scfile=/scratch/kocevski/985186/ft2_4FGL_J0348.5-2749_daily_bin1104.fits sctable="SC_DATA" outfile=/scratch/kocevski/985186/ltcube_525484801_525744001_4FGL_J0348.5-2749_daily_bin1104.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/985186/ft2_4FGL_J0348.5-2749_daily_bin1104.fits
.....................!
real 13.72
user 13.30
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/985186/ft1_filtered_4FGL_J0348.5-2749_daily_bin1104.fits evtable="EVENTS" scfile=/scratch/kocevski/985186/ft2_4FGL_J0348.5-2749_daily_bin1104.fits sctable="SC_DATA" expcube=/scratch/kocevski/985186/ltcube_525484801_525744001_4FGL_J0348.5-2749_daily_bin1104.fits outfile=/scratch/kocevski/985186/expmap_525484801_525744001_4FGL_J0348.5-2749_daily_bin1104.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/985186/ltcube_525484801_525744001_4FGL_J0348.5-2749_daily_bin1104.fits
.....................!
real 190.49
user 185.33
sys 4.78

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/985186/ft1_filtered_4FGL_J0348.5-2749_daily_bin1104.fits scfile=/scratch/kocevski/985186/ft2_4FGL_J0348.5-2749_daily_bin1104.fits outfile=/scratch/kocevski/985186/cmap_525484801_525744001_4FGL_J0348.5-2749_daily_bin1104.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 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/985186/ft1_filtered_4FGL_J0348.5-2749_daily_bin1104.fits scfile=/scratch/kocevski/985186/ft2_4FGL_J0348.5-2749_daily_bin1104.fits outfile=/scratch/kocevski/985186/cmap_HighResolution_525484801_525744001_4FGL_J0348.5-2749_daily_bin1104.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 0.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/985186/ft1_filtered_4FGL_J0348.5-2749_daily_bin1104.fits evtable="EVENTS" scfile=/scratch/kocevski/985186/ft2_4FGL_J0348.5-2749_daily_bin1104.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/985186/Model_4FGL_J0348.5-2749_daily_bin1104.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/985186/ft1_filtered_4FGL_J0348.5-2749_daily_bin1104.fits.....................!
real 123.94
user 122.41
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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.3132       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4757       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.125       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.549       1.0000         .10000E-03   10000.    
     6 'norm      '    3.8511       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.397       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7462       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3454       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9289       1.0000         .10000E-03   10000.    
    13 'norm      '    2.5362       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .81613       1.0000         .10000E-03   10000.    
    16 'Prefactor '    41.271       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.740       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .45513E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    16.026       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10467E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .27411       1.0000         .10000E-03   10000.    
    22 'norm      '    3.3631       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4181       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.155       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1452       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .73743       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=   5740.308     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     3866 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0429        .91629E-07** at limit **
   2  norm          5.3139        3.2908        .47084E-07    .48638E-06
   3  Prefactor     1.2475        7738.8       -.13608E-03    .44802E-05
   4  Prefactor     25.129        16.764       -.44880E-06   -.34729E-04
   5  Prefactor     25.553        24.094       -.75467E-07   -.11063E-03
   6  norm          3.8514        2.9773        .70351E-07   -.16595E-04
   7  Prefactor     .10000E-03    20.687       -.86017E-07** at limit **
   8  Prefactor     11.396        17.512        .78741E-07    .21965E-04
   9  Prefactor     2.7450        2.4652       -.30296E-06   -.17218E-03
  10  Prefactor     1.3447        3.8935        .12310E-05    .76628E-04
  11  Prefactor     .10000E-03    1.7047       -.95340E-07** at limit **
  12  Prefactor     4.9342        14.782        .28639E-06   -.15237E-04
  13  norm          2.5364        1.0712       -.56853E-07   -.33751E-03
  14  Prefactor     .10000E-03    11.570       -.11540E-06** at limit **
  15  norm          .81694        1.7810        .63755E-06    .25103E-03
  16  Prefactor     40.953        88.104        .11509E-07   -.13245E-04
  17  Prefactor     12.738        23.864       -.15144E-06   -.26884E-04
  18  Prefactor     .10000E-03    1.3054       -.69941E-07** at limit **
  19  norm          16.015        14.572        .72037E-07   -.26589E-04
  20  Prefactor     .10000E-03    40.580        .79420E-06** at limit **
  21  norm          .27456        .32423        .17480E-06    .68467E-03
  22  norm          3.3626        4.2587       -.36580E-07   -.16987E-04
  23  Prefactor     1.4180        3.4340        .89434E-06    .56130E-04
  24  Prefactor     12.154        11.928       -.67493E-07   -.19189E-04
  25  Normalizat    1.1450        .17693       -.65985E-06   -.12450E-03
  26  Prefactor     .73764        .17560       -.13757E-05   -.82453E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.31385
  Prefactor  = 1.24751
  Prefactor  = 25.1294
  Prefactor  = 25.5527
  norm       = 3.85136
  Prefactor  = 0.0001
  Prefactor  = 11.3964
  Prefactor  = 2.74499
  Prefactor  = 1.34468
  Prefactor  = 0.0001
  Prefactor  = 4.93421
  norm       = 2.53636
  Prefactor  = 0.0001
  norm       = 0.816938
  Prefactor  = 40.9533
  Prefactor  = 12.7379
  Prefactor  = 0.0001
  norm       = 16.0152
  Prefactor  = 0.0001
  norm       = 0.274563
  norm       = 3.36258
  Prefactor  = 1.418
  Prefactor  = 12.1541
  Normalizat = 1.14495
  Prefactor  = 0.737644
 **********
 **   18 **HESSE 
 **********

 FCN=   5740.308     FROM HESSE     STATUS=OK           472 CALLS     4338 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0466        .14879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.3139        3.2932        .10474E-03   -1.5247    
   3  Prefactor     1.2475        7807.5        .35352E-02   -1.5485    
   4  Prefactor     25.129        16.745        .79917E-04   -1.4705    
   5  Prefactor     25.553        24.348        .39626E-03   -1.4697    
   6  norm          3.8514        2.9776        .11108E-03   -1.5315    
   7  Prefactor     .10000E-03    20.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.396        17.528        .11867E-03   -1.5033    
   9  Prefactor     2.7450        2.4146        .10127E-03   -1.5377    
  10  Prefactor     1.3447        3.8697        .23292E-03   -1.5476    
  11  Prefactor     .10000E-03    1.7171        .96389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.9342        14.674        .18116E-03   -1.5264    
  13  norm          2.5364        1.0643        .25646E-04   -1.5389    
  14  Prefactor     .10000E-03    11.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .81694        1.7063        .12684E-03   -1.5527    
  16  Prefactor     40.953        88.154        .62397E-04   -1.4427    
  17  Prefactor     12.738        23.817        .11222E-03   -1.4994    
  18  Prefactor     .10000E-03    17.089        .16008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          16.015        14.571        .10005E-03   -1.4907    
  20  Prefactor     .10000E-03    41.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .27456        .31105        .43143E-03   -1.5603    
  22  norm          3.3626        4.2466        .17015E-03   -1.5341    
  23  Prefactor     1.4180        3.4212        .21035E-03   -1.5470    
  24  Prefactor     12.154        11.920        .11490E-03   -1.5011    
  25  Normalizat    1.1450        .20103        .22574E-03   -.88321    
  26  Prefactor     .73764        .19879        .28158E-03   -1.0207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44284e-10
Minuit parameter uncertainties:
  1  4.0243e-06
  2  3.29327
  3  191.72
  4  16.7484
  5  24.357
  6  2.97773
  7  6.3624e-06
  8  17.5354
  9  2.41471
  10  3.87044
  11  5.13496e-06
  12  14.6845
  13  1.06434
  14  3.81121e-06
  15  1.70641
  16  88.4368
  17  23.8346
  18  3.75235e-05
  19  14.5746
  20  6.32372e-05
  21  0.311056
  22  4.24696
  23  3.42163
  24  11.9227
  25  0.201169
  26  0.198983
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  2.536e+00  1.064e+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:  7.376e-01  1.990e-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.145e+00  2.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.41
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 9.05e-08 +/- 3.80e-08
Energy Flux (Fixed Index): 4.27e-05 +/- 1.79e-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) = 5740.25104053
delta logL = 0.057099134493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5740.24822101
delta logL = 0.0599186530735

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4946       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2195       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1325       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74567       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=   5740.248     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      200 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4949        19.463        .64695E-02    .11163E-02
   2  alpha         2.2196        3.4626        .24485        .71661E-05
   3  Normalizat    1.1325        .16298        .36808E-01    .20778E-05
   4  Prefactor     .74572        .16803        .63345E-01    .20922E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.49491
  alpha      = 2.21956
  Normalizat = 1.13248
  Prefactor  = 0.745722
 **********
 **   18 **HESSE 
 **********

 FCN=   5740.248     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4949        1.0264        .45537E-04   -1.5392    
   2  alpha         2.2196        .38586        .10004E-01   -.11241    
   3  Normalizat    1.1325        .19347        .22674E-03   -.88716    
   4  Prefactor     .74572        .19509        .28021E-03   -1.0176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.48823e-11
Minuit parameter uncertainties:
  1  1.02643
  2  0.387424
  3  0.193596
  4  0.195269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/985186': 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) = 5740.24822086
delta logL = 0.0599188044507

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  2.495e+00  1.026e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  2.220e+00  3.874e-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:  7.457e-01  1.953e-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.132e+00  1.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.50
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 2.22 +/- 0.39
Photon Flux (Free Index): 1.00e-07 +/- 4.82e-08
Energy Flux (Free Index): 3.90e-05 +/- 1.84e-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/985186/cmap_HighResolution_525484801_525744001_4FGL_J0348.5-2749_daily_bin1104.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.05e-08', energy_flux2='3.90e-05', photon_flux_error='3.80e-08', dlogl='5.99e-02', energy_flux='4.27e-05', photon_flux2='1.00e-07', job_status='DONE', time_completed='2021-08-19 13:37:36.997363', photon_index_error2='0.39', photon_index2='2.22', ts='14.41', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='1.84e-05', EG='1.14', time_epoch_completed='1629405457.0', return_code='0', job_id='985186', GAL2='0.75', EG2='1.13', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='4.82e-08', ts2='14.50', photon_index='2.09' WHERE bin_id='1104' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:37:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0201>
Subject: Job 985186: <4FGL_J0348.5-2749_daily_bin1104> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin1104> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Aug 19 13:25:16 2021
Job was executed on host(s) <bullet0201>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:25:18 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:25:18 2021
Terminated at Thu Aug 19 13:37:37 2021
Results reported at Thu Aug 19 13:37:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1104 57.1417 -27.8303 525484801 525744001 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 :                                   722.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             376.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            741 sec.

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

