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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin479
RA = 57.1417, Dec = -27.8303
tmin = 363484801, tmax = 363744001
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='980861', job_status='RUN', time_executed='2021-08-19 13:11:36.508697', time_epoch_executed='1629403896.51' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='479'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/980861

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/980861/ft1_4FGL_J0348.5-2749_daily_bin479.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/980861/ft2_4FGL_J0348.5-2749_daily_bin479.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/980861/ft1_4FGL_J0348.5-2749_daily_bin479.fits outfile=/scratch/kocevski/980861/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin479.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=363484801.0 tmax=363744001.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 5.93
user 3.48
sys 2.39

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/980861/ft1_filtered_4FGL_J0348.5-2749_daily_bin479.fits" evtable="EVENTS" scfile=/scratch/kocevski/980861/ft2_4FGL_J0348.5-2749_daily_bin479.fits sctable="SC_DATA" outfile=/scratch/kocevski/980861/ltcube_363484801_363744001_4FGL_J0348.5-2749_daily_bin479.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/980861/ft2_4FGL_J0348.5-2749_daily_bin479.fits
.....................!
real 14.88
user 12.03
sys 2.79

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/980861/ft1_filtered_4FGL_J0348.5-2749_daily_bin479.fits evtable="EVENTS" scfile=/scratch/kocevski/980861/ft2_4FGL_J0348.5-2749_daily_bin479.fits sctable="SC_DATA" expcube=/scratch/kocevski/980861/ltcube_363484801_363744001_4FGL_J0348.5-2749_daily_bin479.fits outfile=/scratch/kocevski/980861/expmap_363484801_363744001_4FGL_J0348.5-2749_daily_bin479.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/980861/ltcube_363484801_363744001_4FGL_J0348.5-2749_daily_bin479.fits
.....................!
real 192.96
user 184.65
sys 7.87

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/980861/ft1_filtered_4FGL_J0348.5-2749_daily_bin479.fits scfile=/scratch/kocevski/980861/ft2_4FGL_J0348.5-2749_daily_bin479.fits outfile=/scratch/kocevski/980861/cmap_363484801_363744001_4FGL_J0348.5-2749_daily_bin479.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 2.96
user 0.37
sys 2.56

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/980861/ft1_filtered_4FGL_J0348.5-2749_daily_bin479.fits scfile=/scratch/kocevski/980861/ft2_4FGL_J0348.5-2749_daily_bin479.fits outfile=/scratch/kocevski/980861/cmap_HighResolution_363484801_363744001_4FGL_J0348.5-2749_daily_bin479.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 2.93
user 0.38
sys 2.53

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/980861/ft1_filtered_4FGL_J0348.5-2749_daily_bin479.fits evtable="EVENTS" scfile=/scratch/kocevski/980861/ft2_4FGL_J0348.5-2749_daily_bin479.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/980861/Model_4FGL_J0348.5-2749_daily_bin479.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/980861/ft1_filtered_4FGL_J0348.5-2749_daily_bin479.fits.....................!
real 158.42
user 153.55
sys 4.47

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1206       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5680       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.218       1.0000         .10000E-03   10000.    
     6 'norm      '    2.4779       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.097       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .89921       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.8668       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0957       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .24071E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    56.670       1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    104.03       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5954       1.0000         .10000E-03   10000.    
    19 'norm      '    9.1286       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .72332       1.0000         .10000E-03   10000.    
    22 'norm      '    4.3456       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .67169E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .82311       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93904       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7175.402     FROM MIGRAD    STATUS=CONVERGED    106 CALLS     2705 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1198        1.0075       -.78858E-07    .84466E-04
   2  norm          1.5680        1.4886       -.60182E-08   -.35467E-04
   3  Prefactor     .10001E-03    109.63       -.15968E-04** at limit **
   4  Prefactor     .10000E-03    4.9044       -.29957E-06** at limit **
   5  Prefactor     21.213        1.2478       -.49421E-06    .74630E-03
   6  norm          2.4778        1.9004       -.38718E-08    .16757E-04
   7  Prefactor     .10001E-03    16.393       -.11971E-04** at limit **
   8  Prefactor     27.098        1.0299        .17659E-06   -.37331E-03
   9  Prefactor     .89912        1.6626        .36526E-06    .10994E-02
  10  Prefactor     5.8661        3.7127       -.14334E-06    .77191E-03
  11  Prefactor     3.0958        3.0888        .97361E-07    .38675E-04
  12  Prefactor     .10008E-03    5.9411        .58321E-05** at limit **
  13  norm          .24095E-01    1.1079        .56103E-08   -.48778E-03
  14  Prefactor     56.665        1.2711       -.30599E-06    .11844E-02
  15  norm          .10000E-03    .86328        .54824E-06** at limit **
  16  Prefactor     104.03        1.1317       -.20236E-06    .18366E-02
  17  Prefactor     .10003E-03    12.513        .86886E-05** at limit **
  18  Prefactor     2.5952        2.3058        .98426E-07    .57647E-03
  19  norm          9.1287        1.0022       -.45642E-07   -.20120E-04
  20  Prefactor     .10009E-03    6.7118       -.10452E-04** at limit **
  21  norm          .72325        .29139       -.15473E-06   -.16607E-02
  22  norm          4.3456        4.2520        .50341E-05    .28116E-03
  23  Prefactor     .10012E-03    43.385        .46450E-04** at limit **
  24  Prefactor     .10000E-03    8.1149        .16672E-05** at limit **
  25  Normalizat    .82325        .16485        .11452E-05    .52277E-03
  26  Prefactor     .93890        .16991       -.12546E-05    .18716E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.11975
  norm       = 1.56802
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 21.2132
  norm       = 2.47778
  Prefactor  = 0.000100012
  Prefactor  = 27.0978
  Prefactor  = 0.899123
  Prefactor  = 5.86614
  Prefactor  = 3.0958
  Prefactor  = 0.000100077
  norm       = 0.0240948
  Prefactor  = 56.6649
  norm       = 0.000100001
  Prefactor  = 104.025
  Prefactor  = 0.000100026
  Prefactor  = 2.59521
  norm       = 9.12867
  Prefactor  = 0.000100089
  norm       = 0.72325
  norm       = 4.34565
  Prefactor  = 0.000100117
  Prefactor  = 0.0001
  Normalizat = 0.823247
  Prefactor  = 0.9389
 **********
 **   18 **HESSE 
 **********

 FCN=   7175.402     FROM HESSE     STATUS=OK           530 CALLS     3235 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1198        9.1534        .40570E-02   -1.5213    
   2  norm          1.5680        1.4713        .84892E-02   -1.5458    
   3  Prefactor     .10001E-03    109.96        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.8898        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.213        29.430        .21739E-02   -1.4786    
   6  norm          2.4778        1.9040        .64932E-02   -1.5393    
   7  Prefactor     .10001E-03    17.202        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     27.098        32.842        .19240E-02   -1.4666    
   9  Prefactor     .89912        1.7527        .12805E-01   -1.5518    
  10  Prefactor     5.8661        3.7494        .41450E-02   -1.5224    
  11  Prefactor     3.0958        3.1376        .57623E-02   -1.5356    
  12  Prefactor     .10008E-03    10.209        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .24095E-01    .31180        .16405E-01   -1.5677    
  14  Prefactor     56.665        28.609        .13322E-02   -1.4201    
  15  norm          .10000E-03    .54481        .23615E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     104.03        81.676        .98560E-03   -1.3665    
  17  Prefactor     .10003E-03    13.985        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.5952        2.3507        .63316E-02   -1.5386    
  19  norm          9.1287        7.5337        .33163E-02   -1.5104    
  20  Prefactor     .10009E-03    9.6773        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .72325        .29315        .61172E-02   -1.5538    
  22  norm          4.3456        4.2620        .48307E-02   -1.5291    
  23  Prefactor     .10012E-03    1.3588        .62299E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.1040        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .82325        .14642        .43911E-01   -.99212    
  26  Prefactor     .93890        .14871        .45501E-01   -.94795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76058e-08
