/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 3 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 = 7421
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0348.5-2749_daily_bin33
RA = 57.1417, Dec = -27.8303
tmin = 247881601, tmax = 248140801
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='977696', job_status='RUN', time_executed='2021-08-19 13:01:18.254431', time_epoch_executed='1629403278.25' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='33'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/977696

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/977696/ft1_4FGL_J0348.5-2749_daily_bin33.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/977696/ft2_4FGL_J0348.5-2749_daily_bin33.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/977696/ft1_4FGL_J0348.5-2749_daily_bin33.fits outfile=/scratch/kocevski/977696/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin33.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=247881601.0 tmax=248140801.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 3.37
user 1.21
sys 2.04

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/977696/ft2_4FGL_J0348.5-2749_daily_bin33.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/977696/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin33.fits evtable="EVENTS" outfile="/scratch/kocevski/977696/ft1_filtered_4FGL_J0348.5-2749_daily_bin33.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 2.35
user 0.30
sys 2.03

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/977696/ft1_filtered_4FGL_J0348.5-2749_daily_bin33.fits" evtable="EVENTS" scfile=/scratch/kocevski/977696/ft2_4FGL_J0348.5-2749_daily_bin33.fits sctable="SC_DATA" outfile=/scratch/kocevski/977696/ltcube_247881601_248140801_4FGL_J0348.5-2749_daily_bin33.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/977696/ft2_4FGL_J0348.5-2749_daily_bin33.fits
.....................!
real 14.72
user 12.22
sys 2.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/977696/ft1_filtered_4FGL_J0348.5-2749_daily_bin33.fits evtable="EVENTS" scfile=/scratch/kocevski/977696/ft2_4FGL_J0348.5-2749_daily_bin33.fits sctable="SC_DATA" expcube=/scratch/kocevski/977696/ltcube_247881601_248140801_4FGL_J0348.5-2749_daily_bin33.fits outfile=/scratch/kocevski/977696/expmap_247881601_248140801_4FGL_J0348.5-2749_daily_bin33.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/977696/ltcube_247881601_248140801_4FGL_J0348.5-2749_daily_bin33.fits
.....................!
real 195.24
user 187.29
sys 7.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/977696/ft1_filtered_4FGL_J0348.5-2749_daily_bin33.fits scfile=/scratch/kocevski/977696/ft2_4FGL_J0348.5-2749_daily_bin33.fits outfile=/scratch/kocevski/977696/cmap_247881601_248140801_4FGL_J0348.5-2749_daily_bin33.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 2.38
user 0.37
sys 1.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/977696/ft1_filtered_4FGL_J0348.5-2749_daily_bin33.fits scfile=/scratch/kocevski/977696/ft2_4FGL_J0348.5-2749_daily_bin33.fits outfile=/scratch/kocevski/977696/cmap_HighResolution_247881601_248140801_4FGL_J0348.5-2749_daily_bin33.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 2.36
user 0.36
sys 2.00

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/977696/ft1_filtered_4FGL_J0348.5-2749_daily_bin33.fits evtable="EVENTS" scfile=/scratch/kocevski/977696/ft2_4FGL_J0348.5-2749_daily_bin33.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/977696/Model_4FGL_J0348.5-2749_daily_bin33.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/977696/ft1_filtered_4FGL_J0348.5-2749_daily_bin33.fits.....................!
real 140.34
user 136.18
sys 3.85

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .56592       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .99762       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.820       1.0000         .10000E-03   10000.    
     6 'norm      '    1.9041       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10638E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4432       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9604       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12417       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.344       1.0000         .10000E-03   10000.    
    15 'norm      '    5.4255       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .89072       1.0000         .10000E-03   10000.    
    20 'Prefactor '    36.517       1.0000         .10000E-03   10000.    
    21 'norm      '    .79766E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    13.296       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.437       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .77639       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0122       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=   6192.921     FROM MIGRAD    STATUS=CONVERGED    670 CALLS     3204 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9980       -.11888E-07** at limit **
   2  norm          .56511        3.7526        .57939E-06   -.11415E-03
   3  Prefactor     .10000E-03    93.819        .76263E-06** at limit **
   4  Prefactor     .98679        37.694        .15876E-04   -.21056E-04
   5  Prefactor     19.818        19.107        .33885E-06    .13262E-03
   6  norm          1.9072        2.3220        .17860E-05   -.42119E-03
   7  Prefactor     .10000E-03    8.8354        .16064E-07** at limit **
   8  Prefactor     .10000E-03    15.371        .12530E-06** at limit **
   9  Prefactor     .10000E-03    1.0623       -.28631E-06** at limit **
  10  Prefactor     1.4429        1.8260        .41055E-07   -.37621E-04
  11  Prefactor     3.9592        3.2426        .44445E-07   -.15661E-03
  12  Prefactor     .62574E-02    9.8634       -.84978E-06    .29113E-04
  13  norm          .10000E-03    .20035        .32226E-07** at limit **
  14  Prefactor     14.344        17.979        .10208E-05    .50686E-03
  15  norm          5.4247        1.6840        .54212E-08   -.32367E-03
  16  Prefactor     .10000E-03    36.829       -.16905E-06** at limit **
  17  Prefactor     .10000E-03    14.334        .54778E-06** at limit **
  18  Prefactor     .10000E-03    .84118        .13087E-06** at limit **
  19  norm          .89009        15.107        .13058E-06   -.33028E-03
  20  Prefactor     36.504        26.507        .10375E-06    .12421E-03
  21  norm          .79681E-01    .18381        .32064E-07    .26993E-04
  22  norm          13.300        7.9855        .27182E-06    .52556E-03
  23  Prefactor     .10000E-03    1.4140        .27570E-07** at limit **
  24  Prefactor     18.438        14.065        .13936E-06    .90217E-04
  25  Normalizat    .77676        .15968       -.15850E-05   -.20809E-03
  26  Prefactor     1.0120        .16114        .36994E-07   -.21190E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.565115
  Prefactor  = 0.000100002
  Prefactor  = 0.986793
  Prefactor  = 19.8176
  norm       = 1.90718
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.44287
  Prefactor  = 3.95915
  Prefactor  = 0.00625744
  norm       = 0.0001
  Prefactor  = 14.3443
  norm       = 5.42465
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.890091
  Prefactor  = 36.5036
  norm       = 0.0796811
  norm       = 13.3001
  Prefactor  = 0.0001
  Prefactor  = 18.4379
  Normalizat = 0.77676
  Prefactor  = 1.01204
 **********
 **   18 **HESSE 
 **********

 FCN=   6192.921     FROM HESSE     STATUS=OK           470 CALLS     3674 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9994        .13307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .56511        3.9478        .29216E-02   -1.5558    
   3  Prefactor     .10000E-03    93.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .98679        48.210        .50173E-02   -1.5509    
   5  Prefactor     19.818        19.137        .89965E-04   -1.4817    
   6  norm          1.9072        3.2192        .87788E-03   -1.5432    
   7  Prefactor     .10000E-03    8.8370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.7141        .15508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.4429        1.8012        .11383E-03   -1.5468    
  11  Prefactor     3.9592        3.2187        .11952E-03   -1.5310    
  12  Prefactor     .62574E-02    15.100        .71877E-01   -1.5692    
  13  norm          .10000E-03    .46469        .68464E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.344        18.266        .10576E-03   -1.4950    
  15  norm          5.4247        1.6672        .53239E-04   -1.5242    
  16  Prefactor     .10000E-03    36.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .85730        .70487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .89009        16.426        .51095E-03   -1.5519    
  20  Prefactor     36.504        26.899        .66321E-04   -1.4499    
  21  norm          .79681E-01    .16096        .47705E-03   -1.5652    
  22  norm          13.300        7.9332        .10985E-03   -1.4978    
  23  Prefactor     .10000E-03    1.4354        .91362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     18.438        14.050        .93277E-04   -1.4849    
  25  Normalizat    .77676        .18158        .24458E-03   -1.0094    
  26  Prefactor     1.0120        .18549        .23170E-03   -.92329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06362e-07
