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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1106
RA = 57.1417, Dec = -27.8303
tmin = 526003201, tmax = 526262401
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='985189', job_status='RUN', time_executed='2021-08-19 13:26:55.685503', time_epoch_executed='1629404815.69' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1106'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/985189

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/985189/ft1_4FGL_J0348.5-2749_daily_bin1106.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/985189/ft2_4FGL_J0348.5-2749_daily_bin1106.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/985189/ft1_4FGL_J0348.5-2749_daily_bin1106.fits outfile=/scratch/kocevski/985189/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1106.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=526003201.0 tmax=526262401.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 6.20
user 3.48
sys 0.93

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/985189/ft1_filtered_4FGL_J0348.5-2749_daily_bin1106.fits" evtable="EVENTS" scfile=/scratch/kocevski/985189/ft2_4FGL_J0348.5-2749_daily_bin1106.fits sctable="SC_DATA" outfile=/scratch/kocevski/985189/ltcube_526003201_526262401_4FGL_J0348.5-2749_daily_bin1106.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/985189/ft2_4FGL_J0348.5-2749_daily_bin1106.fits
.....................!
real 13.09
user 11.92
sys 1.11

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/985189/ft1_filtered_4FGL_J0348.5-2749_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/985189/ft2_4FGL_J0348.5-2749_daily_bin1106.fits sctable="SC_DATA" expcube=/scratch/kocevski/985189/ltcube_526003201_526262401_4FGL_J0348.5-2749_daily_bin1106.fits outfile=/scratch/kocevski/985189/expmap_526003201_526262401_4FGL_J0348.5-2749_daily_bin1106.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/985189/ltcube_526003201_526262401_4FGL_J0348.5-2749_daily_bin1106.fits
.....................!
real 191.76
user 185.17
sys 5.95

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/985189/ft1_filtered_4FGL_J0348.5-2749_daily_bin1106.fits scfile=/scratch/kocevski/985189/ft2_4FGL_J0348.5-2749_daily_bin1106.fits outfile=/scratch/kocevski/985189/cmap_526003201_526262401_4FGL_J0348.5-2749_daily_bin1106.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.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/985189/ft1_filtered_4FGL_J0348.5-2749_daily_bin1106.fits scfile=/scratch/kocevski/985189/ft2_4FGL_J0348.5-2749_daily_bin1106.fits outfile=/scratch/kocevski/985189/cmap_HighResolution_526003201_526262401_4FGL_J0348.5-2749_daily_bin1106.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.21
user 0.37
sys 0.83

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/985189/ft1_filtered_4FGL_J0348.5-2749_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/985189/ft2_4FGL_J0348.5-2749_daily_bin1106.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/985189/Model_4FGL_J0348.5-2749_daily_bin1106.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/985189/ft1_filtered_4FGL_J0348.5-2749_daily_bin1106.fits.....................!
real 115.16
user 112.83
sys 2.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.015       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.320       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.4153       1.0000         .10000E-03   10000.    
     6 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.157       1.0000         .10000E-03   10000.    
     8 'Prefactor '    49.158       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .61288       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.998       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6746       1.0000         .10000E-03   10000.    
    14 'Prefactor '    63.596       1.0000         .10000E-03   10000.    
    15 'norm      '    .96160       1.0000         .10000E-03   10000.    
    16 'Prefactor '    99.870       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.394       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16285E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    .46841E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.5175       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .70062       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=   5073.678     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3720 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.2654       -.40339E-06** at limit **
   2  norm          .10000E-03    3.0191       -.70261E-06** at limit **
   3  Prefactor     13.347        419.52       -.14557E-04   -.17569E-04
   4  Prefactor     18.317        26.613        .79051E-06    .13645E-04
   5  Prefactor     8.3769        84.538        .26096E-05    .11079E-04
   6  norm          .10000E-03    3.6418       -.42740E-06** at limit **
   7  Prefactor     16.162        47.029        .61350E-06    .28070E-05
   8  Prefactor     49.088        54.430       -.66592E-06    .76218E-05
   9  Prefactor     .61284        2.4373        .25633E-05    .82443E-03
  10  Prefactor     .10000E-03    4.7496       -.69401E-06** at limit **
  11  Prefactor     .10000E-03    5.3473       -.94622E-06** at limit **
  12  Prefactor     23.008        19.795       -.42450E-06   -.23485E-03
  13  norm          1.6744        1.0306        .24827E-06    .49916E-03
  14  Prefactor     63.614        45.486        .69813E-07   -.76091E-05
  15  norm          .96157        1.8551       -.27190E-06   -.50224E-03
  16  Prefactor     100.26        134.63        .44199E-06   -.13029E-04
  17  Prefactor     18.397        37.111        .69754E-06    .16674E-06
  18  Prefactor     .10000E-03    1.3826       -.47965E-06** at limit **
  19  norm          .10000E-03    8.6625       -.37704E-06** at limit **
  20  Prefactor     .16769E-03    28.943        .57026E-05** at limit **
  21  norm          .46934E-01    .28691        .51892E-06   -.10964E-02
  22  norm          .10000E-03    3.4327       -.24228E-06** at limit **
  23  Prefactor     .10000E-03    1.9109       -.42052E-06** at limit **
  24  Prefactor     .10000E-03    8.4889       -.18310E-06** at limit **
  25  Normalizat    1.5174        .23745       -.47418E-05   -.23597E-03
  26  Prefactor     .70079        .22448        .58188E-05   -.17126E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.3474
  Prefactor  = 18.3173
  Prefactor  = 8.37685
  norm       = 0.0001
  Prefactor  = 16.1618
  Prefactor  = 49.0878
  Prefactor  = 0.612843
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.0079
  norm       = 1.67443
  Prefactor  = 63.614
  norm       = 0.961568
  Prefactor  = 100.255
  Prefactor  = 18.3971
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000167685
  norm       = 0.0469343
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.51739
  Prefactor  = 0.700786
 **********
 **   18 **HESSE 
 **********

 FCN=   5073.678     FROM HESSE     STATUS=OK           464 CALLS     4184 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.2827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.1037        .24164E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.347        411.33        .11103E-03   -1.4977    
   4  Prefactor     18.317        26.522        .93575E-04   -1.4852    
   5  Prefactor     8.3769        84.130        .13819E-03   -1.5129    
   6  norm          .10000E-03    3.7660        .26507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.162        46.958        .99642E-04   -1.4904    
   8  Prefactor     49.088        54.483        .57194E-04   -1.4306    
   9  Prefactor     .61284        2.4714        .20702E-03   -1.5551    
  10  Prefactor     .10000E-03    4.8545        .15139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.5655        .32119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.008        19.708        .83525E-04   -1.4748    
  13  norm          1.6744        1.0332        .53826E-04   -1.5449    
  14  Prefactor     63.614        45.434        .25160E-03   -1.4111    
  15  norm          .96157        1.7686        .11918E-03   -1.5512    
  16  Prefactor     100.26        134.57        .20114E-03   -1.3702    
  17  Prefactor     18.397        37.068        .93387E-04   -1.4850    
  18  Prefactor     .10000E-03    1.4022        .81719E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    8.7127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .16769E-03    23.394        .10047       -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .46934E-01    .50918        .65898E-03   -1.5665    
  22  norm          .10000E-03    3.4394        .12887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.9398        .96156E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.4989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.5174        .25451        .22818E-03   -.77291    
  26  Prefactor     .70079        .24186        .31691E-03   -1.0350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69217e-09
