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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1448
RA = 57.1417, Dec = -27.8303
tmin = 614649601, tmax = 614908801
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='986863', job_status='RUN', time_executed='2021-08-19 13:31:43.722775', time_epoch_executed='1629405103.72' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1448'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/986863

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/986863/ft1_4FGL_J0348.5-2749_daily_bin1448.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/986863/ft2_4FGL_J0348.5-2749_daily_bin1448.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/986863/ft1_4FGL_J0348.5-2749_daily_bin1448.fits outfile=/scratch/kocevski/986863/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1448.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=614649601.0 tmax=614908801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.47
user 3.38
sys 1.00

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/986863/ft1_filtered_4FGL_J0348.5-2749_daily_bin1448.fits" evtable="EVENTS" scfile=/scratch/kocevski/986863/ft2_4FGL_J0348.5-2749_daily_bin1448.fits sctable="SC_DATA" outfile=/scratch/kocevski/986863/ltcube_614649601_614908801_4FGL_J0348.5-2749_daily_bin1448.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/986863/ft2_4FGL_J0348.5-2749_daily_bin1448.fits
.....................!
real 13.16
user 11.92
sys 1.20

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/986863/ft1_filtered_4FGL_J0348.5-2749_daily_bin1448.fits evtable="EVENTS" scfile=/scratch/kocevski/986863/ft2_4FGL_J0348.5-2749_daily_bin1448.fits sctable="SC_DATA" expcube=/scratch/kocevski/986863/ltcube_614649601_614908801_4FGL_J0348.5-2749_daily_bin1448.fits outfile=/scratch/kocevski/986863/expmap_614649601_614908801_4FGL_J0348.5-2749_daily_bin1448.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/986863/ltcube_614649601_614908801_4FGL_J0348.5-2749_daily_bin1448.fits
.....................!
real 192.22
user 185.82
sys 6.06

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/986863/ft1_filtered_4FGL_J0348.5-2749_daily_bin1448.fits scfile=/scratch/kocevski/986863/ft2_4FGL_J0348.5-2749_daily_bin1448.fits outfile=/scratch/kocevski/986863/cmap_614649601_614908801_4FGL_J0348.5-2749_daily_bin1448.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 1.35
user 0.38
sys 0.91

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/986863/ft1_filtered_4FGL_J0348.5-2749_daily_bin1448.fits scfile=/scratch/kocevski/986863/ft2_4FGL_J0348.5-2749_daily_bin1448.fits outfile=/scratch/kocevski/986863/cmap_HighResolution_614649601_614908801_4FGL_J0348.5-2749_daily_bin1448.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 1.32
user 0.38
sys 0.93

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/986863/ft1_filtered_4FGL_J0348.5-2749_daily_bin1448.fits evtable="EVENTS" scfile=/scratch/kocevski/986863/ft2_4FGL_J0348.5-2749_daily_bin1448.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/986863/Model_4FGL_J0348.5-2749_daily_bin1448.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/986863/ft1_filtered_4FGL_J0348.5-2749_daily_bin1448.fits.....................!
real 161.68
user 159.19
sys 2.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1697       1.0000         .10000E-03   10000.    
     2 'norm      '    2.7806       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.596       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0670       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.9187       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10591E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .59102       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8536       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2755       1.0000         .10000E-03   10000.    
    13 'norm      '    20.987       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.8649       1.0000         .10000E-03   10000.    
    16 'Prefactor '    154.70       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10399E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.9157       1.0000         .10000E-03   10000.    
    19 'norm      '    4.7530       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .66920       1.0000         .10000E-03   10000.    
    22 'norm      '    .12404E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1644       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .80438       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=   7331.029     FROM MIGRAD    STATUS=CONVERGED    635 CALLS     3137 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1693        10.234        .85791E-07   -.15811E-06
   2  norm          2.7796        4.0649        .24067E-06    .60206E-05
   3  Prefactor     23.780        177.25       -.40271E-04   -.20285E-04
   4  Prefactor     4.0649        22.099        .21561E-05    .13625E-04
   5  Prefactor     .10000E-03    11.586       -.72199E-06** at limit **
   6  norm          7.9178        4.1001       -.12609E-06    .37485E-04
   7  Prefactor     .10000E-03    21.920       -.13253E-05** at limit **
   8  Prefactor     .10000E-03    46.859       -.17201E-05** at limit **
   9  Prefactor     .58994        3.0487        .75588E-06    .14033E-04
  10  Prefactor     1.8534        2.8795        .50948E-07   -.74299E-05
  11  Prefactor     .10000E-03    2.7641       -.41518E-07** at limit **
  12  Prefactor     1.2740        71.986        .17122E-04   -.28494E-04
  13  norm          20.987        2.1771       -.12298E-07    .10301E-03
  14  Prefactor     .10000E-03    9.8659        .37519E-07** at limit **
  15  norm          1.8653        1.7041        .22241E-07   -.17098E-04
  16  Prefactor     154.65        111.51        .38643E-05    .18760E-04
  17  Prefactor     .10000E-03    12.548        .66904E-06** at limit **
  18  Prefactor     8.9152        3.4141        .93040E-08    .18248E-04
  19  norm          4.7524        7.0332        .37042E-06    .30119E-05
  20  Prefactor     .10000E-03    45.300       -.17668E-05** at limit **
  21  norm          .66907        .35508       -.28380E-07    .14506E-02
  22  norm          .10025E-03    3.8828       -.11646E-05** at limit **
  23  Prefactor     .10000E-03    1.5933       -.70297E-07** at limit **
  24  Prefactor     .10000E-03    29.440        .19405E-05** at limit **
  25  Normalizat    1.1645        .18516       -.28359E-06    .17559E-03
  26  Prefactor     .80433        .17632        .24825E-06    .38333E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.16927
  norm       = 2.77959
  Prefactor  = 23.7805
  Prefactor  = 4.06494
  Prefactor  = 0.0001
  norm       = 7.91776
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.589945
  Prefactor  = 1.85336
  Prefactor  = 0.0001
  Prefactor  = 1.27401
  norm       = 20.9869
  Prefactor  = 0.0001
  norm       = 1.86534
  Prefactor  = 154.649
  Prefactor  = 0.0001
  Prefactor  = 8.9152
  norm       = 4.75238
  Prefactor  = 0.0001
  norm       = 0.669069
  norm       = 0.000100249
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.16449
  Prefactor  = 0.804332
 **********
 **   18 **HESSE 
 **********

 FCN=   7331.029     FROM HESSE     STATUS=OK           474 CALLS     3611 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1693        10.220        .19738E-03   -1.5300    
   2  norm          2.7796        4.0579        .19928E-03   -1.5375    
   3  Prefactor     23.780        177.45        .41231E-03   -1.4732    
   4  Prefactor     4.0649        22.021        .19993E-03   -1.5305    
   5  Prefactor     .10000E-03    11.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.9178        4.1026        .11889E-03   -1.5145    
   7  Prefactor     .10000E-03    21.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    47.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .58994        2.9724        .26013E-02   -1.5554    
  10  Prefactor     1.8534        2.8488        .17346E-03   -1.5436    
  11  Prefactor     .10000E-03    2.8308        .27740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.2740        74.120        .19674E-02   -1.5482    
  13  norm          20.987        2.1825        .38471E-04   -1.4791    
  14  Prefactor     .10000E-03    9.8700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.8653        1.6508        .93989E-04   -1.5435    
  16  Prefactor     154.65        111.57        .16206E-03   -1.3214    
  17  Prefactor     .10000E-03    12.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.9152        3.4089        .92228E-04   -1.5111    
  19  norm          4.7524        7.0265        .92277E-03   -1.5272    
  20  Prefactor     .10000E-03    46.786        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .66907        .35454        .33302E-04   -1.5544    
  22  norm          .10025E-03    6.2204        .58582E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.6059        .10552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    29.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1645        .22080        .26540E-03   -.87707    
  26  Prefactor     .80433        .20786        .31385E-03   -.99569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.92919e-10