Minuit parameter uncertainties:
  1  1.05994e-06
  2  2.98729
  3  0.000843055
  4  13.8057
  5  19.1432
  6  3.21947
  7  6.22959e-06
  8  2.51017e-05
  9  6.44037e-05
  10  1.8013
  11  3.21881
  12  0.610006
  13  1.7574e-06
  14  18.2727
  15  1.6672
  16  0.000113624
  17  0.000156833
  18  9.42072e-06
  19  7.64931
  20  26.9076
  21  0.160962
  22  7.93386
  23  2.56796e-06
  24  14.0527
  25  0.18172
  26  0.18561
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  1.012e+00  1.856e-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:  7.768e-01  1.817e-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: 3.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/977696/likelihoodResults_247881601_248140801_4FGL_J0348.5-2749_daily_bin33.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) = 6192.93177349
delta logL = -0.0105153298427

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6192.92125711
delta logL = 1.05164053821e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1030       1.0000          .0000       5.0000    
     3 'Normalizat'    .77676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0120       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=   6192.921     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      221 TOTAL
                     EDM=   .59E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .79760        .19250E-01** at limit **
   2  alpha         2.3324        2.6692        .41827        .73387E-08
   3  Normalizat    .77676        .78665E-02    .43306E-01    .22389E-04
   4  Prefactor     1.0120        .84509E-02    .43045E-01    .23669E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.33237
  Normalizat = 0.776759
  Prefactor  = 1.01204
 **********
 **   18 **HESSE 
 **********

 FCN=   6192.921     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7592        .66297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3324        2.9397        .16731       -.67101E-01
   3  Normalizat    .77676        .17040        .24459E-03   -1.0094    
   4  Prefactor     1.0120        .18313        .23170E-03   -.92329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79923e-12
Minuit parameter uncertainties:
  1  1.64424e-06
  2  108.821
  3  0.170513
  4  0.183244
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/977696': 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) = 6192.92124945
delta logL = 8.70771873451e-06

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.000e-04  1.644e-06  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  2.332e+00  1.088e+02  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:  1.012e+00  1.832e-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:  7.768e-01  1.705e-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/977696/cmap_HighResolution_247881601_248140801_4FGL_J0348.5-2749_daily_bin33.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.67e-05', job_status='DONE', photon_flux_upper_limit='3.55e-08', time_completed='2021-08-19 13:14:32.170341', job_id='977696', GAL2='1.01', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1629404072.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='8.71e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='33' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:14:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 977696: <4FGL_J0348.5-2749_daily_bin33> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin33> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Aug 19 13:00:36 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:00:38 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:00:38 2021
Terminated at Thu Aug 19 13:14:33 2021
Results reported at Thu Aug 19 13:14:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin33 57.1417 -27.8303 247881601 248140801 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 :                                   819.45 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            837 sec.

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

