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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1218
RA = 57.1417, Dec = -27.8303
tmin = 555033601, tmax = 555292801
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='985356', job_status='RUN', time_executed='2021-08-19 13:27:28.419896', time_epoch_executed='1629404848.42' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1218'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/985356

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/985356/ft1_4FGL_J0348.5-2749_daily_bin1218.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/985356/ft2_4FGL_J0348.5-2749_daily_bin1218.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/985356/ft1_4FGL_J0348.5-2749_daily_bin1218.fits outfile=/scratch/kocevski/985356/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1218.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=555033601.0 tmax=555292801.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 4.02
user 3.40
sys 0.59

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/985356/ft2_4FGL_J0348.5-2749_daily_bin1218.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/985356/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1218.fits evtable="EVENTS" outfile="/scratch/kocevski/985356/ft1_filtered_4FGL_J0348.5-2749_daily_bin1218.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.88
user 0.32
sys 0.54

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/985356/ft1_filtered_4FGL_J0348.5-2749_daily_bin1218.fits" evtable="EVENTS" scfile=/scratch/kocevski/985356/ft2_4FGL_J0348.5-2749_daily_bin1218.fits sctable="SC_DATA" outfile=/scratch/kocevski/985356/ltcube_555033601_555292801_4FGL_J0348.5-2749_daily_bin1218.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/985356/ft2_4FGL_J0348.5-2749_daily_bin1218.fits
.....................!
real 12.14
user 11.34
sys 0.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/985356/ft1_filtered_4FGL_J0348.5-2749_daily_bin1218.fits evtable="EVENTS" scfile=/scratch/kocevski/985356/ft2_4FGL_J0348.5-2749_daily_bin1218.fits sctable="SC_DATA" expcube=/scratch/kocevski/985356/ltcube_555033601_555292801_4FGL_J0348.5-2749_daily_bin1218.fits outfile=/scratch/kocevski/985356/expmap_555033601_555292801_4FGL_J0348.5-2749_daily_bin1218.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/985356/ltcube_555033601_555292801_4FGL_J0348.5-2749_daily_bin1218.fits
.....................!
real 188.69
user 183.73
sys 4.65

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/985356/ft1_filtered_4FGL_J0348.5-2749_daily_bin1218.fits scfile=/scratch/kocevski/985356/ft2_4FGL_J0348.5-2749_daily_bin1218.fits outfile=/scratch/kocevski/985356/cmap_555033601_555292801_4FGL_J0348.5-2749_daily_bin1218.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=57.1417 yref=-27.8303 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.91
user 0.36
sys 0.54

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/985356/ft1_filtered_4FGL_J0348.5-2749_daily_bin1218.fits scfile=/scratch/kocevski/985356/ft2_4FGL_J0348.5-2749_daily_bin1218.fits outfile=/scratch/kocevski/985356/cmap_HighResolution_555033601_555292801_4FGL_J0348.5-2749_daily_bin1218.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=57.1417 yref=-27.8303 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.92
user 0.36
sys 0.55

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/985356/ft1_filtered_4FGL_J0348.5-2749_daily_bin1218.fits evtable="EVENTS" scfile=/scratch/kocevski/985356/ft2_4FGL_J0348.5-2749_daily_bin1218.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/985356/Model_4FGL_J0348.5-2749_daily_bin1218.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/985356/ft1_filtered_4FGL_J0348.5-2749_daily_bin1218.fits...........................!
real 27.95
user 26.15
sys 1.70

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/985356/ft1_filtered_4FGL_J0348.5-2749_daily_bin1218.fits', '/scratch/kocevski/985356/ft2_4FGL_J0348.5-2749_daily_bin1218.fits', expMap='/scratch/kocevski/985356/expmap_555033601_555292801_4FGL_J0348.5-2749_daily_bin1218.fits', expCube='/scratch/kocevski/985356/ltcube_555033601_555292801_4FGL_J0348.5-2749_daily_bin1218.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/985356/Model_4FGL_J0348.5-2749_daily_bin1218.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/985356/ft1_filtered_4FGL_J0348.5-2749_daily_bin1218.fits
Spacecraft file(s): /scratch/kocevski/985356/ft2_4FGL_J0348.5-2749_daily_bin1218.fits
Exposure map: /scratch/kocevski/985356/expmap_555033601_555292801_4FGL_J0348.5-2749_daily_bin1218.fits
Exposure cube: /scratch/kocevski/985356/ltcube_555033601_555292801_4FGL_J0348.5-2749_daily_bin1218.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/985356/Model_4FGL_J0348.5-2749_daily_bin1218.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 684.768461083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 675.63547696

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.071       1.0000         .10000E-03   10000.    
     2 'norm      '    17.951       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10157       1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.082       1.0000         .10000E-03   10000.    
     5 'Prefactor '    515.37       1.0000         .10000E-03   10000.    
     6 'norm      '    2.0629       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.9401       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .21630       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.438       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1316.1       1.0000         .10000E-03   10000.    
    13 'norm      '    5.5890       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .54380E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.7352       1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.000       1.0000         .10000E-03   10000.    
    17 'Prefactor '    231.08       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.3205       1.0000         .10000E-03   10000.    
    19 'norm      '    .11465E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .37353       1.0000         .10000E-03   10000.    
    21 'norm      '    21.149       1.0000         .10000E-03   10000.    
    22 'norm      '    7.7201       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.3047       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .46470       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   675.6234     FROM MIGRAD    STATUS=CONVERGED    221 CALLS      847 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.999        55.318        .16239E-02    .37192E-02
   2  norm          17.949        10.462        .23633E-02   -.98245E-02
   3  Prefactor     .10727E-03    247.28        .95187E-02** at limit **
   4  Prefactor     34.999        32.233        .16915E-02    .39151E-04
   5  Prefactor     515.29        405.20        .45231E-03    .30007E-01
   6  norm          .10987E-03    136.64        .71924E-02** at limit **
   7  Prefactor     .10034E-03    335.96        .74517E-02** at limit **
   8  Prefactor     .55175E-03    316.97        .10052E-01** at limit **
   9  Prefactor     11.436        6.9170        .29613E-02    .40642E-02
  10  Prefactor     .10000E-03    6.0014        .90712E-02** at limit **
  11  Prefactor     .10000E-03    5.2268        .90712E-02** at limit **
  12  Prefactor     1316.2        1215.7        .29580E-03   -.62689E-01
  13  norm          5.5957        5.1339        .42483E-02   -.32448E-01
  14  Prefactor     .10013E-03    41.800        .10558E-01** at limit **
  15  norm          5.7347        4.8809        .41930E-02    .17320    
  16  Prefactor     35.063        2282.4        .16934E-02   -.76198E-02
  17  Prefactor     231.03        89.498        .66557E-03    .12225E-01
  18  Prefactor     6.3189        7.3354        .39915E-02    .41555E-01
  19  norm          .10002E-03    41.459        .90712E-02** at limit **
  20  Prefactor     .10053E-03    158.54        .10743E-01** at limit **
  21  norm          21.243        48.466        .21774E-02    .12334E-02
  22  norm          7.5890        9704.3        .36081E-02    .75181E-02
  23  Prefactor     .10000E-03    5.1547        .90712E-02** at limit **
  24  Prefactor     7.3047        1.0024         .0000         .0000    
  25  Normalizat    .10000E-01    .25505        .14386E-06** at limit **
  26  Prefactor     .46567        .80452       -.87074E-06   -.34557E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.9985
  norm       = 17.9495
  Prefactor  = 0.000107274
  Prefactor  = 34.9991
  Prefactor  = 515.292
  norm       = 0.000109866
  Prefactor  = 0.000100343
  Prefactor  = 0.000551745
  Prefactor  = 11.4362
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1316.16
  norm       = 5.59572
  Prefactor  = 0.000100126
  norm       = 5.73471
  Prefactor  = 35.0628
  Prefactor  = 231.032
  Prefactor  = 6.3189
  norm       = 0.000100016
  Prefactor  = 0.000100528
  norm       = 21.2426
  norm       = 7.58898
  Prefactor  = 0.0001
  Prefactor  = 7.30465
  Normalizat = 0.01
  Prefactor  = 0.465674
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   675.6234     FROM HESSE     STATUS=FAILED        57 CALLS      904 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.999        55.318        .16239E-02   -1.4474    
   2  norm          17.949        10.462        .23633E-02   -1.4860    
   3  Prefactor     .10727E-03    247.28        .95187E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     34.999        32.233        .16915E-02   -1.4524    
   5  Prefactor     515.29        405.20        .45231E-03   -1.1128    
   6  norm          .10987E-03    136.64        .71924E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10034E-03    335.96        .74517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .55175E-03    316.97        .10052E-01   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.436        6.9170        .29613E-02   -1.5031    
  10  Prefactor     .10000E-03    6.0014        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.2268        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1316.2        1215.7        .29580E-03   -.82828    
  13  norm          5.5957        5.1339        .42483E-02   -1.5235    
  14  Prefactor     .10013E-03    41.800        .10558E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.7347        4.8809        .41930E-02   -1.5229    
  16  Prefactor     35.063        2282.4        .16934E-02   -1.4523    
  17  Prefactor     231.03        89.498        .66557E-03   -1.2656    
  18  Prefactor     6.3189        7.3354        .39915E-02   -1.5205    
  19  norm          .10002E-03    41.459        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10053E-03    158.54        .10743E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          21.243        48.466        .21774E-02   -1.4786    
  22  norm          7.5890        9704.3        .36081E-02   -1.5157    
  23  Prefactor     .10000E-03    5.1547        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     510.76        503.42         .0000       -1.5167    
  25  Normalizat    .10000E-01    .25505        .14386E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .46567        .80452       -.87074E-06   -1.1358    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.9946e-09
