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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1384
RA = 57.1417, Dec = -27.8303
tmin = 598060801, tmax = 598320001
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='985610', job_status='RUN', time_executed='2021-08-19 13:27:25.542096', time_epoch_executed='1629404845.54' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1384'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/985610

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/985610/ft1_4FGL_J0348.5-2749_daily_bin1384.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/985610/ft2_4FGL_J0348.5-2749_daily_bin1384.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/985610/ft1_4FGL_J0348.5-2749_daily_bin1384.fits outfile=/scratch/kocevski/985610/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1384.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=598060801.0 tmax=598320001.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.91
user 4.67
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/985610/ft2_4FGL_J0348.5-2749_daily_bin1384.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/985610/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1384.fits evtable="EVENTS" outfile="/scratch/kocevski/985610/ft1_filtered_4FGL_J0348.5-2749_daily_bin1384.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.53
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/985610/ft1_filtered_4FGL_J0348.5-2749_daily_bin1384.fits" evtable="EVENTS" scfile=/scratch/kocevski/985610/ft2_4FGL_J0348.5-2749_daily_bin1384.fits sctable="SC_DATA" outfile=/scratch/kocevski/985610/ltcube_598060801_598320001_4FGL_J0348.5-2749_daily_bin1384.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/985610/ft2_4FGL_J0348.5-2749_daily_bin1384.fits
.....................!
real 11.65
user 11.24
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/985610/ft1_filtered_4FGL_J0348.5-2749_daily_bin1384.fits evtable="EVENTS" scfile=/scratch/kocevski/985610/ft2_4FGL_J0348.5-2749_daily_bin1384.fits sctable="SC_DATA" expcube=/scratch/kocevski/985610/ltcube_598060801_598320001_4FGL_J0348.5-2749_daily_bin1384.fits outfile=/scratch/kocevski/985610/expmap_598060801_598320001_4FGL_J0348.5-2749_daily_bin1384.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/985610/ltcube_598060801_598320001_4FGL_J0348.5-2749_daily_bin1384.fits
.....................!
real 189.52
user 184.72
sys 4.48

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/985610/ft1_filtered_4FGL_J0348.5-2749_daily_bin1384.fits scfile=/scratch/kocevski/985610/ft2_4FGL_J0348.5-2749_daily_bin1384.fits outfile=/scratch/kocevski/985610/cmap_598060801_598320001_4FGL_J0348.5-2749_daily_bin1384.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.55
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/985610/ft1_filtered_4FGL_J0348.5-2749_daily_bin1384.fits scfile=/scratch/kocevski/985610/ft2_4FGL_J0348.5-2749_daily_bin1384.fits outfile=/scratch/kocevski/985610/cmap_HighResolution_598060801_598320001_4FGL_J0348.5-2749_daily_bin1384.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/985610/ft1_filtered_4FGL_J0348.5-2749_daily_bin1384.fits evtable="EVENTS" scfile=/scratch/kocevski/985610/ft2_4FGL_J0348.5-2749_daily_bin1384.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/985610/Model_4FGL_J0348.5-2749_daily_bin1384.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/985610/ft1_filtered_4FGL_J0348.5-2749_daily_bin1384.fits.....................!
real 136.39
user 134.41
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/985610/ft1_filtered_4FGL_J0348.5-2749_daily_bin1384.fits', '/scratch/kocevski/985610/ft2_4FGL_J0348.5-2749_daily_bin1384.fits', expMap='/scratch/kocevski/985610/expmap_598060801_598320001_4FGL_J0348.5-2749_daily_bin1384.fits', expCube='/scratch/kocevski/985610/ltcube_598060801_598320001_4FGL_J0348.5-2749_daily_bin1384.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/985610/Model_4FGL_J0348.5-2749_daily_bin1384.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/985610/ft1_filtered_4FGL_J0348.5-2749_daily_bin1384.fits
Spacecraft file(s): /scratch/kocevski/985610/ft2_4FGL_J0348.5-2749_daily_bin1384.fits
Exposure map: /scratch/kocevski/985610/expmap_598060801_598320001_4FGL_J0348.5-2749_daily_bin1384.fits
Exposure cube: /scratch/kocevski/985610/ltcube_598060801_598320001_4FGL_J0348.5-2749_daily_bin1384.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/985610/Model_4FGL_J0348.5-2749_daily_bin1384.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6395.71688119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15982E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .92066       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.6256       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5623       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.8508       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11030E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.314       1.0000         .10000E-03   10000.    
    13 'norm      '    6.4616       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.749       1.0000         .10000E-03   10000.    
    15 'norm      '    .53506       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .23678E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11945E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1929       1.0000         .10000E-03   10000.    
    19 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.6293       1.0000         .10000E-03   10000.    
    21 'norm      '    .12416       1.0000         .10000E-03   10000.    
    22 'norm      '    9.6255       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.7186       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .72905       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0575       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=   6395.530     FROM MIGRAD    STATUS=CONVERGED    638 CALLS     2697 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10029E-03    6.9955        .25029E-05** at limit **
   2  norm          .92303        1.8933        .82247E-06    .73962E-03
   3  Prefactor     .10001E-03    47.696        .16909E-05** at limit **
   4  Prefactor     .10000E-03    7.2336        .26742E-07** at limit **
   5  Prefactor     .10001E-03    33.593       -.17591E-05** at limit **
   6  norm          3.6258        2.8664        .10725E-06    .67905E-06
   7  Prefactor     .10000E-03    11.899        .13986E-06** at limit **
   8  Prefactor     .10000E-03    12.336       -.14538E-06** at limit **
   9  Prefactor     2.5619        1.8684       -.28012E-07   -.19585E-04
  10  Prefactor     4.8477        4.1435        .26780E-06    .21625E-03
  11  Prefactor     .10000E-03    1.9806       -.24648E-06** at limit **
  12  Prefactor     12.316        13.058       -.78775E-07   -.67964E-04
  13  norm          6.4619        1.2893        .36366E-08   -.33631E-04
  14  Prefactor     19.753        19.530       -.30758E-06   -.89978E-04
  15  norm          .53523        1.1444        .48787E-06    .39256E-03
  16  Prefactor     .10000E-03    172.72       -.80738E-06** at limit **
  17  Prefactor     .10000E-03    44.121       -.14099E-05** at limit **
  18  Prefactor     3.1929        2.3979       -.69769E-07   -.12238E-03
  19  norm          .10000E-03    2.7240       -.44105E-07** at limit **
  20  Prefactor     6.6447        20.199       -.32092E-06   -.11771E-03
  21  norm          .12427        .20937        .19667E-06    .15589E-02
  22  norm          9.6249        5.9092       -.26498E-06   -.11398E-03
  23  Prefactor     1.7190        3.9911        .10139E-05    .11036E-03
  24  Prefactor     .10000E-03    5.6441       -.29945E-08** at limit **
  25  Normalizat    .72912        .15902       -.74352E-06   -.24884E-03
  26  Prefactor     1.0575        .16616       -.27657E-06   -.21588E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100287
  norm       = 0.923029
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 3.62577
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.56187
  Prefactor  = 4.84774
  Prefactor  = 0.0001
  Prefactor  = 12.3157
  norm       = 6.46187
  Prefactor  = 19.7532
  norm       = 0.535226
  Prefactor  = 0.000100002
  Prefactor  = 0.000100003
  Prefactor  = 3.19293
  norm       = 0.0001
  Prefactor  = 6.64469
  norm       = 0.124267
  norm       = 9.62489
  Prefactor  = 1.71898
  Prefactor  = 0.0001
  Normalizat = 0.729116
  Prefactor  = 1.05745
 **********
 **   18 **HESSE 
 **********

 FCN=   6395.530     FROM HESSE     STATUS=OK           464 CALLS     3161 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10029E-03    31.306        .33173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .92303        1.7640        .16384E-02   -1.5516    
   3  Prefactor     .10001E-03    48.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.2677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    34.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.6258        2.8608        .11578E-03   -1.5327    
   7  Prefactor     .10000E-03    11.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.5619        1.8471        .87442E-04   -1.5388    
  10  Prefactor     4.8477        3.8850        .13184E-03   -1.5268    
  11  Prefactor     .10000E-03    6.3855        .19810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.316        13.003        .11415E-03   -1.5006    
  13  norm          6.4619        1.2908        .38129E-04   -1.5200    
  14  Prefactor     19.753        19.507        .90126E-04   -1.4819    
  15  norm          .53523        1.1135        .11499E-03   -1.5562    
  16  Prefactor     .10000E-03    173.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    45.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.1929        2.3778        .10092E-03   -1.5351    
  19  norm          .10000E-03    2.7242        .12889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.6447        20.283        .15585E-03   -1.5192    
  21  norm          .12427        .19786        .45035E-03   -1.5637    
  22  norm          9.6249        5.8890        .64583E-03   -1.5087    
  23  Prefactor     1.7190        3.9692        .23133E-03   -1.5446    
  24  Prefactor     .10000E-03    5.6640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .72912        .17967        .25837E-03   -1.0275    
  26  Prefactor     1.0575        .18865        .23520E-03   -.90838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.97315e-09