Minuit parameter uncertainties:
  1  2.97059e-05
  2  3.26164e-05
  3  149.329
  4  26.5389
  5  53.1907
  6  2.05201e-05
  7  47.0661
  8  54.5387
  9  2.46132
  10  5.425e-05
  11  8.28777e-05
  12  19.7137
  13  1.03323
  14  45.4584
  15  1.76866
  16  134.985
  17  37.114
  18  1.77081e-05
  19  4.79928e-05
  20  0.0796165
  21  0.308855
  22  1.8202e-05
  23  1.61151e-05
  24  1.84551e-05
  25  0.254722
  26  0.242225
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.674e+00  1.033e+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:  7.008e-01  2.422e-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.517e+00  2.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.26
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 5.98e-08 +/- 3.69e-08
Energy Flux (Fixed Index): 2.82e-05 +/- 1.74e-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) = 5072.89334143
delta logL = 0.784606144469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5072.87800167
delta logL = 0.799945898254

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .60259       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2040       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5703       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67687       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=   5072.878     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      217 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .60346        .51900        .87545E-02   -.36902E-03
   2  alpha         1.2046        .38842        .24454       -.36404E-04
   3  Normalizat    1.5702        .20427        .50912E-01   -.25862E-06
   4  Prefactor     .67698        .20228        .72783E-01    .22180E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.603464
  alpha      = 1.20465
  Normalizat = 1.57018
  Prefactor  = 0.676982
 **********
 **   18 **HESSE 
 **********

 FCN=   5072.878     FROM HESSE     STATUS=OK            35 CALLS      252 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .60346        .79142        .37445E-03   -1.5553    
   2  alpha         1.2046        .60112        .10248E-01   -.54468    
   3  Normalizat    1.5702        .23755        .22507E-03   -.75825    
   4  Prefactor     .67698        .23456        .32216E-03   -1.0444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79024e-09
Minuit parameter uncertainties:
  1  0.791435
  2  0.60933
  3  0.237722
  4  0.234907
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/985189': 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) = 5072.87800091
delta logL = 0.799946659749

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  6.035e-01  7.914e-01  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  1.205e+00  6.093e-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:  6.770e-01  2.349e-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.570e+00  2.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.84
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 1.20 +/- 0.61
Photon Flux (Free Index): 1.57e-08 +/- 1.74e-08
Energy Flux (Free Index): 6.37e-05 +/- 7.33e-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/985189/cmap_HighResolution_526003201_526262401_4FGL_J0348.5-2749_daily_bin1106.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.98e-08', energy_flux2='6.37e-05', photon_flux_error='3.69e-08', dlogl='8.00e-01', energy_flux='2.82e-05', photon_flux2='1.57e-08', job_status='DONE', time_completed='2021-08-19 13:38:18.043364', photon_index_error2='0.61', photon_index2='1.20', ts='13.26', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='7.33e-05', EG='1.52', time_epoch_completed='1629405498.04', return_code='0', job_id='985189', GAL2='0.68', EG2='1.57', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='1.74e-08', ts2='14.84', photon_index='2.09' WHERE bin_id='1106' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:38:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 985189: <4FGL_J0348.5-2749_daily_bin1106> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1106 57.1417 -27.8303 526003201 526262401 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 :                                   685.05 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             344.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            782 sec.

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

