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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1488
RA = 57.1417, Dec = -27.8303
tmin = 625017601, tmax = 625276801
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='986929', job_status='RUN', time_executed='2021-08-19 13:32:48.296887', time_epoch_executed='1629405168.3' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1488'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/986929

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/986929/ft1_4FGL_J0348.5-2749_daily_bin1488.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/986929/ft2_4FGL_J0348.5-2749_daily_bin1488.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/986929/ft1_4FGL_J0348.5-2749_daily_bin1488.fits outfile=/scratch/kocevski/986929/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1488.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=625017601.0 tmax=625276801.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.23
user 3.39
sys 0.81

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/986929/ft2_4FGL_J0348.5-2749_daily_bin1488.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/986929/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1488.fits evtable="EVENTS" outfile="/scratch/kocevski/986929/ft1_filtered_4FGL_J0348.5-2749_daily_bin1488.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.16
user 0.31
sys 0.79

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/986929/ft1_filtered_4FGL_J0348.5-2749_daily_bin1488.fits" evtable="EVENTS" scfile=/scratch/kocevski/986929/ft2_4FGL_J0348.5-2749_daily_bin1488.fits sctable="SC_DATA" outfile=/scratch/kocevski/986929/ltcube_625017601_625276801_4FGL_J0348.5-2749_daily_bin1488.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/986929/ft2_4FGL_J0348.5-2749_daily_bin1488.fits
.....................!
real 13.02
user 11.81
sys 1.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/986929/ft1_filtered_4FGL_J0348.5-2749_daily_bin1488.fits evtable="EVENTS" scfile=/scratch/kocevski/986929/ft2_4FGL_J0348.5-2749_daily_bin1488.fits sctable="SC_DATA" expcube=/scratch/kocevski/986929/ltcube_625017601_625276801_4FGL_J0348.5-2749_daily_bin1488.fits outfile=/scratch/kocevski/986929/expmap_625017601_625276801_4FGL_J0348.5-2749_daily_bin1488.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/986929/ltcube_625017601_625276801_4FGL_J0348.5-2749_daily_bin1488.fits
.....................!
real 190.71
user 184.37
sys 5.98

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/986929/ft1_filtered_4FGL_J0348.5-2749_daily_bin1488.fits scfile=/scratch/kocevski/986929/ft2_4FGL_J0348.5-2749_daily_bin1488.fits outfile=/scratch/kocevski/986929/cmap_625017601_625276801_4FGL_J0348.5-2749_daily_bin1488.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.13
user 0.35
sys 0.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/986929/ft1_filtered_4FGL_J0348.5-2749_daily_bin1488.fits scfile=/scratch/kocevski/986929/ft2_4FGL_J0348.5-2749_daily_bin1488.fits outfile=/scratch/kocevski/986929/cmap_HighResolution_625017601_625276801_4FGL_J0348.5-2749_daily_bin1488.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.15
user 0.37
sys 0.77

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/986929/ft1_filtered_4FGL_J0348.5-2749_daily_bin1488.fits evtable="EVENTS" scfile=/scratch/kocevski/986929/ft2_4FGL_J0348.5-2749_daily_bin1488.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/986929/Model_4FGL_J0348.5-2749_daily_bin1488.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/986929/ft1_filtered_4FGL_J0348.5-2749_daily_bin1488.fits.....................!
real 182.74
user 180.32
sys 2.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.5293       1.0000         .10000E-03   10000.    
     3 'Prefactor '    181.54       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6868       1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.672       1.0000         .10000E-03   10000.    
     6 'norm      '    2.2228       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2732       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4483       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.850       1.0000         .10000E-03   10000.    
    13 'norm      '    11.559       1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.982       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    49.364       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3217       1.0000         .10000E-03   10000.    
    19 'norm      '    19.772       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10491E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .85183       1.0000         .10000E-03   10000.    
    22 'norm      '    21.346       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .75482       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .63314       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1543       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=   8191.533     FROM MIGRAD    STATUS=CONVERGED    622 CALLS     3084 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.329        .61363E-06** at limit **
   2  norm          2.5294        2.3264       -.28095E-07   -.11713E-04
   3  Prefactor     181.54        153.49       -.30362E-05   -.83384E-06
   4  Prefactor     1.6858        2.4749        .17001E-06   -.23154E-03
   5  Prefactor     29.675        29.373        .30537E-05    .36001E-05
   6  norm          2.2229        2.0709        .75526E-08   -.18753E-04
   7  Prefactor     .10000E-03    10.246       -.19041E-05** at limit **
   8  Prefactor     .10000E-03    9.9653        .23172E-05** at limit **
   9  Prefactor     4.2730        1.9378       -.65734E-07   -.53262E-04
  10  Prefactor     .10000E-03    1.6470        .34647E-06** at limit **
  11  Prefactor     1.4474        2.3536       -.43802E-06   -.12357E-03
  12  Prefactor     14.850        9.5244        .37635E-08   -.23768E-05
  13  norm          11.559        1.4292       -.58558E-07   -.43384E-04
  14  Prefactor     28.981        19.499       -.16919E-06   -.49206E-05
  15  norm          .10000E-03    .36766        .49212E-07** at limit **
  16  Prefactor     49.366        49.681        .27919E-05    .29769E-06
  17  Prefactor     .10000E-03    6.0444        .21057E-06** at limit **
  18  Prefactor     2.3214        1.8409        .88708E-07    .13778E-04
  19  norm          19.767        12.733        .47940E-07    .24418E-05
  20  Prefactor     .10000E-03    31.133       -.38542E-06** at limit **
  21  norm          .85186        .28335        .10861E-06    .74111E-04
  22  norm          21.346        8.0315        .54812E-07    .10937E-04
  23  Prefactor     .75810        2.8038       -.19148E-06   -.44559E-05
  24  Prefactor     .10000E-03    7.5896       -.72644E-07** at limit **
  25  Normalizat    .63311        .14810        .48224E-06    .11694E-06
  26  Prefactor     1.1543        .15542       -.37416E-07    .30378E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.52938
  Prefactor  = 181.535
  Prefactor  = 1.68579
  Prefactor  = 29.6746
  norm       = 2.22293
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.27299
  Prefactor  = 0.0001
  Prefactor  = 1.44738
  Prefactor  = 14.8502
  norm       = 11.5586
  Prefactor  = 28.9813
  norm       = 0.0001
  Prefactor  = 49.3665
  Prefactor  = 0.0001
  Prefactor  = 2.32138
  norm       = 19.767
  Prefactor  = 0.0001
  norm       = 0.851857
  norm       = 21.3464
  Prefactor  = 0.7581
  Prefactor  = 0.0001
  Normalizat = 0.633108
  Prefactor  = 1.15426
 **********
 **   18 **HESSE 
 **********

 FCN=   8191.533     FROM HESSE     STATUS=OK           462 CALLS     3546 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.909        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.5294        2.3292        .12815E-03   -1.5390    
   3  Prefactor     181.54        154.14        .29961E-04   -1.3005    
   4  Prefactor     1.6858        22.954        .16210E-02   -1.5448    
   5  Prefactor     29.675        29.369        .73553E-04   -1.4618    
   6  norm          2.2229        2.0715        .12198E-03   -1.5410    
   7  Prefactor     .10000E-03    10.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.9609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.2730        1.9240        .80469E-04   -1.5295    
  10  Prefactor     .10000E-03    1.7185        .22652E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.4474        2.3209        .16853E-03   -1.5467    
  12  Prefactor     14.850        9.5272        .10394E-03   -1.4937    
  13  norm          11.559        1.4303        .36270E-04   -1.5028    
  14  Prefactor     28.981        19.513        .74421E-04   -1.4631    
  15  norm          .10000E-03    .59503        .10492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     49.366        49.660        .57076E-04   -1.4302    
  17  Prefactor     .10000E-03    6.0483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.3214        1.8289        .10388E-03   -1.5403    
  19  norm          19.767        12.732        .90075E-04   -1.4818    
  20  Prefactor     .10000E-03    31.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .85186        .28303        .26270E-04   -1.5523    
  22  norm          21.346        8.0372        .86694E-04   -1.4784    
  23  Prefactor     .75810        4.8663        .27080E-02   -1.5534    
  24  Prefactor     .10000E-03    7.6329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .63311        .17354        .29586E-03   -1.0660    
  26  Prefactor     1.1543        .18245        .24281E-03   -.87751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60195e-08
