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


Performing analysis on: 4FGL_J0348.6-1609_daily_bin1265
RA = 57.1532, Dec = -16.1654
tmin = 567216001, tmax = 567475201
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='996406', job_status='RUN', time_executed='2021-08-19 13:58:28.264849', time_epoch_executed='1629406708.26' WHERE source_name='4FGL J0348.6-1609' and cadence='daily' and bin_id='1265'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/996406

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/996406/ft1_4FGL_J0348.6-1609_daily_bin1265.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/996406/ft2_4FGL_J0348.6-1609_daily_bin1265.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/996406/ft1_4FGL_J0348.6-1609_daily_bin1265.fits outfile=/scratch/kocevski/996406/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin1265.fits ra=57.1532 dec=-16.1654 rad=12.0 tmin=567216001.0 tmax=567475201.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 10.29
user 2.60
sys 7.47

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/996406/ft1_filtered_4FGL_J0348.6-1609_daily_bin1265.fits" evtable="EVENTS" scfile=/scratch/kocevski/996406/ft2_4FGL_J0348.6-1609_daily_bin1265.fits sctable="SC_DATA" outfile=/scratch/kocevski/996406/ltcube_567216001_567475201_4FGL_J0348.6-1609_daily_bin1265.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/996406/ft2_4FGL_J0348.6-1609_daily_bin1265.fits
.....................!
real 22.55
user 13.86
sys 8.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/996406/ft1_filtered_4FGL_J0348.6-1609_daily_bin1265.fits evtable="EVENTS" scfile=/scratch/kocevski/996406/ft2_4FGL_J0348.6-1609_daily_bin1265.fits sctable="SC_DATA" expcube=/scratch/kocevski/996406/ltcube_567216001_567475201_4FGL_J0348.6-1609_daily_bin1265.fits outfile=/scratch/kocevski/996406/expmap_567216001_567475201_4FGL_J0348.6-1609_daily_bin1265.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/996406/ltcube_567216001_567475201_4FGL_J0348.6-1609_daily_bin1265.fits
.....................!
real 200.72
user 185.83
sys 14.34

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/996406/ft1_filtered_4FGL_J0348.6-1609_daily_bin1265.fits scfile=/scratch/kocevski/996406/ft2_4FGL_J0348.6-1609_daily_bin1265.fits outfile=/scratch/kocevski/996406/cmap_567216001_567475201_4FGL_J0348.6-1609_daily_bin1265.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 7.81
user 0.37
sys 7.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/996406/ft1_filtered_4FGL_J0348.6-1609_daily_bin1265.fits scfile=/scratch/kocevski/996406/ft2_4FGL_J0348.6-1609_daily_bin1265.fits outfile=/scratch/kocevski/996406/cmap_HighResolution_567216001_567475201_4FGL_J0348.6-1609_daily_bin1265.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 8.24
user 0.39
sys 7.35

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/996406/ft1_filtered_4FGL_J0348.6-1609_daily_bin1265.fits evtable="EVENTS" scfile=/scratch/kocevski/996406/ft2_4FGL_J0348.6-1609_daily_bin1265.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/996406/Model_4FGL_J0348.6-1609_daily_bin1265.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/996406/ft1_filtered_4FGL_J0348.6-1609_daily_bin1265.fits.....................!
real 119.33
user 108.27
sys 10.74

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/996406/ft1_filtered_4FGL_J0348.6-1609_daily_bin1265.fits', '/scratch/kocevski/996406/ft2_4FGL_J0348.6-1609_daily_bin1265.fits', expMap='/scratch/kocevski/996406/expmap_567216001_567475201_4FGL_J0348.6-1609_daily_bin1265.fits', expCube='/scratch/kocevski/996406/ltcube_567216001_567475201_4FGL_J0348.6-1609_daily_bin1265.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/996406/Model_4FGL_J0348.6-1609_daily_bin1265.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/996406/ft1_filtered_4FGL_J0348.6-1609_daily_bin1265.fits
Spacecraft file(s): /scratch/kocevski/996406/ft2_4FGL_J0348.6-1609_daily_bin1265.fits
Exposure map: /scratch/kocevski/996406/expmap_567216001_567475201_4FGL_J0348.6-1609_daily_bin1265.fits
Exposure cube: /scratch/kocevski/996406/ltcube_567216001_567475201_4FGL_J0348.6-1609_daily_bin1265.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/996406/Model_4FGL_J0348.6-1609_daily_bin1265.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) = 4925.33673151

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    142.30       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .51545       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10613E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.520       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.4413       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1778       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1759       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6402       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    18.492       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .84556       1.0000         .10000E-03   10000.    
    15 'Prefactor '    92.125       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.3123       1.0000         .10000E-03   10000.    
    17 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.167       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0610       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.557       1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.835       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .63175       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2793       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=   4925.289     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2251 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     142.25        112.70       -.12699E-06   -.52866E-04
   2  Prefactor     .10000E-03    5.7025       -.12773E-06** at limit **
   3  Prefactor     .49926        4.6500        .84763E-06   -.29860E-03
   4  Prefactor     .10000E-03    267.10       -.11881E-06** at limit **
   5  Prefactor     .10000E-03    1.7317       -.20205E-06** at limit **
   6  Prefactor     29.528        22.564       -.17966E-06   -.13290E-03
   7  Prefactor     6.4449        18.837        .13092E-06   -.95589E-04
   8  Prefactor     6.1550        157.24        .38952E-06   -.18380E-04
   9  Prefactor     2.1761        2.6533       -.53346E-07   -.98979E-04
  10  Prefactor     2.6398        5.1944        .69259E-06    .23663E-04
  11  Prefactor     .10000E-03    1.2266        .27650E-07** at limit **
  12  norm          18.492        2.8007       -.32480E-07   -.13340E-03
  13  Prefactor     .10000E-03    16.263       -.25933E-06** at limit **
  14  norm          .84532        2.0224        .37234E-06    .26138E-04
  15  Prefactor     92.108        41.458       -.37191E-06   -.81698E-04
  16  Prefactor     7.3119        5.1402        .39431E-08   -.18720E-03
  17  norm          .10000E-03    10.243        .25847E-06** at limit **
  18  Prefactor     10.163        25.050        .31383E-06    .10640E-04
  19  Prefactor     1.0623        16.236        .53586E-05    .40225E-05
  20  Prefactor     13.558        7.7526        .18720E-08   -.91326E-04
  21  Prefactor     24.843        31.493        .79332E-07   -.15693E-04
  22  Normalizat    .63175        .27508        .14926E-06   -.13192E-03
  23  Prefactor     1.2794        .20248       -.11491E-05   -.15027E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 142.251
  Prefactor  = 0.0001
  Prefactor  = 0.499261
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.5283
  Prefactor  = 6.44487
  Prefactor  = 6.15503
  Prefactor  = 2.17609
  Prefactor  = 2.63975
  Prefactor  = 0.0001
  norm       = 18.4923
  Prefactor  = 0.0001
  norm       = 0.845316
  Prefactor  = 92.108
  Prefactor  = 7.31192
  norm       = 0.0001
  Prefactor  = 10.1625
  Prefactor  = 1.06228
  Prefactor  = 13.5578
  Prefactor  = 24.843
  Normalizat = 0.631751
  Prefactor  = 1.2794
 **********
 **   18 **HESSE 
 **********

 FCN=   4925.289     FROM HESSE     STATUS=OK           374 CALLS     2625 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     142.25        112.69        .16887E-03   -1.3317    
   2  Prefactor     .10000E-03    5.7033        .16366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .49926        15.436        .27302E-02   -1.5567    
   4  Prefactor     .10000E-03    267.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.7317        .90105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     29.528        22.570        .73741E-04   -1.4621    
   7  Prefactor     6.4449        18.729        .15814E-03   -1.5200    
   8  Prefactor     6.1550        158.22        .16152E-03   -1.5212    
   9  Prefactor     2.1761        2.6014        .11542E-03   -1.5413    
  10  Prefactor     2.6398        5.1779        .20597E-03   -1.5383    
  11  Prefactor     .10000E-03    1.2281        .75859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          18.492        2.7939        .42360E-04   -1.4848    
  13  Prefactor     .10000E-03    16.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .84532        1.9502        .13516E-03   -1.5524    
  15  Prefactor     92.108        41.480        .41869E-04   -1.3786    
  16  Prefactor     7.3119        5.0749        .11981E-03   -1.5167    
  17  norm          .10000E-03    10.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.163        25.012        .12567E-03   -1.5070    
  19  Prefactor     1.0623        16.301        .47555E-03   -1.5502    
  20  Prefactor     13.558        7.7440        .10878E-03   -1.4971    
  21  Prefactor     24.843        31.496        .80382E-04   -1.4711    
  22  Normalizat    .63175        .30324        .40304E-03   -1.0665    
  23  Prefactor     1.2794        .22766        .23406E-03   -.83922    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36952e-10
