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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1501
RA = 57.1417, Dec = -27.8303
tmin = 628387201, tmax = 628646401
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='986950', job_status='RUN', time_executed='2021-08-19 13:32:50.346286', time_epoch_executed='1629405170.35' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1501'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/986950

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/986950/ft1_4FGL_J0348.5-2749_daily_bin1501.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/986950/ft2_4FGL_J0348.5-2749_daily_bin1501.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/986950/ft1_4FGL_J0348.5-2749_daily_bin1501.fits outfile=/scratch/kocevski/986950/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1501.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=628387201.0 tmax=628646401.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 8.42
user 3.34
sys 5.02

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/986950/ft1_filtered_4FGL_J0348.5-2749_daily_bin1501.fits" evtable="EVENTS" scfile=/scratch/kocevski/986950/ft2_4FGL_J0348.5-2749_daily_bin1501.fits sctable="SC_DATA" outfile=/scratch/kocevski/986950/ltcube_628387201_628646401_4FGL_J0348.5-2749_daily_bin1501.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/986950/ft2_4FGL_J0348.5-2749_daily_bin1501.fits
.....................!
real 18.09
user 12.25
sys 5.75

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/986950/ft1_filtered_4FGL_J0348.5-2749_daily_bin1501.fits evtable="EVENTS" scfile=/scratch/kocevski/986950/ft2_4FGL_J0348.5-2749_daily_bin1501.fits sctable="SC_DATA" expcube=/scratch/kocevski/986950/ltcube_628387201_628646401_4FGL_J0348.5-2749_daily_bin1501.fits outfile=/scratch/kocevski/986950/expmap_628387201_628646401_4FGL_J0348.5-2749_daily_bin1501.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/986950/ltcube_628387201_628646401_4FGL_J0348.5-2749_daily_bin1501.fits
.....................!
real 196.21
user 185.30
sys 10.25

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/986950/ft1_filtered_4FGL_J0348.5-2749_daily_bin1501.fits scfile=/scratch/kocevski/986950/ft2_4FGL_J0348.5-2749_daily_bin1501.fits outfile=/scratch/kocevski/986950/cmap_628387201_628646401_4FGL_J0348.5-2749_daily_bin1501.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 5.37
user 0.39
sys 4.93

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/986950/ft1_filtered_4FGL_J0348.5-2749_daily_bin1501.fits scfile=/scratch/kocevski/986950/ft2_4FGL_J0348.5-2749_daily_bin1501.fits outfile=/scratch/kocevski/986950/cmap_HighResolution_628387201_628646401_4FGL_J0348.5-2749_daily_bin1501.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 5.34
user 0.39
sys 4.90

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/986950/ft1_filtered_4FGL_J0348.5-2749_daily_bin1501.fits evtable="EVENTS" scfile=/scratch/kocevski/986950/ft2_4FGL_J0348.5-2749_daily_bin1501.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/986950/Model_4FGL_J0348.5-2749_daily_bin1501.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/986950/ft1_filtered_4FGL_J0348.5-2749_daily_bin1501.fits.....................!
real 131.31
user 123.48
sys 7.58

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.082       1.0000         .10000E-03   10000.    
     2 'norm      '    6.8270       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.9666       1.0000         .10000E-03   10000.    
     7 'Prefactor '    93.803       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9642       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6450       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.4155       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.0034       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.748       1.0000         .10000E-03   10000.    
    13 'norm      '    7.8570       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7130       1.0000         .10000E-03   10000.    
    15 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.194       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2418       1.0000         .10000E-03   10000.    
    19 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.188       1.0000         .10000E-03   10000.    
    21 'norm      '    .53668       1.0000         .10000E-03   10000.    
    22 'norm      '    13.847       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .42300       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2894       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=   5927.259     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     3120 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.083        15.294        .21809E-02   -.12404E-03
   2  norm          6.8270        4.1748        .38389E-02    .29639E-02
   3  Prefactor     .10028E-03    62.414        .90712E-02** at limit **
   4  Prefactor     .10000E-03    13.357        .90712E-02** at limit **
   5  Prefactor     .10000E-03    37.108        .90712E-02** at limit **
   6  norm          2.9667        3.3595        .58938E-02    .38070E-03
   7  Prefactor     93.805        63.277        .10374E-02   -.23919E-03
   8  Prefactor     1.8277        109.01        .73983E-02    .13535E-03
   9  Prefactor     2.6450        1.9131        .62671E-02    .16599E-03
  10  Prefactor     5.4158        4.2663        .43169E-02   -.16386E-03
  11  Prefactor     9.0036        4.7701        .33394E-02    .83144E-03
  12  Prefactor     24.747        16.356        .20131E-02   -.23651E-04
  13  norm          7.8571        1.5153        .35763E-02    .13349E-03
  14  Prefactor     2.7138        28.996        .61819E-02    .14835E-03
  15  norm          .10000E-03    .70278        .23519E-01** at limit **
  16  Prefactor     .10026E-03    60.247        .90712E-02** at limit **
  17  Prefactor     16.193        23.821        .24882E-02   -.15400E-03
  18  Prefactor     3.2410        2.8213        .56240E-02    .27514E-03
  19  norm          .10000E-03    4.7045        .90712E-02** at limit **
  20  Prefactor     14.186        20.201        .26584E-02    .50390E-04
  21  norm          .53667        .25166        .56855E-02    .34675E-03
  22  norm          13.846        6.6385        .26910E-02   -.24533E-02
  23  Prefactor     .10000E-03    4.6308        .90712E-02** at limit **
  24  Prefactor     .10000E-03    5.8552        .90712E-02** at limit **
  25  Normalizat    .42283        .18489        .79349E-01    .10339E-03
  26  Prefactor     1.2897        .18940        .51178E-01    .73963E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.0827
  norm       = 6.82699
  Prefactor  = 0.000100283
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.96675
  Prefactor  = 93.8046
  Prefactor  = 1.82773
  Prefactor  = 2.64504
  Prefactor  = 5.41581
  Prefactor  = 9.00355
  Prefactor  = 24.7472
  norm       = 7.85706
  Prefactor  = 2.71378
  norm       = 0.0001
  Prefactor  = 0.000100257
  Prefactor  = 16.1925
  Prefactor  = 3.24096
  norm       = 0.0001
  Prefactor  = 14.1856
  norm       = 0.536671
  norm       = 13.8463
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.422826
  Prefactor  = 1.28966
 **********
 **   18 **HESSE 
 **********

 FCN=   5927.259     FROM HESSE     STATUS=OK           462 CALLS     3582 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.083        15.298        .87234E-04   -1.4789    
   2  norm          6.8270        4.1710        .59232E-03   -1.5185    
   3  Prefactor     .10028E-03    62.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    37.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.9667        3.3427        .14270E-03   -1.5363    
   7  Prefactor     93.805        63.276        .41496E-04   -1.3768    
   8  Prefactor     1.8277        110.35        .29593E-03   -1.5438    
   9  Prefactor     2.6450        1.8939        .86175E-04   -1.5383    
  10  Prefactor     5.4158        4.2589        .12722E-03   -1.5242    
  11  Prefactor     9.0036        4.7476        .10952E-03   -1.5108    
  12  Prefactor     24.747        16.329        .80523E-04   -1.4713    
  13  norm          7.8571        1.5164        .38711E-04   -1.5147    
  14  Prefactor     2.7138        28.837        .24728E-03   -1.5378    
  15  norm          .10000E-03    1.3862        .12312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10026E-03    60.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.193        23.745        .99527E-04   -1.4903    
  18  Prefactor     3.2410        2.8002        .11361E-03   -1.5348    
  19  norm          .10000E-03    4.7138        .16307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.186        20.175        .10634E-03   -1.4955    
  21  norm          .53667        .25051        .25190E-04   -1.5561    
  22  norm          13.846        6.6372        .10764E-03   -1.4964    
  23  Prefactor     .10000E-03    4.8189        .32300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.8638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .42283        .20368        .35144E-03   -1.1614    
  26  Prefactor     1.2897        .21257        .22624E-03   -.83615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1865e-08
