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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1269
RA = 57.1417, Dec = -27.8303
tmin = 568252801, tmax = 568512001
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='985434', job_status='RUN', time_executed='2021-08-19 13:29:37.474159', time_epoch_executed='1629404977.47' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1269'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/985434

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/985434/ft1_4FGL_J0348.5-2749_daily_bin1269.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/985434/ft2_4FGL_J0348.5-2749_daily_bin1269.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/985434/ft1_4FGL_J0348.5-2749_daily_bin1269.fits outfile=/scratch/kocevski/985434/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1269.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=568252801.0 tmax=568512001.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 12.19
user 3.42
sys 8.71

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/985434/ft2_4FGL_J0348.5-2749_daily_bin1269.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/985434/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1269.fits evtable="EVENTS" outfile="/scratch/kocevski/985434/ft1_filtered_4FGL_J0348.5-2749_daily_bin1269.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.65
user 0.33
sys 9.21

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/985434/ft1_filtered_4FGL_J0348.5-2749_daily_bin1269.fits" evtable="EVENTS" scfile=/scratch/kocevski/985434/ft2_4FGL_J0348.5-2749_daily_bin1269.fits sctable="SC_DATA" outfile=/scratch/kocevski/985434/ltcube_568252801_568512001_4FGL_J0348.5-2749_daily_bin1269.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/985434/ft2_4FGL_J0348.5-2749_daily_bin1269.fits
.....................!
real 22.10
user 12.04
sys 9.97

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/985434/ft1_filtered_4FGL_J0348.5-2749_daily_bin1269.fits evtable="EVENTS" scfile=/scratch/kocevski/985434/ft2_4FGL_J0348.5-2749_daily_bin1269.fits sctable="SC_DATA" expcube=/scratch/kocevski/985434/ltcube_568252801_568512001_4FGL_J0348.5-2749_daily_bin1269.fits outfile=/scratch/kocevski/985434/expmap_568252801_568512001_4FGL_J0348.5-2749_daily_bin1269.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/985434/ltcube_568252801_568512001_4FGL_J0348.5-2749_daily_bin1269.fits
.....................!
real 205.24
user 188.66
sys 16.16

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/985434/ft1_filtered_4FGL_J0348.5-2749_daily_bin1269.fits scfile=/scratch/kocevski/985434/ft2_4FGL_J0348.5-2749_daily_bin1269.fits outfile=/scratch/kocevski/985434/cmap_568252801_568512001_4FGL_J0348.5-2749_daily_bin1269.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 8.97
user 0.38
sys 8.53

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/985434/ft1_filtered_4FGL_J0348.5-2749_daily_bin1269.fits scfile=/scratch/kocevski/985434/ft2_4FGL_J0348.5-2749_daily_bin1269.fits outfile=/scratch/kocevski/985434/cmap_HighResolution_568252801_568512001_4FGL_J0348.5-2749_daily_bin1269.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 8.92
user 0.38
sys 8.49

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/985434/ft1_filtered_4FGL_J0348.5-2749_daily_bin1269.fits evtable="EVENTS" scfile=/scratch/kocevski/985434/ft2_4FGL_J0348.5-2749_daily_bin1269.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/985434/Model_4FGL_J0348.5-2749_daily_bin1269.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/985434/ft1_filtered_4FGL_J0348.5-2749_daily_bin1269.fits.....................!
real 88.27
user 75.57
sys 12.42

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.846       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10394E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.737       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.607       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19408E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.214       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.214       1.0000         .10000E-03   10000.    
    13 'norm      '    24.870       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.646       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14885       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    37.551       1.0000         .10000E-03   10000.    
    21 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.312       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0852       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .84495       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=   3019.414     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     3153 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.850        33.293        .25622E-05   -.28508E-04
   2  norm          .10000E-03    1.6238        .82807E-08** at limit **
   3  Prefactor     .10000E-03    118.57       -.68164E-04** at limit **
   4  Prefactor     .10000E-03    70.343        .40166E-04** at limit **
   5  Prefactor     .10000E-03    52.656       -.10814E-04** at limit **
   6  norm          12.737        15.839       -.26727E-05   -.27272E-04
   7  Prefactor     17.602        205.51       -.11410E-04   -.38313E-05
   8  Prefactor     .10000E-03    28.137       -.44921E-05** at limit **
   9  Prefactor     .10045E-03    1.9274        .11269E-05** at limit **
  10  Prefactor     .10000E-03    10.870       -.12258E-06** at limit **
  11  Prefactor     20.214        9.6886        .29222E-06   -.62614E-03
  12  Prefactor     26.232        55.886        .24014E-04    .12932E-04
  13  norm          24.869        4.3439        .10148E-06   -.35564E-03
  14  Prefactor     .10000E-03    49.511       -.22761E-04** at limit **
  15  norm          .10000E-03    1.2523       -.97464E-07** at limit **
  16  Prefactor     36.660        299.26        .21573E-04   -.72569E-06
  17  Prefactor     .10000E-03    14.145        .72359E-06** at limit **
  18  Prefactor     .16247        2.5421        .88777E-06   -.76892E-03
  19  norm          .10000E-03    9.6205       -.13719E-06** at limit **
  20  Prefactor     37.544        39.615       -.54823E-05   -.55382E-04
  21  norm          .10000E-03    .55985       -.29415E-06** at limit **
  22  norm          .10000E-03    19.934       -.66771E-05** at limit **
  23  Prefactor     10.311        7.6187        .26838E-07   -.28716E-03
  24  Prefactor     .10000E-03    79.546        .42772E-04** at limit **
  25  Normalizat    1.0852        .31345       -.32917E-05   -.33398E-03
  26  Prefactor     .84490        .26332        .11260E-05   -.43104E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.8498
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 12.7373
  Prefactor  = 17.6023
  Prefactor  = 0.0001
  Prefactor  = 0.000100454
  Prefactor  = 0.0001
  Prefactor  = 20.214
  Prefactor  = 26.2324
  norm       = 24.869
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 36.6598
  Prefactor  = 0.0001
  Prefactor  = 0.162469
  norm       = 0.0001
  Prefactor  = 37.5437
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.3109
  Prefactor  = 0.0001
  Normalizat = 1.08517
  Prefactor  = 0.844902
 **********
 **   18 **HESSE 
 **********

 FCN=   3019.414     FROM HESSE     STATUS=OK           446 CALLS     3599 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.850        34.001        .10764E-03   -1.4963    
   2  norm          .10000E-03    1.6296        .68376E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    118.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    71.605        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    52.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.737        15.833        .11224E-03   -1.4994    
   7  Prefactor     17.602        205.57        .95449E-04   -1.4869    
   8  Prefactor     .10000E-03    28.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10045E-03    23.850        .14310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.977        .17633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.214        9.5751        .89085E-04   -1.4808    
  12  Prefactor     26.232        55.871        .78243E-04   -1.4683    
  13  norm          24.869        4.3612        .43554E-04   -1.4710    
  14  Prefactor     .10000E-03    49.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.2929        .11958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     36.660        299.25        .66204E-04   -1.4496    
  17  Prefactor     .10000E-03    14.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .16247        21.285        .16126E-02   -1.5627    
  19  norm          .10000E-03    9.6217        .16647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     37.544        39.586        .65404E-04   -1.4482    
  21  norm          .10000E-03    .57901        .80114E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    19.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.311        7.6114        .12198E-03   -1.5066    
  24  Prefactor     .10000E-03    79.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0852        .37726        .29749E-03   -.90229    
  26  Prefactor     .84490        .31674        .29829E-03   -.98094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27766e-08
