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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1110
RA = 57.1417, Dec = -27.8303
tmin = 527040001, tmax = 527299201
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='985194', job_status='RUN', time_executed='2021-08-19 13:28:57.764566', time_epoch_executed='1629404937.76' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/985194

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/985194/ft1_4FGL_J0348.5-2749_daily_bin1110.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/985194/ft2_4FGL_J0348.5-2749_daily_bin1110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/985194/ft1_4FGL_J0348.5-2749_daily_bin1110.fits outfile=/scratch/kocevski/985194/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1110.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=527040001.0 tmax=527299201.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 9.73
user 5.66
sys 3.97

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/985194/ft1_filtered_4FGL_J0348.5-2749_daily_bin1110.fits" evtable="EVENTS" scfile=/scratch/kocevski/985194/ft2_4FGL_J0348.5-2749_daily_bin1110.fits sctable="SC_DATA" outfile=/scratch/kocevski/985194/ltcube_527040001_527299201_4FGL_J0348.5-2749_daily_bin1110.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/985194/ft2_4FGL_J0348.5-2749_daily_bin1110.fits
.....................!
real 17.95
user 13.35
sys 4.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/985194/ft1_filtered_4FGL_J0348.5-2749_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/985194/ft2_4FGL_J0348.5-2749_daily_bin1110.fits sctable="SC_DATA" expcube=/scratch/kocevski/985194/ltcube_527040001_527299201_4FGL_J0348.5-2749_daily_bin1110.fits outfile=/scratch/kocevski/985194/expmap_527040001_527299201_4FGL_J0348.5-2749_daily_bin1110.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/985194/ltcube_527040001_527299201_4FGL_J0348.5-2749_daily_bin1110.fits
.....................!
real 196.77
user 186.17
sys 10.05

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/985194/ft1_filtered_4FGL_J0348.5-2749_daily_bin1110.fits scfile=/scratch/kocevski/985194/ft2_4FGL_J0348.5-2749_daily_bin1110.fits outfile=/scratch/kocevski/985194/cmap_527040001_527299201_4FGL_J0348.5-2749_daily_bin1110.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 4.17
user 0.38
sys 3.77

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/985194/ft1_filtered_4FGL_J0348.5-2749_daily_bin1110.fits scfile=/scratch/kocevski/985194/ft2_4FGL_J0348.5-2749_daily_bin1110.fits outfile=/scratch/kocevski/985194/cmap_HighResolution_527040001_527299201_4FGL_J0348.5-2749_daily_bin1110.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 4.18
user 0.40
sys 3.77

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/985194/ft1_filtered_4FGL_J0348.5-2749_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/985194/ft2_4FGL_J0348.5-2749_daily_bin1110.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/985194/Model_4FGL_J0348.5-2749_daily_bin1110.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/985194/ft1_filtered_4FGL_J0348.5-2749_daily_bin1110.fits......................!
real 74.32
user 68.03
sys 6.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.703       1.0000         .10000E-03   10000.    
     6 'norm      '    .40571E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.2455       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10611E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2471       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2569       1.0000         .10000E-03   10000.    
    13 'norm      '    2.5843       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.0931       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.563       1.0000         .10000E-03   10000.    
    21 'norm      '    1.1038       1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.0189       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2211       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .54120       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=   2894.917     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     3081 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.1007        .15262E-07** at limit **
   2  norm          .10000E-03    2.0568        .42365E-07** at limit **
   3  Prefactor     .10000E-03    124.34        .20852E-06** at limit **
   4  Prefactor     .10000E-03    61.231        .22402E-06** at limit **
   5  Prefactor     13.557        40.843       -.11883E-06   -.36359E-04
   6  norm          .10000E-03    4.7764       -.49878E-06** at limit **
   7  Prefactor     7.2808        128.15       -.57784E-06    .46863E-05
   8  Prefactor     .10000E-03    121.89        .69844E-06** at limit **
   9  Prefactor     3.2475        4.6076        .13779E-06   -.47214E-04
  10  Prefactor     .10000E-03    4.0071        .12221E-06** at limit **
  11  Prefactor     .10000E-03    4.8254       -.94407E-08** at limit **
  12  Prefactor     4.2486        15.917        .32429E-06    .14708E-04
  13  norm          2.5845        1.3993        .40752E-07   -.42994E-04
  14  Prefactor     .10000E-03    23.752        .15674E-06** at limit **
  15  norm          1.0931        2.3505        .13821E-06   -.31799E-04
  16  Prefactor     .10000E-03    39.166       -.40670E-07** at limit **
  17  Prefactor     .10000E-03    14.605       -.35299E-07** at limit **
  18  Prefactor     .10000E-03    4.0906        .39087E-07** at limit **
  19  norm          .10000E-03    14.084        .28368E-06** at limit **
  20  Prefactor     22.572        40.108        .29957E-06   -.88452E-05
  21  norm          1.1038        .50435        .15032E-08   -.48668E-05
  22  norm          .10000E-03    7.3458        .67949E-07** at limit **
  23  Prefactor     5.0191        5.7364        .19902E-05   -.40411E-04
  24  Prefactor     .10000E-03    21.584       -.51826E-07** at limit **
  25  Normalizat    1.2211        .24614       -.11377E-05    .33309E-04
  26  Prefactor     .54116        .22474        .33902E-06   -.61493E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5572
  norm       = 0.000100001
  Prefactor  = 7.28076
  Prefactor  = 0.0001
  Prefactor  = 3.24745
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.24857
  norm       = 2.58455
  Prefactor  = 0.0001
  norm       = 1.09305
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.572
  norm       = 1.1038
  norm       = 0.0001
  Prefactor  = 5.01906
  Prefactor  = 0.0001
  Normalizat = 1.22108
  Prefactor  = 0.541156
 **********
 **   18 **HESSE 
 **********

 FCN=   2894.917     FROM HESSE     STATUS=OK           452 CALLS     3533 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.1039        .15854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.0608        .75363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    124.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    61.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.557        40.870        .10820E-03   -1.4971    
   6  norm          .10000E-03    9.2661        .22382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.2808        127.22        .14901E-03   -1.5168    
   8  Prefactor     .10000E-03    122.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.2475        4.4666        .11711E-03   -1.5348    
  10  Prefactor     .10000E-03    4.0379        .10507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.8528        .11512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.2486        15.847        .19528E-03   -1.5296    
  13  norm          2.5845        1.3980        .43947E-04   -1.5386    
  14  Prefactor     .10000E-03    23.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.0931        2.2164        .10256E-03   -1.5499    
  16  Prefactor     .10000E-03    39.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.2102        .21182E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    14.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     22.572        39.998        .84325E-04   -1.4757    
  21  norm          1.1038        .50423        .24420E-04   -1.5498    
  22  norm          .10000E-03    7.4246        .14237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.0191        5.7554        .66332E-03   -1.5260    
  24  Prefactor     .10000E-03    21.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2211        .27522        .21523E-03   -.85954    
  26  Prefactor     .54116        .25003        .29648E-03   -1.1012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74643e-10
