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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1349
RA = 57.1417, Dec = -27.8303
tmin = 588988801, tmax = 589248001
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='985558', job_status='RUN', time_executed='2021-08-19 13:27:10.628473', time_epoch_executed='1629404830.63' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1349'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/985558

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/985558/ft1_4FGL_J0348.5-2749_daily_bin1349.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/985558/ft2_4FGL_J0348.5-2749_daily_bin1349.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/985558/ft1_4FGL_J0348.5-2749_daily_bin1349.fits outfile=/scratch/kocevski/985558/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1349.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=588988801.0 tmax=589248001.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.11
user 2.92
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/985558/ft1_filtered_4FGL_J0348.5-2749_daily_bin1349.fits" evtable="EVENTS" scfile=/scratch/kocevski/985558/ft2_4FGL_J0348.5-2749_daily_bin1349.fits sctable="SC_DATA" outfile=/scratch/kocevski/985558/ltcube_588988801_589248001_4FGL_J0348.5-2749_daily_bin1349.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/985558/ft2_4FGL_J0348.5-2749_daily_bin1349.fits
.....................!
real 12.21
user 11.90
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/985558/ft1_filtered_4FGL_J0348.5-2749_daily_bin1349.fits evtable="EVENTS" scfile=/scratch/kocevski/985558/ft2_4FGL_J0348.5-2749_daily_bin1349.fits sctable="SC_DATA" expcube=/scratch/kocevski/985558/ltcube_588988801_589248001_4FGL_J0348.5-2749_daily_bin1349.fits outfile=/scratch/kocevski/985558/expmap_588988801_589248001_4FGL_J0348.5-2749_daily_bin1349.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/985558/ltcube_588988801_589248001_4FGL_J0348.5-2749_daily_bin1349.fits
.....................!
real 193.40
user 189.03
sys 4.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/985558/ft1_filtered_4FGL_J0348.5-2749_daily_bin1349.fits scfile=/scratch/kocevski/985558/ft2_4FGL_J0348.5-2749_daily_bin1349.fits outfile=/scratch/kocevski/985558/cmap_588988801_589248001_4FGL_J0348.5-2749_daily_bin1349.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.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/985558/ft1_filtered_4FGL_J0348.5-2749_daily_bin1349.fits scfile=/scratch/kocevski/985558/ft2_4FGL_J0348.5-2749_daily_bin1349.fits outfile=/scratch/kocevski/985558/cmap_HighResolution_588988801_589248001_4FGL_J0348.5-2749_daily_bin1349.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/985558/ft1_filtered_4FGL_J0348.5-2749_daily_bin1349.fits evtable="EVENTS" scfile=/scratch/kocevski/985558/ft2_4FGL_J0348.5-2749_daily_bin1349.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/985558/Model_4FGL_J0348.5-2749_daily_bin1349.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/985558/ft1_filtered_4FGL_J0348.5-2749_daily_bin1349.fits.....................!
real 170.28
user 168.77
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.567       1.0000         .10000E-03   10000.    
     2 'norm      '    3.5194       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.551       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.4349       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.720       1.0000         .10000E-03   10000.    
     8 'Prefactor '    52.390       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .84273       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5890       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.576       1.0000         .10000E-03   10000.    
    13 'norm      '    18.183       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.818       1.0000         .10000E-03   10000.    
    15 'norm      '    .11737       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .45649E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.0651       1.0000         .10000E-03   10000.    
    21 'norm      '    .53546       1.0000         .10000E-03   10000.    
    22 'norm      '    3.3630       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.1647       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.1210       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .89047       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .90398       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=   7800.546     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     2732 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.571        15.873        .56241E-06    .17109E-04
   2  norm          3.5196        2.2557        .43804E-08    .51788E-04
   3  Prefactor     17.493        120.84       -.21799E-05   -.52402E-04
   4  Prefactor     .10000E-03    6.8372       -.13541E-06** at limit **
   5  Prefactor     .10000E-03    24.976        .18573E-06** at limit **
   6  norm          1.4349        1.3847       -.29069E-07    .56249E-04
   7  Prefactor     22.723        41.205        .40088E-06    .16745E-04
   8  Prefactor     52.386        33.656       -.28087E-07   -.46958E-04
   9  Prefactor     .84280        .88083       -.69375E-07   -.54865E-04
  10  Prefactor     .10000E-03    1.3724       -.55393E-08** at limit **
  11  Prefactor     2.5892        2.1887        .26273E-06   -.17416E-03
  12  Prefactor     26.576        14.989       -.37886E-08   -.72271E-06
  13  norm          18.183        1.8599       -.25924E-07   -.10669E-03
  14  Prefactor     11.816        16.461        .38681E-07   -.25014E-04
  15  norm          .11731        .63015        .26907E-06   -.63065E-03
  16  Prefactor     .10006E-03    289.88       -.69185E-05** at limit **
  17  Prefactor     .10000E-03    12.440        .25026E-09** at limit **
  18  Prefactor     .10000E-03    1.1778       -.35416E-07** at limit **
  19  norm          .10000E-03    3.8607       -.41551E-07** at limit **
  20  Prefactor     4.0652        11.130        .72675E-05   -.13602E-03
  21  norm          .53548        .27402       -.62185E-08   -.27866E-03
  22  norm          3.3634        3.7600       -.32883E-07   -.95611E-05
  23  Prefactor     7.1654        3.7851        .98087E-07    .56124E-04
  24  Prefactor     1.1270        25.580        .42781E-05   -.27665E-04
  25  Normalizat    .89025        .16443       -.18012E-05   -.24960E-04
  26  Prefactor     .90418        .16284        .25760E-06   -.11496E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5712
  norm       = 3.51962
  Prefactor  = 17.4928
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.43495
  Prefactor  = 22.7234
  Prefactor  = 52.3861
  Prefactor  = 0.842796
  Prefactor  = 0.0001
  Prefactor  = 2.5892
  Prefactor  = 26.5756
  norm       = 18.183
  Prefactor  = 11.8156
  norm       = 0.117313
  Prefactor  = 0.000100063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.06519
  norm       = 0.535476
  norm       = 3.3634
  Prefactor  = 7.16542
  Prefactor  = 1.12699
  Normalizat = 0.890251
  Prefactor  = 0.904178
 **********
 **   18 **HESSE 
 **********

 FCN=   7800.546     FROM HESSE     STATUS=OK           468 CALLS     3200 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.571        15.902        .11779E-03   -1.5028    
   2  norm          3.5196        2.2584        .10350E-03   -1.5333    
   3  Prefactor     17.493        121.50        .95602E-04   -1.4871    
   4  Prefactor     .10000E-03    6.8658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.4349        1.4098        .99399E-04   -1.5468    
   7  Prefactor     22.723        41.208        .84035E-04   -1.4754    
   8  Prefactor     52.386        33.688        .55411E-04   -1.4259    
   9  Prefactor     .84280        .89095        .81894E-04   -1.5524    
  10  Prefactor     .10000E-03    1.3895        .10096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.5892        2.1785        .57867E-03   -1.5386    
  12  Prefactor     26.576        14.990        .77709E-04   -1.4676    
  13  norm          18.183        1.8640        .36256E-04   -1.4855    
  14  Prefactor     11.816        16.464        .11653E-03   -1.5020    
  15  norm          .11731        1.2473        .13031E-02   -1.5639    
  16  Prefactor     .10006E-03    292.04        .21202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.0485        .18226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.8707        .16948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.0652        11.162        .99989E-03   -1.5305    
  21  norm          .53548        .26853        .30939E-04   -1.5562    
  22  norm          3.3634        3.7548        .17521E-03   -1.5341    
  23  Prefactor     7.1654        3.7759        .11984E-03   -1.5173    
  24  Prefactor     1.1270        26.125        .44348E-03   -1.5496    
  25  Normalizat    .89025        .18712        .26549E-03   -.96804    
  26  Prefactor     .90418        .18740        .27157E-03   -.95995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67827e-08
