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


Performing analysis on: 4FGL_J0348.6-1609_daily_bin1090
RA = 57.1532, Dec = -16.1654
tmin = 521856001, tmax = 522115201
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='996130', job_status='RUN', time_executed='2021-08-19 13:56:28.862439', time_epoch_executed='1629406588.86' WHERE source_name='4FGL J0348.6-1609' and cadence='daily' and bin_id='1090'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/996130

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/996130/ft1_4FGL_J0348.6-1609_daily_bin1090.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/996130/ft2_4FGL_J0348.6-1609_daily_bin1090.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/996130/ft1_4FGL_J0348.6-1609_daily_bin1090.fits outfile=/scratch/kocevski/996130/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin1090.fits ra=57.1532 dec=-16.1654 rad=12.0 tmin=521856001.0 tmax=522115201.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.34
user 3.49
sys 0.82

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/996130/ft2_4FGL_J0348.6-1609_daily_bin1090.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/996130/ft2_4FGL_J0348.6-1609_daily_bin1090.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/996130/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin1090.fits evtable="EVENTS" outfile="/scratch/kocevski/996130/ft1_filtered_4FGL_J0348.6-1609_daily_bin1090.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 1.02
user 0.34
sys 0.67

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/996130/ft1_filtered_4FGL_J0348.6-1609_daily_bin1090.fits" evtable="EVENTS" scfile=/scratch/kocevski/996130/ft2_4FGL_J0348.6-1609_daily_bin1090.fits sctable="SC_DATA" outfile=/scratch/kocevski/996130/ltcube_521856001_522115201_4FGL_J0348.6-1609_daily_bin1090.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/996130/ft2_4FGL_J0348.6-1609_daily_bin1090.fits
.....................!
real 13.77
user 12.67
sys 1.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/996130/ft1_filtered_4FGL_J0348.6-1609_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/996130/ft2_4FGL_J0348.6-1609_daily_bin1090.fits sctable="SC_DATA" expcube=/scratch/kocevski/996130/ltcube_521856001_522115201_4FGL_J0348.6-1609_daily_bin1090.fits outfile=/scratch/kocevski/996130/expmap_521856001_522115201_4FGL_J0348.6-1609_daily_bin1090.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/996130/ltcube_521856001_522115201_4FGL_J0348.6-1609_daily_bin1090.fits
.....................!
real 191.76
user 184.91
sys 6.48

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 159 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.6-1609 @ 57.1532 -16.1654

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/996130/ft1_filtered_4FGL_J0348.6-1609_daily_bin1090.fits scfile=/scratch/kocevski/996130/ft2_4FGL_J0348.6-1609_daily_bin1090.fits outfile=/scratch/kocevski/996130/cmap_521856001_522115201_4FGL_J0348.6-1609_daily_bin1090.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.1532 yref=-16.1654 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 1.15
user 0.37
sys 0.75

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/996130/ft1_filtered_4FGL_J0348.6-1609_daily_bin1090.fits scfile=/scratch/kocevski/996130/ft2_4FGL_J0348.6-1609_daily_bin1090.fits outfile=/scratch/kocevski/996130/cmap_HighResolution_521856001_522115201_4FGL_J0348.6-1609_daily_bin1090.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.1532 yref=-16.1654 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 1.14
user 0.38
sys 0.76

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/996130/ft1_filtered_4FGL_J0348.6-1609_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/996130/ft2_4FGL_J0348.6-1609_daily_bin1090.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/996130/Model_4FGL_J0348.6-1609_daily_bin1090.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/996130/ft1_filtered_4FGL_J0348.6-1609_daily_bin1090.fits.....................!
real 117.04
user 114.76
sys 2.07

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/996130/ft1_filtered_4FGL_J0348.6-1609_daily_bin1090.fits', '/scratch/kocevski/996130/ft2_4FGL_J0348.6-1609_daily_bin1090.fits', expMap='/scratch/kocevski/996130/expmap_521856001_522115201_4FGL_J0348.6-1609_daily_bin1090.fits', expCube='/scratch/kocevski/996130/ltcube_521856001_522115201_4FGL_J0348.6-1609_daily_bin1090.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/996130/Model_4FGL_J0348.6-1609_daily_bin1090.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0348.6-1609'

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  9.725e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.371e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  9.291e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/996130/ft1_filtered_4FGL_J0348.6-1609_daily_bin1090.fits
Spacecraft file(s): /scratch/kocevski/996130/ft2_4FGL_J0348.6-1609_daily_bin1090.fits
Exposure map: /scratch/kocevski/996130/expmap_521856001_522115201_4FGL_J0348.6-1609_daily_bin1090.fits
Exposure cube: /scratch/kocevski/996130/ltcube_521856001_522115201_4FGL_J0348.6-1609_daily_bin1090.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/996130/Model_4FGL_J0348.6-1609_daily_bin1090.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) = 4917.12437634

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0201       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2768       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10924E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    44.773       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3867       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0917       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0060       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1548       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11935E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .99804       1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1530       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.4837       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.598       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0467       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0691       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4917.062     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2222 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.311        .97392E-07** at limit **
   2  Prefactor     .10000E-03    5.8992        .47254E-07** at limit **
   3  Prefactor     5.0211        5.2327       -.70146E-06   -.15008E-03
   4  Prefactor     .10000E-03    64.789       -.25953E-05** at limit **
   5  Prefactor     .10000E-03    1.5333        .96233E-07** at limit **
   6  Prefactor     1.3058        28.160       -.12715E-05    .17961E-04
   7  Prefactor     .10000E-03    90.553        .15831E-04** at limit **
   8  Prefactor     44.682        40.988       -.46959E-05   -.16672E-04
   9  Prefactor     2.3865        2.6413        .19037E-07    .94912E-04
  10  Prefactor     .10000E-03    4.7791       -.49766E-06** at limit **
  11  Prefactor     6.0924        4.7439       -.34080E-06    .52970E-04
  12  norm          1.0060        .94386       -.19040E-07    .13361E-03
  13  Prefactor     4.1351        38.638        .63804E-06    .91398E-05
  14  norm          .10000E-03    .56475       -.65366E-07** at limit **
  15  Prefactor     .10000E-03    19.950        .23562E-07** at limit **
  16  Prefactor     .99700        3.8584       -.21990E-06    .52980E-04
  17  norm          .10000E-03    5.4954        .18324E-07** at limit **
  18  Prefactor     .10000E-03    9.4726       -.26309E-07** at limit **
  19  Prefactor     2.1500        12.362       -.67257E-06   -.97573E-06
  20  Prefactor     7.4832        5.7569       -.13502E-06    .62086E-05
  21  Prefactor     11.597        29.102       -.36855E-06    .12137E-05
  22  Normalizat    1.0465        .23476        .10958E-05   -.74192E-04
  23  Prefactor     1.0694        .16877       -.54944E-06    .27725E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.0211
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.30582
  Prefactor  = 0.0001
  Prefactor  = 44.6823
  Prefactor  = 2.38647
  Prefactor  = 0.0001
  Prefactor  = 6.0924
  norm       = 1.00601
  Prefactor  = 4.13505
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.996995
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.14995
  Prefactor  = 7.4832
  Prefactor  = 11.5975
  Normalizat = 1.04647
  Prefactor  = 1.06939
 **********
 **   18 **HESSE 
 **********

 FCN=   4917.062     FROM HESSE     STATUS=OK           374 CALLS     2596 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.9047        .16635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.0211        5.2282        .78576E-03   -1.5260    
   4  Prefactor     .10000E-03    64.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.5361        .84784E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.3058        28.427        .39315E-03   -1.5479    
   7  Prefactor     .10000E-03    88.478        .44215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     44.682        41.063        .29959E-03   -1.4370    
   9  Prefactor     2.3865        2.6252        .11391E-03   -1.5399    
  10  Prefactor     .10000E-03    4.9052        .29796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.0924        4.7241        .63485E-03   -1.5214    
  12  norm          1.0060        .93754        .63819E-04   -1.5507    
  13  Prefactor     4.1351        38.521        .19774E-03   -1.5301    
  14  norm          .10000E-03    .57353        .51355E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .99700        3.8667        .24669E-03   -1.5508    
  17  norm          .10000E-03    5.4999        .16055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.4770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.1500        12.341        .28079E-03   -1.5415    
  20  Prefactor     7.4832        5.7322        .13826E-03   -1.5161    
  21  Prefactor     11.597        29.087        .11763E-03   -1.5027    
  22  Normalizat    1.0465        .26806        .27755E-03   -.91490    
  23  Prefactor     1.0694        .19585        .21564E-03   -.90451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17144e-10