Minuit parameter uncertainties:
  1  15.301
  2  4.17114
  3  0.00841116
  4  6.2356e-06
  5  0.000224898
  6  3.34291
  7  63.3216
  8  28.4573
  9  1.89396
  10  4.25915
  11  4.74782
  12  16.3321
  13  1.51643
  14  17.7032
  15  1.36359e-06
  16  0.00787203
  17  23.7587
  18  2.80029
  19  5.46235e-06
  20  20.1849
  21  0.25051
  22  6.6376
  23  2.9327e-06
  24  1.32102e-05
  25  0.20404
  26  0.212715
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  7.857e+00  1.516e+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.290e+00  2.127e-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:  4.228e-01  2.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 107.22
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 2.80e-07 +/- 5.41e-08
Energy Flux (Fixed Index): 1.32e-04 +/- 2.55e-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) = 5927.14210201
delta logL = 0.117076864914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5927.1328626
delta logL = 0.126316276596

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.9805       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9970       1.0000          .0000       5.0000    
     3 'Normalizat'    .44229       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2760       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=   5927.133     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      202 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.9805        1.6493        .35483E-02   -.38144E-02
   2  alpha         1.9971        .19080        .11996       -.38383E-04
   3  Normalizat    .44228        .17482        .77720E-01    .56669E-04
   4  Prefactor     1.2760        .18600        .51417E-01    .32266E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.9805
  alpha      = 1.99706
  Normalizat = 0.442284
  Prefactor  = 1.27597
 **********
 **   18 **HESSE 
 **********

 FCN=   5927.133     FROM HESSE     STATUS=OK            27 CALLS      229 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.9805        1.5237        .39581E-04   -1.5143    
   2  alpha         1.9971        .17881        .52216E-03   -.20256    
   3  Normalizat    .44228        .19638        .34420E-03   -1.1517    
   4  Prefactor     1.2760        .20927        .22730E-03   -.84024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22477e-10
