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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1052
RA = 57.1417, Dec = -27.8303
tmin = 512006401, tmax = 512265601
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='983986', job_status='RUN', time_executed='2021-08-19 13:22:55.958625', time_epoch_executed='1629404575.96' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1052'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/983986

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/983986/ft1_4FGL_J0348.5-2749_daily_bin1052.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/983986/ft2_4FGL_J0348.5-2749_daily_bin1052.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/983986/ft1_4FGL_J0348.5-2749_daily_bin1052.fits outfile=/scratch/kocevski/983986/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1052.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=512006401.0 tmax=512265601.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.67
user 3.27
sys 5.37

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/983986/ft1_filtered_4FGL_J0348.5-2749_daily_bin1052.fits" evtable="EVENTS" scfile=/scratch/kocevski/983986/ft2_4FGL_J0348.5-2749_daily_bin1052.fits sctable="SC_DATA" outfile=/scratch/kocevski/983986/ltcube_512006401_512265601_4FGL_J0348.5-2749_daily_bin1052.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/983986/ft2_4FGL_J0348.5-2749_daily_bin1052.fits
.....................!
real 18.28
user 12.13
sys 6.11

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/983986/ft1_filtered_4FGL_J0348.5-2749_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/983986/ft2_4FGL_J0348.5-2749_daily_bin1052.fits sctable="SC_DATA" expcube=/scratch/kocevski/983986/ltcube_512006401_512265601_4FGL_J0348.5-2749_daily_bin1052.fits outfile=/scratch/kocevski/983986/expmap_512006401_512265601_4FGL_J0348.5-2749_daily_bin1052.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/983986/ltcube_512006401_512265601_4FGL_J0348.5-2749_daily_bin1052.fits
.....................!
real 198.92
user 186.82
sys 11.75

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/983986/ft1_filtered_4FGL_J0348.5-2749_daily_bin1052.fits scfile=/scratch/kocevski/983986/ft2_4FGL_J0348.5-2749_daily_bin1052.fits outfile=/scratch/kocevski/983986/cmap_512006401_512265601_4FGL_J0348.5-2749_daily_bin1052.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.93
user 0.36
sys 5.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/983986/ft1_filtered_4FGL_J0348.5-2749_daily_bin1052.fits scfile=/scratch/kocevski/983986/ft2_4FGL_J0348.5-2749_daily_bin1052.fits outfile=/scratch/kocevski/983986/cmap_HighResolution_512006401_512265601_4FGL_J0348.5-2749_daily_bin1052.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.64
user 0.38
sys 5.23

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/983986/ft1_filtered_4FGL_J0348.5-2749_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/983986/ft2_4FGL_J0348.5-2749_daily_bin1052.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/983986/Model_4FGL_J0348.5-2749_daily_bin1052.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/983986/ft1_filtered_4FGL_J0348.5-2749_daily_bin1052.fits.....................!
real 108.16
user 99.98
sys 7.97

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2566       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.701       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.8801       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    78.778       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0681       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.530       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.171       1.0000         .10000E-03   10000.    
    13 'norm      '    .57061       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.457       1.0000         .10000E-03   10000.    
    15 'norm      '    .23458       1.0000         .10000E-03   10000.    
    16 'Prefactor '    33.108       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2260       1.0000         .10000E-03   10000.    
    19 'norm      '    .16171E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.9276       1.0000         .10000E-03   10000.    
    21 'norm      '    .14067       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.750       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1100       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .79241       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4453.412     FROM MIGRAD    STATUS=CONVERGED     90 CALLS     3437 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2554        1.0212        .31638E-06    .15410E-03
   2  norm          .10000E-03    1.0129        .69934E-07** at limit **
   3  Prefactor     .10486E-03    60.224       -.21196E-04** at limit **
   4  Prefactor     24.701        1.0040       -.32971E-07    .29406E-03
   5  Prefactor     .10007E-03    12.556       -.52496E-05** at limit **
   6  norm          1.8801        2.5708        .39474E-07   -.34653E-03
   7  Prefactor     .10788E-03    20.808        .15885E-04** at limit **
   8  Prefactor     78.778        1.0015       -.18019E-07    .33256E-03
   9  Prefactor     3.0677        2.4075       -.38219E-06    .10760E-03
  10  Prefactor     11.526        5.8430       -.65692E-05   -.10308E-01
  11  Prefactor     .10000E-03    1.1888        .24477E-06** at limit **
  12  Prefactor     11.174        1.0556        .32555E-06    .13030E-04
  13  norm          .57059        .79501        .62947E-06    .96502E-04
  14  Prefactor     18.453        1.1492       -.42353E-06    .13208E-02
  15  norm          .23498        2.0142        .48355E-05    .61701E-03
  16  Prefactor     33.105        1.1801       -.39246E-06    .23854E-02
  17  Prefactor     .10002E-03    11.399        .33274E-05** at limit **
  18  Prefactor     2.2251        3.4367       -.73108E-05   -.17413E-02
  19  norm          .10200E-03    26.313       -.24808E-05** at limit **
  20  Prefactor     7.9182        1.6034       -.14336E-05    .15297E-02
  21  norm          .14053        .28815       -.24430E-06   -.63028E-04
  22  norm          .10000E-03    2.4450       -.86344E-07** at limit **
  23  Prefactor     .10000E-03    2.2006        .14295E-06** at limit **
  24  Prefactor     15.752        1.0186        .10316E-06    .73584E-04
  25  Normalizat    1.1102        .22875        .60109E-05    .22267E-03
  26  Prefactor     .79222        .23066       -.83401E-06    .16692E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.25544
  norm       = 0.0001
  Prefactor  = 0.000104858
  Prefactor  = 24.7008
  Prefactor  = 0.000100072
  norm       = 1.88006
  Prefactor  = 0.000107882
  Prefactor  = 78.7779
  Prefactor  = 3.0677
  Prefactor  = 11.5257
  Prefactor  = 0.0001
  Prefactor  = 11.1741
  norm       = 0.570588
  Prefactor  = 18.4532
  norm       = 0.234978
  Prefactor  = 33.1046
  Prefactor  = 0.000100025
  Prefactor  = 2.22507
  norm       = 0.000101998
  Prefactor  = 7.91815
  norm       = 0.140533
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.7525
  Normalizat = 1.1102
  Prefactor  = 0.792219
 **********
 **   18 **HESSE 
 **********

 FCN=   4453.412     FROM HESSE     STATUS=OK           516 CALLS     3953 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2554        13.360        .56105E-02   -1.5347    
   2  norm          .10000E-03    1.0115        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10486E-03    73.892        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     24.701        25.057        .20150E-02   -1.4714    
   5  Prefactor     .10007E-03    12.731        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.8801        2.6017        .75904E-02   -1.5434    
   7  Prefactor     .10788E-03    42.753        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     78.778        66.137        .11312E-02   -1.3930    
   9  Prefactor     3.0677        2.4569        .57896E-02   -1.5358    
  10  Prefactor     11.526        6.2403        .29495E-02   -1.5029    
  11  Prefactor     .10000E-03    1.1879        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.174        23.437        .29966E-02   -1.5039    
  13  norm          .57059        .85859        .11556E-01   -1.5557    
  14  Prefactor     18.453        33.645        .23307E-02   -1.4849    
  15  norm          .23498        1.3678        .26483E-01   -1.5611    
  16  Prefactor     33.105        99.692        .17410E-02   -1.4557    
  17  Prefactor     .10002E-03    11.493        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2251        3.5462        .68896E-02   -1.5410    
  19  norm          .10200E-03    31.177        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.9182        30.556        .35602E-02   -1.5145    
  21  norm          .14053        .32993        .97034E-02   -1.5633    
  22  norm          .10000E-03    2.4447        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.1884        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     15.752        19.569        .25230E-02   -1.4914    
  25  Normalizat    1.1102        .21252        .37606E-01   -.89425    
  26  Prefactor     .79222        .20880        .43618E-01   -1.0002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.68694e-07
