/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 89 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 = 7417
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1021
RA = 57.1417, Dec = -27.8303
tmin = 503971201, tmax = 504230401
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='983938', job_status='RUN', time_executed='2021-08-19 13:25:02.237911', time_epoch_executed='1629404702.24' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1021'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/983938

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/983938/ft1_4FGL_J0348.5-2749_daily_bin1021.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/983938/ft2_4FGL_J0348.5-2749_daily_bin1021.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/983938/ft1_4FGL_J0348.5-2749_daily_bin1021.fits outfile=/scratch/kocevski/983938/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1021.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=503971201.0 tmax=504230401.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 14.10
user 3.74
sys 10.08

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/983938/ft1_filtered_4FGL_J0348.5-2749_daily_bin1021.fits" evtable="EVENTS" scfile=/scratch/kocevski/983938/ft2_4FGL_J0348.5-2749_daily_bin1021.fits sctable="SC_DATA" outfile=/scratch/kocevski/983938/ltcube_503971201_504230401_4FGL_J0348.5-2749_daily_bin1021.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/983938/ft2_4FGL_J0348.5-2749_daily_bin1021.fits
.....................!
real 21.84
user 12.27
sys 9.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/983938/ft1_filtered_4FGL_J0348.5-2749_daily_bin1021.fits evtable="EVENTS" scfile=/scratch/kocevski/983938/ft2_4FGL_J0348.5-2749_daily_bin1021.fits sctable="SC_DATA" expcube=/scratch/kocevski/983938/ltcube_503971201_504230401_4FGL_J0348.5-2749_daily_bin1021.fits outfile=/scratch/kocevski/983938/expmap_503971201_504230401_4FGL_J0348.5-2749_daily_bin1021.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/983938/ltcube_503971201_504230401_4FGL_J0348.5-2749_daily_bin1021.fits
.....................!
real 202.58
user 186.56
sys 15.44

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/983938/ft1_filtered_4FGL_J0348.5-2749_daily_bin1021.fits scfile=/scratch/kocevski/983938/ft2_4FGL_J0348.5-2749_daily_bin1021.fits outfile=/scratch/kocevski/983938/cmap_503971201_504230401_4FGL_J0348.5-2749_daily_bin1021.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 9.49
user 0.35
sys 8.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/983938/ft1_filtered_4FGL_J0348.5-2749_daily_bin1021.fits scfile=/scratch/kocevski/983938/ft2_4FGL_J0348.5-2749_daily_bin1021.fits outfile=/scratch/kocevski/983938/cmap_HighResolution_503971201_504230401_4FGL_J0348.5-2749_daily_bin1021.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 9.99
user 0.38
sys 9.36

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/983938/ft1_filtered_4FGL_J0348.5-2749_daily_bin1021.fits evtable="EVENTS" scfile=/scratch/kocevski/983938/ft2_4FGL_J0348.5-2749_daily_bin1021.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/983938/Model_4FGL_J0348.5-2749_daily_bin1021.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/983938/ft1_filtered_4FGL_J0348.5-2749_daily_bin1021.fits....................!
real 105.60
user 91.55
sys 13.61

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.6096       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    57.221       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.579       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0083       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10368E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    59.540       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .56259       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .52575       1.0000         .10000E-03   10000.    
    22 'norm      '    15.181       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.1215       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.5190       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .70530       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=   3867.325     FROM MIGRAD    STATUS=CONVERGED    631 CALLS     3140 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8612       -.81380E-08** at limit **
   2  norm          2.6096        2.5465       -.36250E-07   -.15740E-04
   3  Prefactor     .10000E-03    115.09       -.54052E-06** at limit **
   4  Prefactor     .10000E-03    14.896        .47855E-07** at limit **
   5  Prefactor     57.210        63.892        .27527E-07    .62539E-05
   6  norm          .10000E-03    1.2864        .10450E-07** at limit **
   7  Prefactor     36.548        63.415        .14472E-05    .44073E-04
   8  Prefactor     .10000E-03    17.671        .82623E-07** at limit **
   9  Prefactor     .10000E-03    1.6312       -.40189E-08** at limit **
  10  Prefactor     1.0017        6.4078        .13030E-05   -.61771E-04
  11  Prefactor     .10000E-03    4.8805       -.91257E-07** at limit **
  12  Prefactor     .10000E-03    8.4749        .47719E-07** at limit **
  13  norm          .10000E-03    1.1797       -.78293E-06** at limit **
  14  Prefactor     .10000E-03    19.631        .90633E-07** at limit **
  15  norm          .10000E-03    .70008       -.63862E-07** at limit **
  16  Prefactor     59.580        179.30        .51604E-06    .14702E-04
  17  Prefactor     .10000E-03    65.169        .12617E-05** at limit **
  18  Prefactor     .56256        3.3123        .15860E-05    .96305E-04
  19  norm          .10000E-03    10.405        .49151E-07** at limit **
  20  Prefactor     .10000E-03    13.658       -.81420E-07** at limit **
  21  norm          .52578        .41025        .18126E-06    .57088E-03
  22  norm          15.181        10.455       -.23884E-06   -.15021E-04
  23  Prefactor     4.1219        6.6559        .24872E-06   -.16041E-04
  24  Prefactor     .10000E-03    40.722       -.40900E-06** at limit **
  25  Normalizat    1.5192        .24590        .26945E-07    .69525E-04
  26  Prefactor     .70517        .22546       -.34212E-06    .37734E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.60957
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 57.2096
  norm       = 0.0001
  Prefactor  = 36.5476
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.00172
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 59.5799
  Prefactor  = 0.000100001
  Prefactor  = 0.562564
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.525784
  norm       = 15.1808
  Prefactor  = 4.12193
  Prefactor  = 0.0001
  Normalizat = 1.51919
  Prefactor  = 0.705171
 **********
 **   18 **HESSE 
 **********

 FCN=   3867.325     FROM HESSE     STATUS=OK           448 CALLS     3588 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8620        .13392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.6096        2.5568        .95671E-04   -1.5385    
   3  Prefactor     .10000E-03    115.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     57.210        64.044        .53033E-04   -1.4194    
   6  norm          .10000E-03    1.2886        .68883E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     36.548        63.418        .66265E-04   -1.4498    
   8  Prefactor     .10000E-03    17.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.6697        .15497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.0017        9.6176        .26456E-02   -1.5508    
  11  Prefactor     .10000E-03    4.9344        .13334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.4818        .17681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.9155        .11679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .71103        .50829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     59.580        179.81        .51996E-04   -1.4163    
  17  Prefactor     .10000E-03    65.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .56256        3.3085        .21588E-03   -1.5558    
  19  norm          .10000E-03    10.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .52578        .41249        .16701E-03   -1.5563    
  22  norm          15.181        10.459        .10280E-03   -1.4929    
  23  Prefactor     4.1219        6.6181        .19227E-03   -1.5302    
  24  Prefactor     .10000E-03    40.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.5192        .28851        .22805E-03   -.77240    
  26  Prefactor     .70517        .26383        .31016E-03   -1.0332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32426e-08