Minuit parameter uncertainties:
  1  3.0503e-05
  2  2.32932
  3  154.488
  4  12.4467
  5  29.3833
  6  2.07157
  7  7.2495e-06
  8  8.92396e-07
  9  1.92399
  10  2.51252e-06
  11  2.321
  12  9.52813
  13  1.43027
  14  19.5172
  15  2.30794e-09
  16  49.702
  17  8.48272e-08
  18  1.82892
  19  12.7342
  20  5.68316e-06
  21  0.283034
  22  8.03766
  23  3.84162
  24  7.75936e-06
  25  0.173694
  26  0.182554
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.156e+01  1.430e+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.154e+00  1.826e-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:  6.331e-01  1.737e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 296.83
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 4.13e-07 +/- 5.10e-08
Energy Flux (Fixed Index): 1.94e-04 +/- 2.41e-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) = 8189.07500183
delta logL = 2.4576560985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8189.01923067
delta logL = 2.51342726172

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.069       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8352       1.0000          .0000       5.0000    
     3 'Normalizat'    .69251       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1158       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=   8189.019     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.069        1.5477        .28828E-02    .12689E-02
   2  alpha         1.8352        .11019        .89355E-01   -.35059E-05
   3  Normalizat    .69250        .14358        .64363E-01    .24626E-04
   4  Prefactor     1.1158        .15330        .55792E-01    .13789E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.0686
  alpha      = 1.83521
  Normalizat = 0.692504
  Prefactor  = 1.11583
 **********
 **   18 **HESSE 
 **********

 FCN=   8189.019     FROM HESSE     STATUS=OK            29 CALLS      233 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.069        1.5301        .38322E-04   -1.5013    
   2  alpha         1.8352        .10986        .39224E-03   -.26915    
   3  Normalizat    .69250        .16963        .28477E-03   -1.0419    
   4  Prefactor     1.1158        .18100        .24669E-03   -.88962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63604e-11
