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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1068
RA = 57.1417, Dec = -27.8303
tmin = 516153601, tmax = 516412801
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='984012', job_status='RUN', time_executed='2021-08-19 13:22:00.193434', time_epoch_executed='1629404520.19' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1068'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/984012

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/984012/ft1_4FGL_J0348.5-2749_daily_bin1068.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/984012/ft2_4FGL_J0348.5-2749_daily_bin1068.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/984012/ft1_4FGL_J0348.5-2749_daily_bin1068.fits outfile=/scratch/kocevski/984012/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1068.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=516153601.0 tmax=516412801.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.54
user 3.39
sys 1.12

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/984012/ft1_filtered_4FGL_J0348.5-2749_daily_bin1068.fits" evtable="EVENTS" scfile=/scratch/kocevski/984012/ft2_4FGL_J0348.5-2749_daily_bin1068.fits sctable="SC_DATA" outfile=/scratch/kocevski/984012/ltcube_516153601_516412801_4FGL_J0348.5-2749_daily_bin1068.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/984012/ft2_4FGL_J0348.5-2749_daily_bin1068.fits
.....................!
real 13.20
user 11.74
sys 1.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/984012/ft1_filtered_4FGL_J0348.5-2749_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/984012/ft2_4FGL_J0348.5-2749_daily_bin1068.fits sctable="SC_DATA" expcube=/scratch/kocevski/984012/ltcube_516153601_516412801_4FGL_J0348.5-2749_daily_bin1068.fits outfile=/scratch/kocevski/984012/expmap_516153601_516412801_4FGL_J0348.5-2749_daily_bin1068.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/984012/ltcube_516153601_516412801_4FGL_J0348.5-2749_daily_bin1068.fits
.....................!
real 194.61
user 187.61
sys 6.48

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 160 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0348.5-2749 @ 57.1417 -27.8303

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/984012/ft1_filtered_4FGL_J0348.5-2749_daily_bin1068.fits scfile=/scratch/kocevski/984012/ft2_4FGL_J0348.5-2749_daily_bin1068.fits outfile=/scratch/kocevski/984012/cmap_516153601_516412801_4FGL_J0348.5-2749_daily_bin1068.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.47
user 0.36
sys 1.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/984012/ft1_filtered_4FGL_J0348.5-2749_daily_bin1068.fits scfile=/scratch/kocevski/984012/ft2_4FGL_J0348.5-2749_daily_bin1068.fits outfile=/scratch/kocevski/984012/cmap_HighResolution_516153601_516412801_4FGL_J0348.5-2749_daily_bin1068.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.45
user 0.38
sys 1.06

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/984012/ft1_filtered_4FGL_J0348.5-2749_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/984012/ft2_4FGL_J0348.5-2749_daily_bin1068.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/984012/Model_4FGL_J0348.5-2749_daily_bin1068.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/984012/ft1_filtered_4FGL_J0348.5-2749_daily_bin1068.fits.....................!
real 127.65
user 124.78
sys 2.43

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.308       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5658       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.993       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1144       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.6452       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .60184       1.0000         .10000E-03   10000.    
    16 'Prefactor '    74.421       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.2308       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.440       1.0000         .10000E-03   10000.    
    21 'norm      '    .26119E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.9249       1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.758       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .86457       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0796       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5627.232     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     3138 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.308        10.704         .0000       -.46466E-04
   2  norm          1.5657        2.3618         .0000        .57936E-03
   3  Prefactor     .10000E-03    166.62         .0000    ** at limit **
   4  Prefactor     23.990        23.978         .0000       -.15457E-03
   5  Prefactor     .10000E-03    9.4788         .0000    ** at limit **
   6  norm          .10000E-03    .79363         .0000    ** at limit **
   7  Prefactor     .10000E-03    15.459         .0000    ** at limit **
   8  Prefactor     .10000E-03    74.949         .0000    ** at limit **
   9  Prefactor     .10000E-03    1.6347         .0000    ** at limit **
  10  Prefactor     .10000E-03    1.1757         .0000    ** at limit **
  11  Prefactor     5.1140        3.9367         .0000        .17654E-03
  12  Prefactor     .10000E-03    18.392         .0000    ** at limit **
  13  norm          2.6452        .93403         .0000        .37202E-03
  14  Prefactor     .10000E-03    28.643         .0000    ** at limit **
  15  norm          .60234        .89817         .0000        .32775E-02
  16  Prefactor     74.422        64.027         .0000       -.32365E-03
  17  Prefactor     9.2368        27.173         .0000        .39927E-04
  18  Prefactor     .10000E-03    1.9200         .0000    ** at limit **
  19  norm          .10000E-03    9.0430         .0000    ** at limit **
  20  Prefactor     29.437        28.425         .0000       -.59214E-04
  21  norm          .26226E-01    .13414         .0000        .24109E-02
  22  norm          .10000E-03    2.1433         .0000    ** at limit **
  23  Prefactor     2.9247        4.5848         .0000        .12406E-01
  24  Prefactor     11.758        16.481         .0000        .53722E-03
  25  Normalizat    .86459        .17772         .0000       -.30047E-03
  26  Prefactor     1.0795        .18382         .0000       -.50806E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.3084
  norm       = 1.56569
  Prefactor  = 0.000100004
  Prefactor  = 23.9895
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.11402
  Prefactor  = 0.000100002
  norm       = 2.64517
  Prefactor  = 0.000100001
  norm       = 0.602339
  Prefactor  = 74.4219
  Prefactor  = 9.23679
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.4368
  norm       = 0.0262264
  norm       = 0.0001
  Prefactor  = 2.92471
  Prefactor  = 11.7582
  Normalizat = 0.864594
  Prefactor  = 1.07954
 **********
 **   18 **HESSE 
 **********

 FCN=   5627.232     FROM HESSE     STATUS=OK           452 CALLS     3590 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.308        10.710        .11913E-03   -1.5035    
   2  norm          1.5657        2.3347        .13723E-03   -1.5458    
   3  Prefactor     .10000E-03    166.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.990        23.992        .81778E-04   -1.4728    
   5  Prefactor     .10000E-03    9.4936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .79695        .65257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    75.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.6830        .18674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.1803        .79365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.1140        3.9260        .12328E-03   -1.5256    
  12  Prefactor     .10000E-03    18.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.6452        .93550        .41372E-04   -1.5383    
  14  Prefactor     .10000E-03    28.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .60234        .89649        .23360E-03   -1.5553    
  16  Prefactor     74.422        64.058        .46542E-04   -1.3980    
  17  Prefactor     9.2368        27.143        .13191E-03   -1.5100    
  18  Prefactor     .10000E-03    1.9801        .20261E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    9.1092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     29.437        28.412        .73841E-04   -1.4622    
  21  norm          .26226E-01    .44609        .51366E-03   -1.5676    
  22  norm          .10000E-03    2.1478        .10723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.9247        4.5748        .96182E-03   -1.5366    
  24  Prefactor     11.758        16.463        .58413E-03   -1.5022    
  25  Normalizat    .86459        .20305        .24807E-03   -.97716    
  26  Prefactor     1.0795        .21025        .24070E-03   -.90123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51491e-09
