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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin458
RA = 57.1417, Dec = -27.8303
tmin = 358041601, tmax = 358300801
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='980827', job_status='RUN', time_executed='2021-08-19 13:12:01.832267', time_epoch_executed='1629403921.83' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='458'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/980827

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/980827/ft1_4FGL_J0348.5-2749_daily_bin458.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/980827/ft2_4FGL_J0348.5-2749_daily_bin458.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/980827/ft1_4FGL_J0348.5-2749_daily_bin458.fits outfile=/scratch/kocevski/980827/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin458.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=358041601.0 tmax=358300801.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 7.50
user 3.25
sys 4.14

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/980827/ft1_filtered_4FGL_J0348.5-2749_daily_bin458.fits" evtable="EVENTS" scfile=/scratch/kocevski/980827/ft2_4FGL_J0348.5-2749_daily_bin458.fits sctable="SC_DATA" outfile=/scratch/kocevski/980827/ltcube_358041601_358300801_4FGL_J0348.5-2749_daily_bin458.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/980827/ft2_4FGL_J0348.5-2749_daily_bin458.fits
.....................!
real 16.31
user 11.56
sys 4.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/980827/ft1_filtered_4FGL_J0348.5-2749_daily_bin458.fits evtable="EVENTS" scfile=/scratch/kocevski/980827/ft2_4FGL_J0348.5-2749_daily_bin458.fits sctable="SC_DATA" expcube=/scratch/kocevski/980827/ltcube_358041601_358300801_4FGL_J0348.5-2749_daily_bin458.fits outfile=/scratch/kocevski/980827/expmap_358041601_358300801_4FGL_J0348.5-2749_daily_bin458.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/980827/ltcube_358041601_358300801_4FGL_J0348.5-2749_daily_bin458.fits
.....................!
real 197.69
user 186.76
sys 10.59

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/980827/ft1_filtered_4FGL_J0348.5-2749_daily_bin458.fits scfile=/scratch/kocevski/980827/ft2_4FGL_J0348.5-2749_daily_bin458.fits outfile=/scratch/kocevski/980827/cmap_358041601_358300801_4FGL_J0348.5-2749_daily_bin458.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.39
user 0.35
sys 4.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/980827/ft1_filtered_4FGL_J0348.5-2749_daily_bin458.fits scfile=/scratch/kocevski/980827/ft2_4FGL_J0348.5-2749_daily_bin458.fits outfile=/scratch/kocevski/980827/cmap_HighResolution_358041601_358300801_4FGL_J0348.5-2749_daily_bin458.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.38
user 0.38
sys 3.97

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/980827/ft1_filtered_4FGL_J0348.5-2749_daily_bin458.fits evtable="EVENTS" scfile=/scratch/kocevski/980827/ft2_4FGL_J0348.5-2749_daily_bin458.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/980827/Model_4FGL_J0348.5-2749_daily_bin458.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/980827/ft1_filtered_4FGL_J0348.5-2749_daily_bin458.fits.....................!
real 120.17
user 113.60
sys 6.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0350       1.0000         .10000E-03   10000.    
     2 'norm      '    4.6123       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.410       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .68665       1.0000         .10000E-03   10000.    
     6 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    70.821       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .30539E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.504       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0956       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.305       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .21185       1.0000         .10000E-03   10000.    
    22 'norm      '    13.886       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12033E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0197       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .92638       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=   5170.524     FROM MIGRAD    STATUS=CONVERGED   1118 CALLS     3626 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0286        11.489        .13334E-03   -.11851E-04
   2  norm          4.6118        3.9245        .12738E-03    .27131E-04
   3  Prefactor     .10002E-03    135.82        .18142E-02** at limit **
   4  Prefactor     35.420        25.183        .67346E-04    .14734E-03
   5  Prefactor     .48989        67.401        .13733        .78577E-04
   6  norm          .10000E-03    4.2351        .19215E-02** at limit **
   7  Prefactor     70.909        67.197        .23851E-03   -.86751E-04
   8  Prefactor     .10000E-03    186.57        .21382E-02** at limit **
   9  Prefactor     .10000E-03    2.1547        .16286E-02** at limit **
  10  Prefactor     15.504        5.6258        .94832E-04   -.20020E-04
  11  Prefactor     6.0953        4.2258        .11486E-03    .52983E-03
  12  Prefactor     .10000E-03    23.032        .18142E-02** at limit **
  13  norm          .10000E-03    1.6035        .11295E-02** at limit **
  14  Prefactor     10.310        22.991        .12482E-03    .69223E-04
  15  norm          .10000E-03    .51996        .50095E-03** at limit **
  16  Prefactor     .10000E-03    44.460        .18142E-02** at limit **
  17  Prefactor     .10000E-03    45.047        .18142E-02** at limit **
  18  Prefactor     .10000E-03    1.3947        .16376E-03** at limit **
  19  norm          .10000E-03    4.2672        .14503E-02** at limit **
  20  Prefactor     .10000E-03    11.583        .18142E-02** at limit **
  21  norm          .21158        .32084        .46925E-04   -.66650E-03
  22  norm          13.885        8.2250        .10749E-03    .79748E-04
  23  Prefactor     .10000E-03    .94457        .68124E-03** at limit **
  24  Prefactor     .10000E-03    26.908        .36285E-03** at limit **
  25  Normalizat    1.0199        .21779        .23939E-03    .31369E-03
  26  Prefactor     .92639        .21536        .25646E-03   -.88304E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.02859
  norm       = 4.61177
  Prefactor  = 0.00010002
  Prefactor  = 35.4198
  Prefactor  = 0.489892
  norm       = 0.0001
  Prefactor  = 70.9088
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 15.5044
  Prefactor  = 6.09528
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.3101
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.211584
  norm       = 13.8851
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.01991
  Prefactor  = 0.926392
 **********
 **   18 **HESSE 
 **********

 FCN=   5170.524     FROM HESSE     STATUS=OK           440 CALLS     4066 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0286        11.489        .53336E-05   -1.5107    
   2  norm          4.6118        3.9244        .50954E-05   -1.5278    
   3  Prefactor     .10002E-03    135.82        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     35.420        25.182        .13469E-04   -1.4517    
   5  Prefactor     .48989        63.643        .14224       -1.5568    
   6  norm          .10000E-03    4.2588        .38429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     70.909        67.116        .95404E-05   -1.4022    
   8  Prefactor     .10000E-03    186.66        .42765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.1581        .32573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.504        5.6255        .37933E-05   -1.4920    
  11  Prefactor     6.0953        4.2255        .45945E-05   -1.5214    
  12  Prefactor     .10000E-03    23.042        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.6124        .22590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.310        22.988        .49927E-05   -1.5066    
  15  norm          .10000E-03    .51999        .10019E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    44.460        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    45.063        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.3947        .32753E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.2672        .29005E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.584        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .21158        .32077        .18770E-05   -1.5616    
  22  norm          13.885        8.2241        .42995E-05   -1.4963    
  23  Prefactor     .10000E-03    .94459        .13625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    26.909        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0199        .21795        .47879E-04   -.92366    
  26  Prefactor     .92639        .21556        .10258E-04   -.95225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80775e-09
