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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin893
RA = 57.1417, Dec = -27.8303
tmin = 470793601, tmax = 471052801
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='983720', job_status='RUN', time_executed='2021-08-19 13:21:38.862906', time_epoch_executed='1629404498.86' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='893'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/983720

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/983720/ft1_4FGL_J0348.5-2749_daily_bin893.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/983720/ft2_4FGL_J0348.5-2749_daily_bin893.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/983720/ft1_4FGL_J0348.5-2749_daily_bin893.fits outfile=/scratch/kocevski/983720/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin893.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=470793601.0 tmax=471052801.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 6.79
user 3.23
sys 3.53

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/983720/ft1_filtered_4FGL_J0348.5-2749_daily_bin893.fits" evtable="EVENTS" scfile=/scratch/kocevski/983720/ft2_4FGL_J0348.5-2749_daily_bin893.fits sctable="SC_DATA" outfile=/scratch/kocevski/983720/ltcube_470793601_471052801_4FGL_J0348.5-2749_daily_bin893.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/983720/ft2_4FGL_J0348.5-2749_daily_bin893.fits
.....................!
real 15.81
user 11.70
sys 4.03

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/983720/ft1_filtered_4FGL_J0348.5-2749_daily_bin893.fits evtable="EVENTS" scfile=/scratch/kocevski/983720/ft2_4FGL_J0348.5-2749_daily_bin893.fits sctable="SC_DATA" expcube=/scratch/kocevski/983720/ltcube_470793601_471052801_4FGL_J0348.5-2749_daily_bin893.fits outfile=/scratch/kocevski/983720/expmap_470793601_471052801_4FGL_J0348.5-2749_daily_bin893.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/983720/ltcube_470793601_471052801_4FGL_J0348.5-2749_daily_bin893.fits
.....................!
real 196.92
user 187.18
sys 9.43

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/983720/ft1_filtered_4FGL_J0348.5-2749_daily_bin893.fits scfile=/scratch/kocevski/983720/ft2_4FGL_J0348.5-2749_daily_bin893.fits outfile=/scratch/kocevski/983720/cmap_470793601_471052801_4FGL_J0348.5-2749_daily_bin893.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 3.77
user 0.35
sys 3.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/983720/ft1_filtered_4FGL_J0348.5-2749_daily_bin893.fits scfile=/scratch/kocevski/983720/ft2_4FGL_J0348.5-2749_daily_bin893.fits outfile=/scratch/kocevski/983720/cmap_HighResolution_470793601_471052801_4FGL_J0348.5-2749_daily_bin893.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 3.76
user 0.37
sys 3.38

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/983720/ft1_filtered_4FGL_J0348.5-2749_daily_bin893.fits evtable="EVENTS" scfile=/scratch/kocevski/983720/ft2_4FGL_J0348.5-2749_daily_bin893.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/983720/Model_4FGL_J0348.5-2749_daily_bin893.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/983720/ft1_filtered_4FGL_J0348.5-2749_daily_bin893.fits.....................!
real 113.81
user 108.11
sys 5.49

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .11504E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.1067       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7164       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7511       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3060       1.0000         .10000E-03   10000.    
    15 'norm      '    1.9661       1.0000         .10000E-03   10000.    
    16 'Prefactor '    140.96       1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.646       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.0258       1.0000         .10000E-03   10000.    
    19 'norm      '    9.3030       1.0000         .10000E-03   10000.    
    20 'Prefactor '    38.824       1.0000         .10000E-03   10000.    
    21 'norm      '    .48114       1.0000         .10000E-03   10000.    
    22 'norm      '    19.405       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .84645E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    42.591       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0698       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .95518       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=   4813.764     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     3119 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9217       -.72085E-07** at limit **
   2  norm          .10000E-03    2.5260       -.32409E-06** at limit **
   3  Prefactor     .10000E-03    92.150        .12260E-03** at limit **
   4  Prefactor     .10000E-03    4.9715        .70193E-07** at limit **
   5  Prefactor     .10000E-03    12.219        .22536E-05** at limit **
   6  norm          1.1058        3.9864       -.18640E-05   -.94189E-03
   7  Prefactor     .10000E-03    13.551       -.28618E-05** at limit **
   8  Prefactor     .10001E-03    64.712       -.56712E-04** at limit **
   9  Prefactor     2.7161        2.4169       -.63459E-07    .18078E-03
  10  Prefactor     1.7506        2.5319       -.38749E-07   -.99084E-04
  11  Prefactor     .10000E-03    1.6851        .16336E-07** at limit **
  12  Prefactor     .10000E-03    20.851        .28660E-05** at limit **
  13  norm          .10000E-03    .25250        .25837E-07** at limit **
  14  Prefactor     4.1319        73.854       -.18814E-03   -.65151E-04
  15  norm          1.9657        1.8546       -.30994E-06    .14035E-03
  16  Prefactor     140.93        132.42       -.27949E-04   -.21090E-05
  17  Prefactor     26.678        38.016        .72766E-04    .44484E-03
  18  Prefactor     6.0264        3.8520       -.89094E-06    .66529E-03
  19  norm          9.2990        16.185       -.83546E-06   -.11207E-04
  20  Prefactor     38.817        31.862       -.32962E-05    .60218E-04
  21  norm          .48114        .37486        .62188E-07    .89893E-04
  22  norm          19.404        13.032       -.16946E-06   -.22498E-04
  23  Prefactor     .10000E-03    3.4147       -.17200E-05** at limit **
  24  Prefactor     42.588        30.456       -.12685E-05   -.66548E-05
  25  Normalizat    1.0698        .20463       -.68397E-06    .58651E-03
  26  Prefactor     .95527        .20706        .54317E-05    .43090E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.1058
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 2.7161
  Prefactor  = 1.75064
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.13188
  norm       = 1.96566
  Prefactor  = 140.926
  Prefactor  = 26.6775
  Prefactor  = 6.02645
  norm       = 9.29905
  Prefactor  = 38.8168
  norm       = 0.48114
  norm       = 19.4045
  Prefactor  = 0.0001
  Prefactor  = 42.5879
  Normalizat = 1.06976
  Prefactor  = 0.955274
 **********
 **   18 **HESSE 
 **********

 FCN=   4813.764     FROM HESSE     STATUS=OK           456 CALLS     3575 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.9302        .16489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.4336        .21414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    91.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.9743        .15109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.1058        3.9959        .24984E-03   -1.5498    
   7  Prefactor     .10000E-03    13.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    64.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.7161        2.4024        .95870E-04   -1.5378    
  10  Prefactor     1.7506        2.5102        .12833E-03   -1.5443    
  11  Prefactor     .10000E-03    1.6964        .87879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .25803        .34015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.1319        74.677        .19414E-03   -1.5301    
  15  norm          1.9657        1.8330        .84302E-04   -1.5428    
  16  Prefactor     140.93        132.80        .16965E-03   -1.3328    
  17  Prefactor     26.678        38.070        .77606E-04   -1.4675    
  18  Prefactor     6.0264        3.8043        .10151E-03   -1.5217    
  19  norm          9.2990        16.164        .13140E-03   -1.5098    
  20  Prefactor     38.817        31.835        .64327E-04   -1.4461    
  21  norm          .48114        .36774        .34132E-04   -1.5569    
  22  norm          19.404        12.992        .90922E-04   -1.4827    
  23  Prefactor     .10000E-03    17.545        .24400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     42.588        30.418        .61427E-04   -1.4402    
  25  Normalizat    1.0698        .23884        .24906E-03   -.90729    
  26  Prefactor     .95527        .24151        .26844E-03   -.94236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65161e-09
