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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1018
RA = 57.1417, Dec = -27.8303
tmin = 503193601, tmax = 503452801
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='983932', job_status='RUN', time_executed='2021-08-19 13:23:53.948382', time_epoch_executed='1629404633.95' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1018'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/983932

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/983932/ft1_4FGL_J0348.5-2749_daily_bin1018.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/983932/ft2_4FGL_J0348.5-2749_daily_bin1018.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/983932/ft1_4FGL_J0348.5-2749_daily_bin1018.fits outfile=/scratch/kocevski/983932/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1018.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=503193601.0 tmax=503452801.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 14.08
user 4.82
sys 9.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/983932/ft1_filtered_4FGL_J0348.5-2749_daily_bin1018.fits" evtable="EVENTS" scfile=/scratch/kocevski/983932/ft2_4FGL_J0348.5-2749_daily_bin1018.fits sctable="SC_DATA" outfile=/scratch/kocevski/983932/ltcube_503193601_503452801_4FGL_J0348.5-2749_daily_bin1018.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/983932/ft2_4FGL_J0348.5-2749_daily_bin1018.fits
.....................!
real 22.28
user 11.77
sys 10.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/983932/ft1_filtered_4FGL_J0348.5-2749_daily_bin1018.fits evtable="EVENTS" scfile=/scratch/kocevski/983932/ft2_4FGL_J0348.5-2749_daily_bin1018.fits sctable="SC_DATA" expcube=/scratch/kocevski/983932/ltcube_503193601_503452801_4FGL_J0348.5-2749_daily_bin1018.fits outfile=/scratch/kocevski/983932/expmap_503193601_503452801_4FGL_J0348.5-2749_daily_bin1018.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/983932/ltcube_503193601_503452801_4FGL_J0348.5-2749_daily_bin1018.fits
.....................!
real 202.78
user 186.09
sys 16.23

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/983932/ft1_filtered_4FGL_J0348.5-2749_daily_bin1018.fits scfile=/scratch/kocevski/983932/ft2_4FGL_J0348.5-2749_daily_bin1018.fits outfile=/scratch/kocevski/983932/cmap_503193601_503452801_4FGL_J0348.5-2749_daily_bin1018.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 9.31
user 0.36
sys 8.85

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/983932/ft1_filtered_4FGL_J0348.5-2749_daily_bin1018.fits scfile=/scratch/kocevski/983932/ft2_4FGL_J0348.5-2749_daily_bin1018.fits outfile=/scratch/kocevski/983932/cmap_HighResolution_503193601_503452801_4FGL_J0348.5-2749_daily_bin1018.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 9.31
user 0.40
sys 8.88

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/983932/ft1_filtered_4FGL_J0348.5-2749_daily_bin1018.fits evtable="EVENTS" scfile=/scratch/kocevski/983932/ft2_4FGL_J0348.5-2749_daily_bin1018.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/983932/Model_4FGL_J0348.5-2749_daily_bin1018.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/983932/ft1_filtered_4FGL_J0348.5-2749_daily_bin1018.fits.....................!
real 96.97
user 83.82
sys 12.58

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2643       1.0000         .10000E-03   10000.    
     2 'norm      '    5.6235       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11815E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3312       1.0000         .10000E-03   10000.    
     5 'Prefactor '    70.652       1.0000         .10000E-03   10000.    
     6 'norm      '    10.278       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.456       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .12360E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8122       1.0000         .10000E-03   10000.    
    15 'norm      '    3.5004       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10724E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.2512       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.6125       1.0000         .10000E-03   10000.    
    19 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    79.686       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.1881       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.1150       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0778       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0619       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=   3763.392     FROM MIGRAD    STATUS=CONVERGED    645 CALLS     3200 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2769        28.444       -.20752E-06    .20359E-05
   2  norm          5.6237        4.1448       -.91788E-08    .39662E-05
   3  Prefactor     .10000E-03    167.22       -.15087E-05** at limit **
   4  Prefactor     1.5131        97.686        .38400E-05   -.42196E-05
   5  Prefactor     70.619        58.968        .37291E-06   -.32142E-04
   6  norm          10.278        4.7444        .12519E-07   -.10667E-04
   7  Prefactor     .10000E-03    35.362       -.15942E-06** at limit **
   8  Prefactor     .10000E-03    28.507        .40440E-06** at limit **
   9  Prefactor     .10000E-03    1.8542       -.47027E-07** at limit **
  10  Prefactor     18.454        8.8793       -.11613E-06    .10174E-03
  11  Prefactor     .10000E-03    3.8357        .11398E-06** at limit **
  12  Prefactor     .10000E-03    8.1389       -.73634E-07** at limit **
  13  norm          .10000E-03    1.1582        .52076E-07** at limit **
  14  Prefactor     6.9876        161.14       -.23932E-04    .32126E-05
  15  norm          3.5004        2.5948       -.78329E-08    .59318E-04
  16  Prefactor     .10000E-03    76.200        .70915E-06** at limit **
  17  Prefactor     6.1718        77.962        .13580E-04    .12376E-04
  18  Prefactor     1.6129        5.0435        .32920E-05   -.56221E-05
  19  norm          .10000E-03    9.0325        .43621E-07** at limit **
  20  Prefactor     79.716        55.948       -.80350E-06    .55107E-04
  21  norm          .10000E-03    .25710       -.12400E-06** at limit **
  22  norm          7.1853        12.190        .24450E-06    .11206E-03
  23  Prefactor     9.1159        9.2641       -.13805E-06   -.26831E-04
  24  Prefactor     .10000E-03    11.573       -.46370E-07** at limit **
  25  Normalizat    1.0777        .25686        .15682E-05    .36871E-04
  26  Prefactor     1.0617        .24450       -.14390E-05    .41526E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.2769
  norm       = 5.62366
  Prefactor  = 0.000100001
  Prefactor  = 1.51314
  Prefactor  = 70.619
  norm       = 10.2782
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.4539
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.98764
  norm       = 3.5004
  Prefactor  = 0.0001
  Prefactor  = 6.17183
  Prefactor  = 1.61291
  norm       = 0.0001
  Prefactor  = 79.7158
  norm       = 0.0001
  norm       = 7.18528
  Prefactor  = 9.11591
  Prefactor  = 0.0001
  Normalizat = 1.0777
  Prefactor  = 1.0617
 **********
 **   18 **HESSE 
 **********

 FCN=   3763.392     FROM HESSE     STATUS=OK           460 CALLS     3660 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2769        28.521        .13946E-03   -1.5132    
   2  norm          5.6237        4.1444        .10376E-03   -1.5234    
   3  Prefactor     .10000E-03    167.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5131        99.462        .38057E-03   -1.5462    
   5  Prefactor     70.619        59.092        .23879E-03   -1.4025    
   6  norm          10.278        4.7461        .88239E-04   -1.5067    
   7  Prefactor     .10000E-03    35.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.8896        .81493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.454        8.7999        .93230E-04   -1.4849    
  11  Prefactor     .10000E-03    3.8503        .11715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.1500        .17094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.5941        .12548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.9876        162.38        .15373E-03   -1.5179    
  15  norm          3.5004        2.5921        .78910E-04   -1.5334    
  16  Prefactor     .10000E-03    76.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.1718        78.427        .16055E-03   -1.5211    
  18  Prefactor     1.6129        5.0647        .11069E-02   -1.5454    
  19  norm          .10000E-03    9.0383        .18007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     79.716        55.954        .44990E-04   -1.3920    
  21  norm          .10000E-03    .38315        .56955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.1853        11.703        .14961E-03   -1.5172    
  23  Prefactor     9.1159        9.2639        .13275E-03   -1.5104    
  24  Prefactor     .10000E-03    11.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0777        .29900        .27790E-03   -.90471    
  26  Prefactor     1.0617        .28402        .27776E-03   -.90700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.33536e-10