Minuit parameter uncertainties:
  1  10.712
  2  2.3348
  3  0.00153892
  4  24.002
  5  7.36083e-05
  6  9.23935e-06
  7  0.000205998
  8  0.000611755
  9  2.26542e-05
  10  7.56716e-06
  11  3.92622
  12  0.000379365
  13  0.93551
  14  0.000373482
  15  0.89651
  16  64.1175
  17  27.1797
  18  1.04893e-05
  19  8.87914e-05
  20  28.4252
  21  0.215916
  22  2.64247e-05
  23  4.57533
  24  16.4693
  25  0.203229
  26  0.210411
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  2.645e+00  9.355e-01  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.080e+00  2.104e-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:  8.646e-01  2.032e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 34.16
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 9.44e-08 +/- 3.34e-08
Energy Flux (Fixed Index): 4.45e-05 +/- 1.57e-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) = 5626.65008365
delta logL = 0.581927578034

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5626.6325208
delta logL = 0.599490425499

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4239       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7243       1.0000          .0000       5.0000    
     3 'Normalizat'    .89738       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0604       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=   5626.633     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      198 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4239        .91229        .65719E-02    .41336E-02
   2  alpha         1.7243        .28131        .20438       -.17878E-04
   3  Normalizat    .89739        .16948        .44868E-01    .22339E-04
   4  Prefactor     1.0604        .18111        .39338E-01   -.66008E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.42394
  alpha      = 1.72427
  Normalizat = 0.897386
  Prefactor  = 1.06036
 **********
 **   18 **HESSE 
 **********

 FCN=   5626.633     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4239        1.0116        .42559E-04   -1.5397    
   2  alpha         1.7243        .32633        .86098E-02   -.31550    
   3  Normalizat    .89739        .19465        .24417E-03   -.96552    
   4  Prefactor     1.0604        .20748        .24271E-03   -.90744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.6305e-10
Minuit parameter uncertainties:
  1  1.0116
  2  0.327368
  3  0.194806
  4  0.207637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/984012': 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) = 5626.6325208
delta logL = 0.599490426262

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  2.424e+00  1.012e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  1.724e+00  3.274e-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.060e+00  2.076e-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:  8.974e-01  1.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 35.33
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 1.72 +/- 0.33
Photon Flux (Free Index): 6.67e-08 +/- 3.44e-08
Energy Flux (Free Index): 6.52e-05 +/- 3.74e-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/984012/cmap_HighResolution_516153601_516412801_4FGL_J0348.5-2749_daily_bin1068.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.44e-08', energy_flux2='6.52e-05', photon_flux_error='3.34e-08', dlogl='5.99e-01', energy_flux='4.45e-05', photon_flux2='6.67e-08', job_status='DONE', time_completed='2021-08-19 13:33:21.977976', photon_index_error2='0.33', photon_index2='1.72', ts='34.16', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='3.74e-05', EG='0.86', time_epoch_completed='1629405201.98', return_code='0', job_id='984012', GAL2='1.06', EG2='0.90', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='3.44e-08', ts2='35.33', photon_index='2.09' WHERE bin_id='1068' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:33:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 984012: <4FGL_J0348.5-2749_daily_bin1068> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin1068> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Aug 19 13:20:56 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:20:59 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:59 2021
Terminated at Thu Aug 19 13:33:22 2021
Results reported at Thu Aug 19 13:33:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1068 57.1417 -27.8303 516153601 516412801 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 :                                   693.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             378.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            746 sec.

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