Minuit parameter uncertainties:
  1  10.2238
  2  4.05826
  3  130.465
  4  18.933
  5  1.17922e-05
  6  4.10273
  7  2.28346e-05
  8  6.71712e-05
  9  2.64842
  10  2.849
  11  5.89831e-06
  12  19.4595
  13  2.18251
  14  4.11533e-06
  15  1.65079
  16  111.725
  17  3.20958e-06
  18  3.40896
  19  7.02774
  20  7.24948e-05
  21  0.354545
  22  0.00249163
  23  2.09932e-06
  24  4.60467e-05
  25  0.22098
  26  0.208059
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  2.099e+01  2.183e+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.043e-01  2.081e-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.164e+00  2.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 447.16
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 7.49e-07 +/- 7.79e-08
Energy Flux (Fixed Index): 3.53e-04 +/- 3.67e-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) = 7330.73390396
delta logL = 0.295213209441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7330.71200764
delta logL = 0.317109527813

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.465       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0080       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1963       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78307       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=   7330.712     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      205 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.466        2.3952        .21613E-02   -.38010E-02
   2  alpha         2.0080        .10338        .72308E-01    .14763E-04
   3  Normalizat    1.1963        .17580        .59415E-01    .40151E-06
   4  Prefactor     .78316        .17350        .71791E-01    .23728E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 21.4662
  alpha      = 2.008
  Normalizat = 1.19626
  Prefactor  = 0.783157
 **********
 **   18 **HESSE 
 **********

 FCN=   7330.712     FROM HESSE     STATUS=OK            29 CALLS      234 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.466        2.2804        .39303E-04   -1.4781    
   2  alpha         2.0080        .99198E-01    .31841E-03   -.19809    
   3  Normalizat    1.1963        .20770        .26276E-03   -.86718    
   4  Prefactor     .78316        .20402        .31770E-03   -1.0035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40201e-10