Minuit parameter uncertainties:
  1  28.568
  2  4.14461
  3  0.000712888
  4  24.5775
  5  59.1412
  6  4.74632
  7  4.92641e-06
  8  4.7737e-05
  9  2.91021e-06
  10  8.80055
  11  1.23059e-08
  12  5.31494e-06
  13  2.31205e-05
  14  67.5761
  15  2.59216
  16  0.00034435
  17  44.0729
  18  5.06605
  19  3.36099e-07
  20  55.9914
  21  4.87917e-07
  22  11.7069
  23  9.26533
  24  1.32844e-06
  25  0.299468
  26  0.284429
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.000e-04  2.312e-05  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.062e+00  2.844e-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.078e+00  2.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 57.142 -27.830
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.04e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/983932/likelihoodResults_503193601_503452801_4FGL_J0348.5-2749_daily_bin1018.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): 102
logL (Free Index) = 3763.39310401
delta logL = -0.00134814758985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3763.31967683
delta logL = 0.0720790361279

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .97874E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.0463       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0388       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0837       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3763.320     FROM MIGRAD    STATUS=FAILED        86 CALLS      426 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .97913E-01    31.687        .43866E-03    .78840E-02
   2  alpha         4.0458        2.5321        .51835E-02   -.13388E-04
   3  Normalizat    1.0389        .24027        .28221E-03   -.12689E-05
   4  Prefactor     1.0836        .23343        .27525E-03    .57536E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3763.320     FROM SIMPLEX   STATUS=UNCHANGED     93 CALLS      519 TOTAL
                     EDM=   .75E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .97913E-01    31.687        .56878E-04    .78840E-02
   2  alpha         4.0458        2.5321        .24217E-02   -.13388E-04
   3  Normalizat    1.0389        .24027        .14611E-03   -.12689E-05
   4  Prefactor     1.0836        .23343        .15426E-03    .57536E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3763.320     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      550 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .97903E-01    1.2010        .87732E-04   -.98937E-04
   2  alpha         4.0459        4.4965        .20734E-03   -.10089E-05
   3  Normalizat    1.0389        .29445        .11289E-04   -.31220E-05
   4  Prefactor     1.0836        .28252        .11010E-04    .75379E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0979033
  alpha      = 4.04589
  Normalizat = 1.03886
  Prefactor  = 1.08364
 **********
 **   18 **HESSE 
 **********

 FCN=   3763.320     FROM HESSE     STATUS=OK            25 CALLS      575 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .97903E-01    .86186        .35093E-05   -1.5645    
   2  alpha         4.0459        4.5058        .41468E-04    .66665    
   3  Normalizat    1.0389        .29472        .22577E-05   -.91740    
   4  Prefactor     1.0836        .28266        .22020E-05   -.89991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33333e-12
Minuit parameter uncertainties:
  1  0.580676
  2  4.07012
  3  0.295182
  4  0.283049
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/983932': 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) = 3763.31967681
delta logL = 0.0720790466171

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  9.790e-02  5.807e-01  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  4.046e+00  4.070e+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:  1.084e+00  2.830e-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.039e+00  2.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/983932/cmap_HighResolution_503193601_503452801_4FGL_J0348.5-2749_daily_bin1018.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.04e-05', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-08-19 13:36:09.135774', job_id='983932', GAL2='1.08', fit_tolerance='1e-08', EG2='1.04', EG='1.08', time_epoch_completed='1629405369.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='7.21e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1018' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:36:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 983932: <4FGL_J0348.5-2749_daily_bin1018> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1018 57.1417 -27.8303 503193601 503452801 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 :                                   869.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             248.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            921 sec.

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