Minuit parameter uncertainties:
  1  15.9076
  2  2.25849
  3  92.4743
  4  1.18009e-05
  5  4.53893e-05
  6  1.40979
  7  41.2599
  8  33.7
  9  0.890968
  10  5.86995e-07
  11  2.17857
  12  14.9926
  13  1.86399
  14  16.4703
  15  0.764739
  16  0.00864033
  17  4.60809e-06
  18  9.63202e-06
  19  4.97095e-06
  20  11.1676
  21  0.26853
  22  3.75503
  23  3.77607
  24  10.857
  25  0.187254
  26  0.187537
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.818e+01  1.864e+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:  9.042e-01  1.875e-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:  8.903e-01  1.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 432.39
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 6.49e-07 +/- 6.65e-08
Energy Flux (Fixed Index): 3.06e-04 +/- 3.14e-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) = 7798.16921885
delta logL = 2.37725890172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7798.0456679
delta logL = 2.50080985075

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.151       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8783       1.0000          .0000       5.0000    
     3 'Normalizat'    .95913       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85778       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=   7798.046     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      198 TOTAL
                     EDM=   .58E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.151        2.0223        .22881E-02   -.66080E-04
   2  alpha         1.8783        .92586E-01    .71397E-01    .14679E-05
   3  Normalizat    .95936        .15734        .45653E-01    .18270E-04
   4  Prefactor     .85765        .15971        .44465E-01    .19875E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 19.1512
  alpha      = 1.87827
  Normalizat = 0.959364
  Prefactor  = 0.857654
 **********
 **   18 **HESSE 
 **********

 FCN=   7798.046     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .17E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.151        1.9786        .38063E-04   -1.4832    
   2  alpha         1.8783        .91151E-01    .31445E-03   -.25133    
   3  Normalizat    .95936        .18083        .25759E-03   -.94405    
   4  Prefactor     .85765        .18302        .27805E-03   -.97637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67902e-14
Minuit parameter uncertainties:
  1  1.97862
  2  0.0911726
  3  0.180942
  4  0.183153
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/985558': 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) = 7798.04566645
delta logL = 2.50081130839

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.915e+01  1.979e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  1.878e+00  9.117e-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:  8.577e-01  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:  9.594e-01  1.809e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 433.52
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 1.88 +/- 0.09
Photon Flux (Free Index): 5.80e-07 +/- 6.77e-08
Energy Flux (Free Index): 4.01e-04 +/- 6.76e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/985558/cmap_HighResolution_588988801_589248001_4FGL_J0348.5-2749_daily_bin1349.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.49e-07', energy_flux2='4.01e-04', photon_flux_error='6.65e-08', dlogl='2.50e+00', energy_flux='3.06e-04', photon_flux2='5.80e-07', job_status='DONE', time_completed='2021-08-19 13:40:05.288681', photon_index_error2='0.09', photon_index2='1.88', ts='432.39', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='6.76e-05', EG='0.89', time_epoch_completed='1629405605.29', return_code='0', job_id='985558', GAL2='0.86', EG2='0.96', return_code2='0', energy_flux_error='3.14e-05', photon_flux_error2='6.77e-08', ts2='433.52', photon_index='2.09' WHERE bin_id='1349' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:40:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 985558: <4FGL_J0348.5-2749_daily_bin1349> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1349 57.1417 -27.8303 588988801 589248001 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 :                                   772.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            863 sec.

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