Minuit parameter uncertainties:
  1  34.0488
  2  2.65953e-08
  3  1.61364e-05
  4  0.000729763
  5  4.30944e-06
  6  15.8383
  7  120.833
  8  7.32745e-06
  9  0.00658604
  10  1.20534e-07
  11  9.57582
  12  55.9829
  13  4.36121
  14  7.4741e-05
  15  3.70023e-06
  16  210.936
  17  1.0382e-05
  18  3.71941
  19  1.41035e-05
  20  39.6137
  21  2.14478e-05
  22  6.35854e-05
  23  7.61209
  24  8.37676e-05
  25  0.378204
  26  0.317433
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  2.487e+01  4.361e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  2.088e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
249         beta:  6.312e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
250           Eb:  6.046e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  8.449e-01  3.174e-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.085e+00  3.782e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 144.46
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 8.88e-07 +/- 1.56e-07
Energy Flux (Fixed Index): 4.18e-04 +/- 7.34e-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) = 3019.392885
delta logL = 0.021405655114

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3019.39010485
delta logL = 0.0241858004356

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.787       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1265       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0626       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85836       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=   3019.390     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      197 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.787        4.3556        .20115E-02   -.70933E-03
   2  alpha         2.1265        .18124        .81034E-01    .61448E-05
   3  Normalizat    1.0626        .29834        .67781E-01    .57453E-05
   4  Prefactor     .85832        .26042        .66954E-01    .64102E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 24.7875
  alpha      = 2.12646
  Normalizat = 1.06261
  Prefactor  = 0.858325
 **********
 **   18 **HESSE 
 **********

 FCN=   3019.390     FROM HESSE     STATUS=OK            29 CALLS      226 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.787        4.1787        .43174E-04   -1.4712    
   2  alpha         2.1265        .17631        .35619E-03   -.14998    
   3  Normalizat    1.0626        .35928        .29986E-03   -.90962    
   4  Prefactor     .85832        .31154        .29618E-03   -.97613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4644e-11
Minuit parameter uncertainties:
  1  4.17871
  2  0.176459
  3  0.360111
  4  0.312182
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/985434': 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) = 3019.39010484
delta logL = 0.0241858081026

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  2.479e+01  4.179e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  2.126e+00  1.765e-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:  8.583e-01  3.122e-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.063e+00  3.601e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 145.09
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 2.13 +/- 0.18
Photon Flux (Free Index): 9.16e-07 +/- 1.99e-07
Energy Flux (Free Index): 4.06e-04 +/- 8.63e-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/985434/cmap_HighResolution_568252801_568512001_4FGL_J0348.5-2749_daily_bin1269.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.88e-07', energy_flux2='4.06e-04', photon_flux_error='1.56e-07', dlogl='2.42e-02', energy_flux='4.18e-04', photon_flux2='9.16e-07', job_status='DONE', time_completed='2021-08-19 13:40:24.759494', photon_index_error2='0.18', photon_index2='2.13', ts='144.46', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='8.63e-05', EG='1.09', time_epoch_completed='1629405624.76', return_code='0', job_id='985434', GAL2='0.86', EG2='1.06', return_code2='0', energy_flux_error='7.34e-05', photon_flux_error2='1.99e-07', ts2='145.09', photon_index='2.09' WHERE bin_id='1269' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:40:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 985434: <4FGL_J0348.5-2749_daily_bin1269> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1269 57.1417 -27.8303 568252801 568512001 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 :                                   765.51 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             235.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            893 sec.

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