Minuit parameter uncertainties:
  1  1.47278e-06
  2  8.30737e-07
  3  0.000196081
  4  1.89992e-05
  5  40.9542
  6  0.000212407
  7  61.0197
  8  0.000204743
  9  4.46706
  10  9.98916e-07
  11  2.76419e-06
  12  15.8624
  13  1.39801
  14  3.92899e-05
  15  2.21652
  16  1.63186e-05
  17  2.409e-05
  18  1.92552e-05
  19  1.8571e-05
  20  40.0453
  21  0.504234
  22  4.39367e-06
  23  5.75602
  24  1.95365e-05
  25  0.275551
  26  0.250538
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  2.585e+00  1.398e+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:  5.412e-01  2.505e-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.221e+00  2.756e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.01
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 9.22e-08 +/- 4.99e-08
Energy Flux (Fixed Index): 4.35e-05 +/- 2.35e-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) = 2894.81421927
delta logL = 0.102438308596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2894.80322641
delta logL = 0.113431165195

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3891       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8120       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2498       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52444       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=   2894.803     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      198 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3919        1.3259        .66245E-02    .27604E-05
   2  alpha         1.8113        .45970        .24697       -.17590E-04
   3  Normalizat    1.2498        .23590        .33770E-01   -.48738E-06
   4  Prefactor     .52453        .22223        .67943E-01    .13997E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.39186
  alpha      = 1.81132
  Normalizat = 1.24976
  Prefactor  = 0.524525
 **********
 **   18 **HESSE 
 **********

 FCN=   2894.803     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .47E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3919        1.4785        .44480E-04   -1.5399    
   2  alpha         1.8113        .55958        .99522E-02   -.27908    
   3  Normalizat    1.2498        .26446        .21320E-03   -.85079    
   4  Prefactor     .52453        .24671        .30074E-03   -1.1086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66723e-13
Minuit parameter uncertainties:
  1  1.4785
  2  0.564768
  3  0.264749
  4  0.247217
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/985194': 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) = 2894.80322168
delta logL = 0.113435901413

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  2.392e+00  1.478e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  1.811e+00  5.648e-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:  5.245e-01  2.472e-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.250e+00  2.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.20
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 1.81 +/- 0.56
Photon Flux (Free Index): 6.92e-08 +/- 5.79e-08
Energy Flux (Free Index): 5.54e-05 +/- 4.62e-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/985194/cmap_HighResolution_527040001_527299201_4FGL_J0348.5-2749_daily_bin1110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.22e-08', energy_flux2='5.54e-05', photon_flux_error='4.99e-08', dlogl='1.13e-01', energy_flux='4.35e-05', photon_flux2='6.92e-08', job_status='DONE', time_completed='2021-08-19 13:38:29.046730', photon_index_error2='0.56', photon_index2='1.81', ts='11.01', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', energy_flux_error2='4.62e-05', EG='1.22', time_epoch_completed='1629405509.05', return_code='0', job_id='985194', GAL2='0.52', EG2='1.25', return_code2='0', energy_flux_error='2.35e-05', photon_flux_error2='5.79e-08', ts2='11.20', photon_index='2.09' WHERE bin_id='1110' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:38:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 985194: <4FGL_J0348.5-2749_daily_bin1110> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin1110> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Aug 19 13:25:17 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:25:19 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:25:19 2021
Terminated at Thu Aug 19 13:38:30 2021
Results reported at Thu Aug 19 13:38:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1110 57.1417 -27.8303 527040001 527299201 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 :                                   614.33 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             263.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            793 sec.

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