Minuit parameter uncertainties:
  1  11.4916
  2  3.92462
  3  0.00326561
  4  25.1895
  5  11.1785
  6  4.13137e-06
  7  67.1879
  8  0.000952881
  9  6.69008e-05
  10  5.6257
  11  4.22575
  12  7.52189e-06
  13  4.78895e-05
  14  23.0079
  15  9.84645e-07
  16  0.000179494
  17  0.000211163
  18  3.55033e-07
  19  2.15013e-06
  20  1.05176e-05
  21  0.320768
  22  8.22482
  23  3.03803e-07
  24  0.000121865
  25  0.218136
  26  0.215754
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.000e-04  4.789e-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:  9.264e-01  2.158e-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.020e+00  2.181e-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: 7.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.41e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/980827/likelihoodResults_358041601_358300801_4FGL_J0348.5-2749_daily_bin458.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) = 5170.52718354
delta logL = -0.00300755670924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5170.52417826
delta logL = -2.26909833145e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10255E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1227       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0197       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92683       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=   5170.524     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      256 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    266.14        .11412E-02** at limit **
   2  alpha         2.2860        3.7832        .16704       -.95543E-07
   3  Normalizat    1.0199        .70114E-01    .23939E-03   -.20723E-02
   4  Prefactor     .92639        .72148E-01    .25646E-03   -.19196E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.28604
  Normalizat = 1.0199
  Prefactor  = 0.926394
 **********
 **   18 **HESSE 
 **********

 FCN=   5170.524     FROM HESSE     STATUS=OK            25 CALLS      281 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8949        .22824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2860        3.3836        .33408E-01   -.85690E-01
   3  Normalizat    1.0199        .20657        .47878E-04   -.92367    
   4  Prefactor     .92639        .21302        .51292E-04   -.95225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32552e-09
Minuit parameter uncertainties:
  1  1.89391e-05
  2  67.9342
  3  0.206732
  4  0.213208
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/980827': 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) = 5170.52417161
delta logL = 4.3766658564e-06

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.000e-04  1.894e-05  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  2.286e+00  6.793e+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.264e-01  2.132e-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.020e+00  2.067e-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/980827/cmap_HighResolution_358041601_358300801_4FGL_J0348.5-2749_daily_bin458.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.41e-05', job_status='DONE', photon_flux_upper_limit='7.23e-08', time_completed='2021-08-19 13:24:59.388860', job_id='980827', GAL2='0.93', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1629404699.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='4.38e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='458' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:24:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 980827: <4FGL_J0348.5-2749_daily_bin458> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin458> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 19 13:10:39 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:10:43 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:10:43 2021
Terminated at Thu Aug 19 13:25:00 2021
Results reported at Thu Aug 19 13:25:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin458 57.1417 -27.8303 358041601 358300801 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 :                                   836.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            861 sec.

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