Minuit parameter uncertainties:
  1  112.86
  2  5.42625e-08
  3  5.55315
  4  0.000296279
  5  3.26421e-07
  6  22.5769
  7  18.7462
  8  62.5972
  9  2.60155
  10  5.17881
  11  1.14082e-06
  12  2.79395
  13  1.35936e-06
  14  1.9503
  15  41.4927
  16  5.07517
  17  5.90229e-06
  18  25.0379
  19  8.32484
  20  7.74456
  21  31.5172
  22  0.304039
  23  0.227837
Done.

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

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  1.359e-06  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.279e+00  2.278e-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:  6.318e-01  3.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/996406/likelihoodResults_567216001_567475201_4FGL_J0348.6-1609_daily_bin1265.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): 102
logL (Free Index) = 4925.28955882
delta logL = -0.00029168110359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4925.28926725
delta logL = -1.12412635644e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2687       1.0000          .0000       10.000    
     3 'Normalizat'    .63175       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2794       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=   4925.289     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      239 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6296.0        .90712E-02** at limit **
   2  Index         2.2756        6.1265        .50000       -.37728E-05
   3  Normalizat    .63175        .12025        .90957E-01    .27931E-04
   4  Prefactor     1.2794        .96676E-01    .52946E-01   -.10627E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.27559
  Normalizat = 0.631752
  Prefactor  = 1.2794
 **********
 **   18 **HESSE 
 **********

 FCN=   4925.289     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2756        6.1253        .50000       -.57625    
   3  Normalizat    .63175        .26781        .40303E-03   -1.0665    
   4  Prefactor     1.2794        .21640        .23406E-03   -.83922    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76337e-11
Minuit parameter uncertainties:
  1  5.00561e-06
  2  4.58971
  3  0.268361
  4  0.216553
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/996406': 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) = 4925.28926723
delta logL = -8.37999323267e-08

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  5.006e-06  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.276e+00  4.590e+00  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.279e+00  2.166e-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:  6.318e-01  2.684e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/996406/cmap_HighResolution_567216001_567475201_4FGL_J0348.6-1609_daily_bin1265.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.24e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-08-19 14:10:24.476984', job_id='996406', GAL2='1.28', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1629407424.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='-8.38e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1265' AND source_name='4FGL J0348.6-1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 14:10:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 996406: <4FGL_J0348.6-1609_daily_bin1265> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.6-1609_daily_bin1265 57.1532 -16.1654 567216001 567475201 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 :                                   817.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

