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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1597
RA = 57.1417, Dec = -27.8303
tmin = 653270401, tmax = 653529601
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='537435', job_status='RUN', time_executed='2021-09-17 00:25:56.632236', time_epoch_executed='1631863556.63' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1597'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/537435

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/537435/ft1_4FGL_J0348.5-2749_daily_bin1597.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/537435/ft2_4FGL_J0348.5-2749_daily_bin1597.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/537435/ft1_4FGL_J0348.5-2749_daily_bin1597.fits outfile=/scratch/kocevski/537435/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1597.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=653270401.0 tmax=653529601.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 3.35
user 3.14
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/537435/ft1_filtered_4FGL_J0348.5-2749_daily_bin1597.fits" evtable="EVENTS" scfile=/scratch/kocevski/537435/ft2_4FGL_J0348.5-2749_daily_bin1597.fits sctable="SC_DATA" outfile=/scratch/kocevski/537435/ltcube_653270401_653529601_4FGL_J0348.5-2749_daily_bin1597.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/537435/ft2_4FGL_J0348.5-2749_daily_bin1597.fits
.....................!
real 12.74
user 12.17
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/537435/ft1_filtered_4FGL_J0348.5-2749_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/537435/ft2_4FGL_J0348.5-2749_daily_bin1597.fits sctable="SC_DATA" expcube=/scratch/kocevski/537435/ltcube_653270401_653529601_4FGL_J0348.5-2749_daily_bin1597.fits outfile=/scratch/kocevski/537435/expmap_653270401_653529601_4FGL_J0348.5-2749_daily_bin1597.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/537435/ltcube_653270401_653529601_4FGL_J0348.5-2749_daily_bin1597.fits
.....................!
real 191.67
user 185.35
sys 5.20

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/537435/ft1_filtered_4FGL_J0348.5-2749_daily_bin1597.fits scfile=/scratch/kocevski/537435/ft2_4FGL_J0348.5-2749_daily_bin1597.fits outfile=/scratch/kocevski/537435/cmap_653270401_653529601_4FGL_J0348.5-2749_daily_bin1597.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.53
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/537435/ft1_filtered_4FGL_J0348.5-2749_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/537435/ft2_4FGL_J0348.5-2749_daily_bin1597.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/537435/Model_4FGL_J0348.5-2749_daily_bin1597.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/537435/ft1_filtered_4FGL_J0348.5-2749_daily_bin1597.fits.....................!
real 107.92
user 106.56
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10437E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.490       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.1156       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.432       1.0000         .10000E-03   10000.    
     8 'Prefactor '    68.507       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.8796       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1226       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.3705       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .46900       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11780E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15654E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10154E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .23035E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    .49494       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.3638       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1917       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0390       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=   4745.525     FROM MIGRAD    STATUS=CONVERGED   1101 CALLS     3600 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.638        .18142E-02** at limit **
   2  norm          .10000E-03    1.7199        .88139E-03** at limit **
   3  Prefactor     .10000E-03    103.08        .18142E-02** at limit **
   4  Prefactor     19.506        24.183        .90724E-04   -.32079E-04
   5  Prefactor     .10000E-03    18.969        .18142E-02** at limit **
   6  norm          3.1162        2.8699        .10887E-03    .34357E-04
   7  Prefactor     21.425        61.257        .86519E-04   -.32062E-04
   8  Prefactor     68.525        63.879        .48495E-04    .49183E-04
   9  Prefactor     .10000E-03    2.1601        .19528E-03** at limit **
  10  Prefactor     4.8805        5.6975        .15104E-03   -.22656E-04
  11  Prefactor     5.1131        7.0018        .17571E-03   -.35411E-03
  12  Prefactor     .10000E-03    26.274        .18142E-02** at limit **
  13  norm          8.3708        1.9395        .42901E-04   -.50572E-03
  14  Prefactor     .10000E-03    27.202        .18142E-02** at limit **
  15  norm          .46944        1.5874        .14914E-03   -.30896E-03
  16  Prefactor     .10000E-03    102.42        .18142E-02** at limit **
  17  Prefactor     .10000E-03    14.517        .18142E-02** at limit **
  18  Prefactor     .10000E-03    4.3456        .19607E-02** at limit **
  19  norm          .10000E-03    13.474        .18142E-02** at limit **
  20  Prefactor     .10000E-03    38.952        .10780    ** at limit **
  21  norm          .49520        .37128        .35001E-03    .29630E-02
  22  norm          .10000E-03    3.7285        .12956E-02** at limit **
  23  Prefactor     .10000E-03    3.2101        .23604E-03** at limit **
  24  Prefactor     7.3666        18.418        .14780E-03   -.24537E-04
  25  Normalizat    1.1911        .26767        .26063E-03   -.90469E-04
  26  Prefactor     1.0393        .26013        .27937E-03   -.11517E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.5059
  Prefactor  = 0.0001
  norm       = 3.11617
  Prefactor  = 21.4251
  Prefactor  = 68.5253
  Prefactor  = 0.0001
  Prefactor  = 4.88052
  Prefactor  = 5.11312
  Prefactor  = 0.0001
  norm       = 8.3708
  Prefactor  = 0.0001
  norm       = 0.469444
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.495198
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.36665
  Normalizat = 1.1911
  Prefactor  = 1.03932
 **********
 **   18 **HESSE 
 **********

 FCN=   4745.525     FROM HESSE     STATUS=OK           442 CALLS     4042 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.648        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.7199        .17628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    103.08        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.506        24.185        .36290E-05   -1.4824    
   5  Prefactor     .10000E-03    18.969        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.1162        2.8699        .43547E-05   -1.5355    
   7  Prefactor     21.425        61.307        .34607E-05   -1.4782    
   8  Prefactor     68.525        63.881        .96990E-05   -1.4050    
   9  Prefactor     .10000E-03    2.1601        .39056E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.8805        5.6956        .60415E-05   -1.5266    
  11  Prefactor     5.1131        6.9983        .70284E-05   -1.5256    
  12  Prefactor     .10000E-03    26.299        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.3708        1.9395        .85802E-05   -1.5129    
  14  Prefactor     .10000E-03    27.204        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .46944        1.5867        .59655E-05   -1.5571    
  16  Prefactor     .10000E-03    102.43        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.518        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.3620        .39214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    13.476        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    36.762        .11221       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .49520        .37119        .70002E-04   -1.5567    
  22  norm          .10000E-03    3.7289        .25913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.2102        .47208E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.3666        18.418        .59121E-05   -1.5165    
  25  Normalizat    1.1911        .26794        .10425E-04   -.86878    
  26  Prefactor     1.0393        .26040        .11175E-04   -.91430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.30741e-10