Minuit parameter uncertainties:
  1  13.1945
  2  2.18333e-06
  3  0.0379384
  4  25.0673
  5  0.00191854
  6  2.60183
  7  0.0367406
  8  66.199
  9  2.45703
  10  6.24066
  11  1.62679e-05
  12  23.4566
  13  0.858604
  14  33.6797
  15  1.13366
  16  100.199
  17  0.00106174
  18  3.54657
  19  0.0157914
  20  30.6168
  21  0.329934
  22  5.99714e-06
  23  8.77526e-06
  24  19.5773
  25  0.212687
  26  0.209008
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  5.706e-01  8.586e-01  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.922e-01  2.090e-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.110e+00  2.127e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.81
Ra Dec: 57.142 -27.830
Photon Flux Upper Limit: 9.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.52e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/983986/likelihoodResults_512006401_512265601_4FGL_J0348.5-2749_daily_bin1052.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4453.40312371
delta logL = 0.00925088587337

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4453.40282641
delta logL = 0.0095481792323

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .58282       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2358       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1062       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79467       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=   4453.403     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      221 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58339        38.939        .11604E-01    .45659E-03
   2  alpha         2.2368        3.7338        .41446       -.12322E-05
   3  Normalizat    1.1061        .72747E-01    .37753E-01    .49297E-05
   4  Prefactor     .79472        .82343E-01    .43648E-01    .13314E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.583391
  alpha      = 2.23677
  Normalizat = 1.10615
  Prefactor  = 0.79472
 **********
 **   18 **HESSE 
 **********

 FCN=   4453.403     FROM HESSE     STATUS=OK            35 CALLS      256 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58339        .78905        .69578E-03   -1.5555    
   2  alpha         2.2368        1.0637        .22958E-01   -.10549    
   3  Normalizat    1.1061        .22402        .23191E-03   -.89555    
   4  Prefactor     .79472        .22615        .27288E-03   -.99923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.98903e-10
Minuit parameter uncertainties:
  1  0.789064
  2  1.09919
  3  0.224212
  4  0.226411
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/983986': 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) = 4453.40282572
delta logL = 0.00954886686304

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  5.834e-01  7.891e-01  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  2.237e+00  1.099e+00  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.947e-01  2.264e-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.106e+00  2.242e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.81
Ra Dec: 57.142 -27.830

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/983986/cmap_HighResolution_512006401_512265601_4FGL_J0348.5-2749_daily_bin1052.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.52e-05', job_status='DONE', photon_flux_upper_limit='9.59e-08', time_completed='2021-08-19 13:35:09.206117', job_id='983986', GAL2='0.79', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1629405309.21', return_code2='0', ts='0.81', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='9.55e-03', ts2='0.83', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1052' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:35:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 983986: <4FGL_J0348.5-2749_daily_bin1052> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1052 57.1417 -27.8303 512006401 512265601 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 :                                   803.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            857 sec.

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