Minuit parameter uncertainties:
  1  9.1555
  2  1.47136
  3  0.0015071
  4  8.31243e-05
  5  29.4503
  6  1.90407
  7  0.000891154
  8  32.8634
  9  1.75281
  10  3.74952
  11  3.13776
  12  0.00177875
  13  0.172995
  14  28.6162
  15  3.31408e-05
  16  81.7645
  17  0.00119756
  18  2.35079
  19  7.53446
  20  0.00185954
  21  0.293152
  22  4.2623
  23  0.000797841
  24  3.77974e-05
  25  0.14649
  26  0.148774
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  2.409e-02  1.730e-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:  9.389e-01  1.488e-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.232e-01  1.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 57.142 -27.830
Photon Flux Upper Limit: 4.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.91e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/980861/likelihoodResults_363484801_363744001_4FGL_J0348.5-2749_daily_bin479.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7175.38004922
delta logL = 0.0217659131013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7175.36938508
delta logL = 0.0324300511465

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .56055E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0657       1.0000          .0000       5.0000    
     3 'Normalizat'    .81670       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94264       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7175.369     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      261 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55894E-01    1.1449        .37198E-04    .24022E-03
   2  alpha         3.0690        3.1399        .87833E-01    .46522E-05
   3  Normalizat    .81675        .16341        .23815E-03    .76857E-05
   4  Prefactor     .94253        .17100        .23651E-03    .77873E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.055894
  alpha      = 3.06903
  Normalizat = 0.816747
  Prefactor  = 0.942529
 **********
 **   18 **HESSE 
 **********

 FCN=   7175.369     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .67E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55894E-01    .34549        .14879E-05   -1.5661    
   2  alpha         3.0690        4.0278        .35133E-02    .22962    
   3  Normalizat    .81675        .16161        .95261E-05   -.99450    
   4  Prefactor     .94253        .16947        .94602E-05   -.94670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.69894e-12
Minuit parameter uncertainties:
  1  0.27768
  2  4.13124
  3  0.161703
  4  0.169566
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/980861': 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) = 7175.36938431
delta logL = 0.0324308238887

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  9.425e-01  1.696e-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.167e-01  1.617e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 57.142 -27.830

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/980861/cmap_HighResolution_363484801_363744001_4FGL_J0348.5-2749_daily_bin479.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.91e-05', job_status='DONE', photon_flux_upper_limit='4.05e-08', time_completed='2021-08-19 13:25:55.226030', job_id='980861', GAL2='0.94', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1629404755.23', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='3.24e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='479' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:25:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 980861: <4FGL_J0348.5-2749_daily_bin479> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin479> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 19 13:10:44 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:10:45 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:10:45 2021
Terminated at Thu Aug 19 13:25:56 2021
Results reported at Thu Aug 19 13:25:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin479 57.1417 -27.8303 363484801 363744001 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 :                                   895.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             357.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