Minuit parameter uncertainties:
  1  4.64809e-06
  2  1.8004e-06
  3  5.22869
  4  2.19871e-05
  5  4.74786e-06
  6  12.1915
  7  4.52615e-05
  8  41.0891
  9  2.62528
  10  1.9388e-05
  11  4.7244
  12  0.93755
  13  25.2629
  14  2.11518e-06
  15  2.76753e-05
  16  3.86765
  17  1.06306e-06
  18  1.88749e-06
  19  10.3051
  20  5.73261
  21  29.1223
  22  0.268408
  23  0.19598
Done.

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

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  4.135e+00  2.526e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.371e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  9.291e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  1.069e+00  1.960e-01  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
503   Normalization:  1.046e+00  2.684e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 57.153 -16.165
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/996130/likelihoodResults_521856001_522115201_4FGL_J0348.6-1609_daily_bin1090.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) = 4917.04507618
delta logL = 0.0169731757487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4916.96864332
delta logL = 0.0934060294403

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13722E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    6.2668       1.0000          .0000       10.000    
     3 'Normalizat'    1.0113       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0895       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4916.969     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      350 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14200E-01    .89676        .39861E-02    .75595E-02
   2  Index         6.2523        8.0641        .20857E-01    .71960E-04
   3  Normalizat    1.0110        .45738E-01    .45268E-01    .18759E-04
   4  Prefactor     1.0897        .35742E-01    .37998E-01    .14180E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0141999
  Index      = 6.2523
  Normalizat = 1.01102
  Prefactor  = 1.08967
 **********
 **   18 **HESSE 
 **********

 FCN=   4916.969     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      383 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14200E-01    3.3813        .16990E-03   -1.5684    
   2  Index         6.2523        6.5505        .83429E-03    .25316    
   3  Normalizat    1.0110        .17950        .28168E-03   -.92662    
   4  Prefactor     1.0897        .13641        .21390E-03   -.89797    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.89872e-09