Minuit parameter uncertainties:
  1  1.08902e-06
  2  2.55692
  3  0.000586169
  4  3.36669e-06
  5  64.1209
  6  1.02205e-07
  7  63.5356
  8  2.78191e-05
  9  3.38981e-06
  10  6.20879
  11  3.21822e-05
  12  3.19215e-06
  13  4.03031e-05
  14  5.57698e-06
  15  4.43189e-06
  16  181.49
  17  0.000427615
  18  2.72852
  19  8.16034e-06
  20  3.21892e-05
  21  0.412492
  22  10.4605
  23  6.61927
  24  0.000183082
  25  0.288827
  26  0.264296
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.000e-04  4.030e-05  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:  7.052e-01  2.643e-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.519e+00  2.888e-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: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.78e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/983938/likelihoodResults_503971201_504230401_4FGL_J0348.5-2749_daily_bin1021.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3867.32785965
delta logL = -0.00249813065739

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3867.27714009
delta logL = 0.0482214295948

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15617       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2479       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4943       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71798       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=   3867.277     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      333 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15615        3.7198        .66742E-03    .64404E-03
   2  alpha         3.2481        4.0555        .38430E-01    .11250E-04
   3  Normalizat    1.4943        .28236        .22959E-03   -.12949E-03
   4  Prefactor     .71797        .26245        .30761E-03   -.66930E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.156155
  alpha      = 3.24806
  Normalizat = 1.49434
  Prefactor  = 0.717968
 **********
 **   18 **HESSE 
 **********

 FCN=   3867.277     FROM HESSE     STATUS=OK            27 CALLS      360 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15615        .73454        .26697E-04   -1.5629    
   2  alpha         3.2481        1.9854        .15372E-02    .30388    
   3  Normalizat    1.4943        .27851        .45919E-04   -.77938    
   4  Prefactor     .71797        .26259        .12305E-04   -1.0283    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.67659e-11
Minuit parameter uncertainties:
  1  0.677151
  2  2.34554
  3  0.278794
  4  0.263044
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/983938': 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) = 3867.27714008
delta logL = 0.048221436733

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  7.180e-01  2.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:  1.494e+00  2.788e-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/983938/cmap_HighResolution_503971201_504230401_4FGL_J0348.5-2749_daily_bin1021.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-05', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-08-19 13:37:21.459232', job_id='983938', GAL2='0.72', fit_tolerance='1e-08', EG2='1.49', EG='1.52', time_epoch_completed='1629405441.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.82e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1021' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:37:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 983938: <4FGL_J0348.5-2749_daily_bin1021> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin1021> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Aug 19 13:20:50 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:20:52 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:52 2021
Terminated at Thu Aug 19 13:37:23 2021
Results reported at Thu Aug 19 13:37:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1021 57.1417 -27.8303 503971201 504230401 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 :                                   877.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             226.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            993 sec.

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