Minuit parameter uncertainties:
  1  1.53006
  2  0.109898
  3  0.169762
  4  0.181095
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/986929': 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) = 8189.01923067
delta logL = 2.51342726608

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.207e+01  1.530e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  1.835e+00  1.099e-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.116e+00  1.811e-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:  6.925e-01  1.698e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 299.19
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 1.84 +/- 0.11
Photon Flux (Free Index): 3.55e-07 +/- 5.21e-08
Energy Flux (Free Index): 2.69e-04 +/- 5.56e-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/986929/cmap_HighResolution_625017601_625276801_4FGL_J0348.5-2749_daily_bin1488.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.13e-07', energy_flux2='2.69e-04', photon_flux_error='5.10e-08', dlogl='2.51e+00', energy_flux='1.94e-04', photon_flux2='3.55e-07', job_status='DONE', time_completed='2021-08-19 13:47:09.053509', photon_index_error2='0.11', photon_index2='1.84', ts='296.83', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='5.56e-05', EG='0.63', time_epoch_completed='1629406029.05', return_code='0', job_id='986929', GAL2='1.12', EG2='0.69', return_code2='0', energy_flux_error='2.41e-05', photon_flux_error2='5.21e-08', ts2='299.19', photon_index='2.09' WHERE bin_id='1488' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:47:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 986929: <4FGL_J0348.5-2749_daily_bin1488> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1488 57.1417 -27.8303 625017601 625276801 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 :                                   856.23 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             340.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            977 sec.

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