Minuit parameter uncertainties:
  1  55.3928
  2  10.4636
  3  0.0851767
  4  32.2489
  5  407.501
  6  0.0736026
  7  0.0216049
  8  0.760866
  9  6.91747
  10  2.48503e-06
  11  7.43212e-06
  12  1243.59
  13  5.13427
  14  0.00459609
  15  4.88124
  16  591.098
  17  89.5512
  18  7.33648
  19  0.00162134
  20  0.0183526
  21  48.5561
  22  745.892
  23  6.51475e-06
  24  1.00236
  25  1.46504e-07
  26  0.825469
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 675.623378985

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  5.596e+00  5.134e+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:  4.657e-01  8.255e-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.000e-02  1.465e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.56
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 2.00e-07 +/- 1.83e-07
Energy Flux (Fixed Index): 9.42e-05 +/- 8.64e-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) = 675.3424395
delta logL = 0.280939485021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 675.106117687
delta logL = 0.517261298227

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9131       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0449       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49150       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=   675.1061     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      205 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9131        2.6266        .75130E-02   -.26246E-02
   2  alpha         1.0450        .63834        .13680       -.11312E-04
   3  Normalizat    .10000E-01    .25502        .19321    ** at limit **
   4  Prefactor     .49138        .24322        .59429E-01    .84930E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.91314
  alpha      = 1.04498
  Normalizat = 0.01
  Prefactor  = 0.491379
 **********
 **   18 **HESSE 
 **********

 FCN=   675.1061     FROM HESSE     STATUS=OK            27 CALLS      232 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9131        3.3519        .35532E-04   -1.5431    
   2  alpha         1.0450        .81054        .59789E-03   -.62120    
   3  Normalizat    .10000E-01    .28243        .74864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .49138        .22358        .26289E-03   -1.1237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37036e-09