Minuit parameter uncertainties:
  1  2.28037
  2  0.099225
  3  0.207848
  4  0.204217
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/986863': 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) = 7330.71200722
delta logL = 0.31710994536

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  2.147e+01  2.280e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  2.008e+00  9.922e-02  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.832e-01  2.042e-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.196e+00  2.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 443.78
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 2.01 +/- 0.10
Photon Flux (Free Index): 7.16e-07 +/- 8.50e-08
Energy Flux (Free Index): 3.87e-04 +/- 6.10e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/986863/cmap_HighResolution_614649601_614908801_4FGL_J0348.5-2749_daily_bin1448.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.49e-07', energy_flux2='3.87e-04', photon_flux_error='7.79e-08', dlogl='3.17e-01', energy_flux='3.53e-04', photon_flux2='7.16e-07', job_status='DONE', time_completed='2021-08-19 13:45:17.517400', photon_index_error2='0.10', photon_index2='2.01', ts='447.16', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='6.10e-05', EG='1.16', time_epoch_completed='1629405917.52', return_code='0', job_id='986863', GAL2='0.78', EG2='1.20', return_code2='0', energy_flux_error='3.67e-05', photon_flux_error2='8.50e-08', ts2='443.78', photon_index='2.09' WHERE bin_id='1448' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:45:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 986863: <4FGL_J0348.5-2749_daily_bin1448> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin1448> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 19 13:30:46 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:30:47 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:30:47 2021
Terminated at Thu Aug 19 13:45:18 2021
Results reported at Thu Aug 19 13:45:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1448 57.1417 -27.8303 614649601 614908801 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 :                                   815.30 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             344.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            872 sec.

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