Minuit parameter uncertainties:
  1  0.00599705
  2  1.76414
  3  0.00117528
  4  2.85046e-06
  5  0.00101548
  6  2.86089
  7  4.71895e-05
  8  5.04376e-05
  9  1.84712
  10  3.88523
  11  4.51905e-06
  12  13.0057
  13  1.29076
  14  19.5138
  15  1.11356
  16  0.0011031
  17  0.000714071
  18  2.37791
  19  7.73344e-07
  20  20.3043
  21  0.197859
  22  5.88939
  23  3.96985
  24  9.30821e-07
  25  0.179814
  26  0.188773
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  6.462e+00  1.291e+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.057e+00  1.888e-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:  7.291e-01  1.798e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 87.64
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 2.31e-07 +/- 4.61e-08
Energy Flux (Fixed Index): 1.09e-04 +/- 2.17e-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) = 6395.27203875
delta logL = 0.257723788192

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6395.246799
delta logL = 0.282963537958

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1694       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2300       1.0000          .0000       5.0000    
     3 'Normalizat'    .70507       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0739       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=   6395.247     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      192 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1695        1.8059        .40407E-02   -.54606E-02
   2  alpha         2.2305        .26553        .12166        .26446E-04
   3  Normalizat    .70523        .15528        .42358E-01    .20427E-04
   4  Prefactor     1.0738        .16561        .38673E-01    .62183E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.16948
  alpha      = 2.23047
  Normalizat = 0.705232
  Prefactor  = 1.07382
 **********
 **   18 **HESSE 
 **********

 FCN=   6395.247     FROM HESSE     STATUS=OK            29 CALLS      221 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1695        1.2918        .36445E-04   -1.5211    
   2  alpha         2.2305        .19255        .53037E-03   -.10802    
   3  Normalizat    .70523        .17560        .26206E-03   -1.0369    
   4  Prefactor     1.0738        .18694        .23358E-03   -.90308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.02486e-10