Minuit parameter uncertainties:
  1  0.436721
  2  14.5994
  3  0.179606
  4  0.136451
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/996130': 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): 102
logL (Free Index) = 4916.96863902
delta logL = 0.0934103308218

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.420e-02  4.367e-01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  6.252e+00  1.460e+01  0.000e+00  1.000e+01 (-1.000e+00)
279        Scale:  9.291e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  1.090e+00  1.365e-01  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
503   Normalization:  1.011e+00  1.796e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 57.153 -16.165

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/996130/cmap_HighResolution_521856001_522115201_4FGL_J0348.6-1609_daily_bin1090.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.37e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-08-19 14:06:54.744590', job_id='996130', GAL2='1.09', fit_tolerance='1e-08', EG2='1.01', EG='1.05', time_epoch_completed='1629407214.74', return_code2='102', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='9.34e-02', ts2='0.24', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1090' AND source_name='4FGL J0348.6-1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 14:06:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 996130: <4FGL_J0348.6-1609_daily_bin1090> in cluster <slac> Done

Job <4FGL_J0348.6-1609_daily_bin1090> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Aug 19 13:55:19 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:55:21 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:55:21 2021
Terminated at Thu Aug 19 14:06:55 2021
Results reported at Thu Aug 19 14:06:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.6-1609_daily_bin1090 57.1532 -16.1654 521856001 522115201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0348.6-1609 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   630.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            696 sec.

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

