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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1593
RA = 57.1417, Dec = -27.8303
tmin = 652233601, tmax = 652492801
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='325325', job_status='RUN', time_executed='2021-09-05 00:01:23.712322', time_epoch_executed='1630825283.71' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1593'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/325325

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/325325/ft1_4FGL_J0348.5-2749_daily_bin1593.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/325325/ft2_4FGL_J0348.5-2749_daily_bin1593.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/325325/ft1_4FGL_J0348.5-2749_daily_bin1593.fits outfile=/scratch/kocevski/325325/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1593.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=652233601.0 tmax=652492801.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.48
user 4.23
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/325325/ft1_filtered_4FGL_J0348.5-2749_daily_bin1593.fits" evtable="EVENTS" scfile=/scratch/kocevski/325325/ft2_4FGL_J0348.5-2749_daily_bin1593.fits sctable="SC_DATA" outfile=/scratch/kocevski/325325/ltcube_652233601_652492801_4FGL_J0348.5-2749_daily_bin1593.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/325325/ft2_4FGL_J0348.5-2749_daily_bin1593.fits
.....................!
real 15.55
user 15.18
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/325325/ft1_filtered_4FGL_J0348.5-2749_daily_bin1593.fits evtable="EVENTS" scfile=/scratch/kocevski/325325/ft2_4FGL_J0348.5-2749_daily_bin1593.fits sctable="SC_DATA" expcube=/scratch/kocevski/325325/ltcube_652233601_652492801_4FGL_J0348.5-2749_daily_bin1593.fits outfile=/scratch/kocevski/325325/expmap_652233601_652492801_4FGL_J0348.5-2749_daily_bin1593.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/325325/ltcube_652233601_652492801_4FGL_J0348.5-2749_daily_bin1593.fits
.....................!
real 189.99
user 186.06
sys 3.56

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/325325/ft1_filtered_4FGL_J0348.5-2749_daily_bin1593.fits scfile=/scratch/kocevski/325325/ft2_4FGL_J0348.5-2749_daily_bin1593.fits outfile=/scratch/kocevski/325325/cmap_652233601_652492801_4FGL_J0348.5-2749_daily_bin1593.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 0.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/325325/ft1_filtered_4FGL_J0348.5-2749_daily_bin1593.fits scfile=/scratch/kocevski/325325/ft2_4FGL_J0348.5-2749_daily_bin1593.fits outfile=/scratch/kocevski/325325/cmap_HighResolution_652233601_652492801_4FGL_J0348.5-2749_daily_bin1593.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 0.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/325325/ft1_filtered_4FGL_J0348.5-2749_daily_bin1593.fits evtable="EVENTS" scfile=/scratch/kocevski/325325/ft2_4FGL_J0348.5-2749_daily_bin1593.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/325325/Model_4FGL_J0348.5-2749_daily_bin1593.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/325325/ft1_filtered_4FGL_J0348.5-2749_daily_bin1593.fits.....................!
real 177.25
user 175.63
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.5180       1.0000         .10000E-03   10000.    
     3 'Prefactor '    98.383       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.8342       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5895       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.187       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .41286       1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.329       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .74038       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9367       1.0000         .10000E-03   10000.    
    19 'norm      '    1.5928       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.2909       1.0000         .10000E-03   10000.    
    21 'norm      '    .58825       1.0000         .10000E-03   10000.    
    22 'norm      '    9.7180       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .96688       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .82445       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=   8111.671     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     3070 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2262        .84596E-07** at limit **
   2  norm          3.5179        2.3006       -.56390E-07   -.17676E-03
   3  Prefactor     98.456        194.94        .65846E-07    .64699E-06
   4  Prefactor     .10001E-03    5.7501       -.16738E-05** at limit **
   5  Prefactor     .10000E-03    7.4033       -.23687E-07** at limit **
   6  norm          1.8343        1.7587       -.14150E-06   -.63640E-03
   7  Prefactor     .10000E-03    12.620        .14020E-06** at limit **
   8  Prefactor     .10000E-03    8.5729       -.59389E-07** at limit **
   9  Prefactor     1.5889        1.3476       -.11518E-06   -.12406E-02
  10  Prefactor     .10000E-03    1.0712        .57693E-07** at limit **
  11  Prefactor     .10000E-03    1.0761        .10274E-06** at limit **
  12  Prefactor     .10000E-03    14.703       -.82013E-06** at limit **
  13  norm          10.187        1.3740        .17687E-07    .63517E-03
  14  Prefactor     .10000E-03    25.168       -.75355E-07** at limit **
  15  norm          .41356        .56969       -.30768E-06   -.75707E-03
  16  Prefactor     32.339        44.845       -.58358E-06   -.91192E-04
  17  Prefactor     .71677        123.40       -.17408E-04    .78773E-04
  18  Prefactor     3.9363        2.3138        .10330E-06    .29417E-03
  19  norm          1.5924        13.099       -.43534E-05    .23501E-03
  20  Prefactor     3.2884        40.196        .84595E-06    .21370E-04
  21  norm          .58824        .26363       -.90116E-07   -.61801E-02
  22  norm          9.7179        5.5205       -.90914E-07   -.37782E-03
  23  Prefactor     .10000E-03    1.0896        .17185E-06** at limit **
  24  Prefactor     .10000E-03    5.4287        .53929E-07** at limit **
  25  Normalizat    .96689        .14316        .64850E-06   -.27795E-04
  26  Prefactor     .82445        .14258        .87832E-07   -.73921E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.5179
  Prefactor  = 98.4564
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 1.83431
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.58889
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 10.1873
  Prefactor  = 0.0001
  norm       = 0.413562
  Prefactor  = 32.3386
  Prefactor  = 0.71677
  Prefactor  = 3.93634
  norm       = 1.59244
  Prefactor  = 3.28845
  norm       = 0.58824
  norm       = 9.71794
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.966888
  Prefactor  = 0.824453
 **********
 **   18 **HESSE 
 **********

 FCN=   8111.671     FROM HESSE     STATUS=OK           458 CALLS     3528 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2332        .15801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.5179        2.3034        .10734E-03   -1.5333    
   3  Prefactor     98.456        195.21        .20264E-03   -1.3720    
   4  Prefactor     .10001E-03    6.1729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.4058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.8343        1.7679        .11395E-03   -1.5437    
   7  Prefactor     .10000E-03    12.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.5764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.5889        1.3516        .93315E-04   -1.5456    
  10  Prefactor     .10000E-03    1.0785        .90985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.0895        .91233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.187        1.3778        .36697E-04   -1.5070    
  14  Prefactor     .10000E-03    25.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .41356        .57137        .97836E-03   -1.5579    
  16  Prefactor     32.339        44.884        .70472E-04   -1.4570    
  17  Prefactor     .71677        124.73        .62631E-02   -1.5539    
  18  Prefactor     3.9363        2.3083        .99062E-04   -1.5311    
  19  norm          1.5924        13.427        .16808E-02   -1.5456    
  20  Prefactor     3.2884        40.025        .22319E-03   -1.5345    
  21  norm          .58824        .26567        .29499E-04   -1.5555    
  22  norm          9.7179        5.5220        .12855E-03   -1.5084    
  23  Prefactor     .10000E-03    1.1078        .91959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.4383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .96689        .16369        .23597E-03   -.94148    
  26  Prefactor     .82445        .16295        .26156E-03   -.98833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84198e-09