Minuit parameter uncertainties:
  1  1.29185
  2  0.192744
  3  0.175736
  4  0.187054
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/985610': 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) = 6395.24679445
delta logL = 0.282968091712

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  6.169e+00  1.292e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  2.230e+00  1.927e-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.074e+00  1.871e-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:  7.052e-01  1.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 88.26
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 2.23 +/- 0.19
Photon Flux (Free Index): 2.51e-07 +/- 5.50e-08
Energy Flux (Free Index): 9.61e-05 +/- 2.35e-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/985610/cmap_HighResolution_598060801_598320001_4FGL_J0348.5-2749_daily_bin1384.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.31e-07', energy_flux2='9.61e-05', photon_flux_error='4.61e-08', dlogl='2.83e-01', energy_flux='1.09e-04', photon_flux2='2.51e-07', job_status='DONE', time_completed='2021-08-19 13:38:48.184422', photon_index_error2='0.19', photon_index2='2.23', ts='87.64', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='2.35e-05', EG='0.73', time_epoch_completed='1629405528.18', return_code='0', job_id='985610', GAL2='1.07', EG2='0.71', return_code2='0', energy_flux_error='2.17e-05', photon_flux_error2='5.50e-08', ts2='88.26', photon_index='2.09' WHERE bin_id='1384' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:38:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 985610: <4FGL_J0348.5-2749_daily_bin1384> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1384 57.1417 -27.8303 598060801 598320001 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 :                                   679.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            781 sec.

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