Minuit parameter uncertainties:
  1  7.48761e-06
  2  9.19709e-05
  3  3.48866e-05
  4  5.29016e-06
  5  6.03533e-06
  6  3.99687
  7  3.53932e-06
  8  0.00128676
  9  2.40253
  10  2.51035
  11  9.31691e-07
  12  8.3355e-05
  13  1.34412e-06
  14  35.1822
  15  1.83303
  16  133.087
  17  38.1048
  18  3.80444
  19  16.1718
  20  31.8493
  21  0.367738
  22  12.9939
  23  2.77187e-05
  24  30.4291
  25  0.239081
  26  0.241779
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.000e-04  1.344e-06  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.553e-01  2.418e-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.070e+00  2.391e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/983720/likelihoodResults_470793601_471052801_4FGL_J0348.5-2749_daily_bin893.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): 0
logL (Free Index) = 4813.7636902
delta logL = -0.000105875732515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4813.76358342
delta logL = 9.1200308816e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1781       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0697       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95544       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=   4813.764     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      257 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .26118        .68248E-04** at limit **
   2  alpha         2.2439        2.7750        .16636       -.60546E-07
   3  Normalizat    1.0698        .22879        .24906E-03   -.74298E-03
   4  Prefactor     .95527        .23566        .26844E-03   -.68901E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.2439
  Normalizat = 1.06975
  Prefactor  = 0.955273
 **********
 **   18 **HESSE 
 **********

 FCN=   4813.764     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .26077        .13650E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2439        3.2932        .66546E-02   -.10262    
   3  Normalizat    1.0698        .22897        .49813E-04   -.90729    
   4  Prefactor     .95527        .23585        .53688E-04   -.94236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.05367e-10
Minuit parameter uncertainties:
  1  1.37275e-06
  2  79.9321
  3  0.229186
  4  0.236103
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/983720': 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) = 4813.7635823
delta logL = 2.03042418434e-06

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.000e-04  1.373e-06  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  2.244e+00  7.993e+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:  9.553e-01  2.361e-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.070e+00  2.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/983720/cmap_HighResolution_470793601_471052801_4FGL_J0348.5-2749_daily_bin893.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.20e-05', job_status='DONE', photon_flux_upper_limit='4.68e-08', time_completed='2021-08-19 13:33:35.650956', job_id='983720', GAL2='0.96', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1629405215.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.03e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='893' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:33:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 983720: <4FGL_J0348.5-2749_daily_bin893> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin893> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Aug 19 13:20:32 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:20:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 13:20:33 2021
Terminated at Thu Aug 19 13:33:36 2021
Results reported at Thu Aug 19 13:33:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin893 57.1417 -27.8303 470793601 471052801 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 :                                   766.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             298.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            784 sec.

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