Minuit parameter uncertainties:
  1  3.35223
  2  0.833708
  3  1.1818e-06
  4  0.223979
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/985356': 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) = 675.106117417
delta logL = 0.517261568445

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.913e+00  3.352e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  1.045e+00  8.337e-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:  4.914e-01  2.240e-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.000e-02  1.182e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.50
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 1.04 +/- 0.83
Photon Flux (Free Index): 5.51e-08 +/- 6.84e-08
Energy Flux (Free Index): 3.49e-04 +/- 6.48e-04

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/985356/cmap_HighResolution_555033601_555292801_4FGL_J0348.5-2749_daily_bin1218.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.00e-07', energy_flux2='3.49e-04', photon_flux_error='1.83e-07', dlogl='5.17e-01', energy_flux='9.42e-05', photon_flux2='5.51e-08', job_status='DONE', time_completed='2021-08-19 13:33:11.218205', photon_index_error2='0.83', photon_index2='1.04', ts='4.56', fit_tolerance='1e-08', GAL='0.47', photon_index_error='0.00', energy_flux_error2='6.48e-04', EG='0.01', time_epoch_completed='1629405191.22', return_code='101', job_id='985356', GAL2='0.49', EG2='0.01', return_code2='0', energy_flux_error='8.64e-05', photon_flux_error2='6.84e-08', ts2='5.50', photon_index='2.09' WHERE bin_id='1218' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:33:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 985356: <4FGL_J0348.5-2749_daily_bin1218> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1218 57.1417 -27.8303 555033601 555292801 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 :                                   346.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             280.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   461 sec.
    Turnaround time :                            463 sec.

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