Minuit parameter uncertainties:
  1  1.5237
  2  0.178973
  3  0.196687
  4  0.20941
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/986950': 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) = 5927.13286258
delta logL = 0.12631629071

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  7.980e+00  1.524e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  1.997e+00  1.790e-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.276e+00  2.094e-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:  4.423e-01  1.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 107.81
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 2.00 +/- 0.18
Photon Flux (Free Index): 2.64e-07 +/- 6.01e-08
Energy Flux (Free Index): 1.45e-04 +/- 3.98e-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/986950/cmap_HighResolution_628387201_628646401_4FGL_J0348.5-2749_daily_bin1501.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.80e-07', energy_flux2='1.45e-04', photon_flux_error='5.41e-08', dlogl='1.26e-01', energy_flux='1.32e-04', photon_flux2='2.64e-07', job_status='DONE', time_completed='2021-08-19 13:45:34.021935', photon_index_error2='0.18', photon_index2='2.00', ts='107.22', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', energy_flux_error2='3.98e-05', EG='0.42', time_epoch_completed='1629405934.02', return_code='0', job_id='986950', GAL2='1.28', EG2='0.44', return_code2='0', energy_flux_error='2.55e-05', photon_flux_error2='6.01e-08', ts2='107.81', photon_index='2.09' WHERE bin_id='1501' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:45:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 986950: <4FGL_J0348.5-2749_daily_bin1501> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin1501> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 19 13:30:54 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:30:55 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:30:55 2021
Terminated at Thu Aug 19 13:45:35 2021
Results reported at Thu Aug 19 13:45:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1501 57.1417 -27.8303 628387201 628646401 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 :                                   825.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