Minuit parameter uncertainties:
  1  1.38781e-05
  2  2.30341
  3  196.505
  4  0.000363105
  5  1.4998e-05
  6  1.76798
  7  6.99138e-05
  8  1.47784e-05
  9  1.35165
  10  5.21766e-06
  11  8.89332e-06
  12  0.000297622
  13  1.37777
  14  6.12402e-05
  15  0.571378
  16  44.9314
  17  18.9497
  18  2.30834
  19  9.25068
  20  22.9639
  21  0.265672
  22  5.5223
  23  1.67578e-05
  24  9.64384e-06
  25  0.163776
  26  0.163042
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.019e+01  1.378e+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.245e-01  1.630e-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:  9.669e-01  1.638e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 200.07
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 3.64e-07 +/- 4.92e-08
Energy Flux (Fixed Index): 1.71e-04 +/- 2.32e-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) = 8110.45656586
delta logL = 1.21421166776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8110.44292519
delta logL = 1.22785233533

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.3578       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3030       1.0000          .0000       5.0000    
     3 'Normalizat'    .91585       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85843       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=   8110.443     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      202 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.3579        1.9014        .32752E-02   -.10888E-03
   2  alpha         2.3030        .18872        .93329E-01    .47697E-04
   3  Normalizat    .91585        .14011        .45104E-01    .25277E-05
   4  Prefactor     .85842        .14265        .44473E-01    .32373E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.35791
  alpha      = 2.30303
  Normalizat = 0.915849
  Prefactor  = 0.858424
 **********
 **   18 **HESSE 
 **********

 FCN=   8110.443     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.3579        1.4072        .34065E-04   -1.5096    
   2  alpha         2.3030        .14095        .40965E-03   -.78870E-01
   3  Normalizat    .91585        .16055        .24108E-03   -.95905    
   4  Prefactor     .85842        .16300        .25683E-03   -.97609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92938e-12
Minuit parameter uncertainties:
  1  1.40718
  2  0.141022
  3  0.160637
  4  0.163088
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/325325': 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) = 8110.44292519
delta logL = 1.22785233808

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  9.358e+00  1.407e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  2.303e+00  1.410e-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.584e-01  1.631e-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:  9.158e-01  1.606e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 201.77
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 2.30 +/- 0.14
Photon Flux (Free Index): 4.09e-07 +/- 6.01e-08
Energy Flux (Free Index): 1.43e-04 +/- 2.36e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/325325/cmap_HighResolution_652233601_652492801_4FGL_J0348.5-2749_daily_bin1593.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.64e-07', energy_flux2='1.43e-04', photon_flux_error='4.92e-08', dlogl='1.23e+00', energy_flux='1.71e-04', photon_flux2='4.09e-07', job_status='DONE', time_completed='2021-09-05 00:15:18.134214', photon_index_error2='0.14', photon_index2='2.30', ts='200.07', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='2.36e-05', EG='0.97', time_epoch_completed='1630826118.13', return_code='0', job_id='325325', GAL2='0.86', EG2='0.92', return_code2='0', energy_flux_error='2.32e-05', photon_flux_error2='6.01e-08', ts2='201.77', photon_index='2.09' WHERE bin_id='1593' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 00:15:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 325325: <4FGL_J0348.5-2749_daily_bin1593> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin1593> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 00:01:08 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 00:01:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 00:01:11 2021
Terminated at Sun Sep  5 00:15:18 2021
Results reported at Sun Sep  5 00:15:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1593 57.1417 -27.8303 652233601 652492801 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 :                                   835.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             370.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            850 sec.

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