Minuit parameter uncertainties:
  1  0.000119263
  2  3.33836e-06
  3  0.000403677
  4  24.1975
  5  0.000134727
  6  2.86999
  7  61.4883
  8  63.9454
  9  4.20276e-05
  10  5.69623
  11  6.99946
  12  0.000108825
  13  1.93956
  14  0.000139053
  15  1.58685
  16  0.000581667
  17  0.000103906
  18  0.000191155
  19  5.54064e-05
  20  5.39952e-05
  21  0.371194
  22  2.55617e-06
  23  1.58692e-05
  24  18.4327
  25  0.26825
  26  0.260721
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  8.371e+00  1.940e+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:  1.039e+00  2.607e-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.191e+00  2.682e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 75.58
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 2.99e-07 +/- 6.92e-08
Energy Flux (Fixed Index): 1.41e-04 +/- 3.26e-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) = 4745.5249481
delta logL = 0.000344712343576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4745.52492807
delta logL = 0.000364738866665

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.3706       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0935       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1897       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0401       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=   4745.525     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      191 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.3624        2.1325        .34641E-02    .33074E-04
   2  alpha         2.0935        .23315        .12544        .22047E-04
   3  Normalizat    1.1898        .21553        .58956E-01    .73688E-05
   4  Prefactor     1.0401        .21510        .63143E-01    .54598E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.36238
  alpha      = 2.09354
  Normalizat = 1.18982
  Prefactor  = 1.04012
 **********
 **   18 **HESSE 
 **********

 FCN=   4745.525     FROM HESSE     STATUS=OK            31 CALLS      222 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.3624        1.9094        .42843E-04   -1.5130    
   2  alpha         2.0935        .21209        .54593E-03   -.16331    
   3  Normalizat    1.1898        .25627        .26074E-03   -.86918    
   4  Prefactor     1.0401        .25485        .27927E-03   -.91404    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26683e-12
Minuit parameter uncertainties:
  1  1.90938
  2  0.212351
  3  0.256545
  4  0.255145
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/537435': 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) = 4745.5249188
delta logL = 0.000374015748093

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  8.362e+00  1.909e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  2.094e+00  2.124e-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.040e+00  2.551e-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.190e+00  2.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 75.70
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 2.09 +/- 0.21
Photon Flux (Free Index): 3.00e-07 +/- 8.08e-08
Energy Flux (Free Index): 1.40e-04 +/- 4.14e-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/537435/cmap_HighResolution_653270401_653529601_4FGL_J0348.5-2749_daily_bin1597.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.99e-07', energy_flux2='1.40e-04', photon_flux_error='6.92e-08', dlogl='3.74e-04', energy_flux='1.41e-04', photon_flux2='3.00e-07', job_status='DONE', time_completed='2021-09-17 00:36:38.317323', photon_index_error2='0.21', photon_index2='2.09', ts='75.58', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='4.14e-05', EG='1.19', time_epoch_completed='1631864198.32', return_code='0', job_id='537435', GAL2='1.04', EG2='1.19', return_code2='0', energy_flux_error='3.26e-05', photon_flux_error2='8.08e-08', ts2='75.70', photon_index='2.09' WHERE bin_id='1597' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 00:36:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 537435: <4FGL_J0348.5-2749_daily_bin1597> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin1597> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 17 00:25:18 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 00:25:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 00:25:19 2021
Terminated at Fri Sep 17 00:36:39 2021
Results reported at Fri Sep 17 00:36:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1597 57.1417 -27.8303 653270401 653529601 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 :                                   643.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            681 sec.

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

