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


Performing analysis on: 4FGL_J0348.6-1609_daily_bin1492
RA = 57.1532, Dec = -16.1654
tmin = 626054401, tmax = 626313601
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='998079', job_status='RUN', time_executed='2021-08-19 14:03:40.015093', time_epoch_executed='1629407020.02' WHERE source_name='4FGL J0348.6-1609' and cadence='daily' and bin_id='1492'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998079

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998079/ft1_4FGL_J0348.6-1609_daily_bin1492.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998079/ft2_4FGL_J0348.6-1609_daily_bin1492.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998079/ft1_4FGL_J0348.6-1609_daily_bin1492.fits outfile=/scratch/kocevski/998079/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin1492.fits ra=57.1532 dec=-16.1654 rad=12.0 tmin=626054401.0 tmax=626313601.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 9.14
user 3.84
sys 5.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/998079/ft2_4FGL_J0348.6-1609_daily_bin1492.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/998079/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin1492.fits evtable="EVENTS" outfile="/scratch/kocevski/998079/ft1_filtered_4FGL_J0348.6-1609_daily_bin1492.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 5.51
user 0.33
sys 5.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998079/ft1_filtered_4FGL_J0348.6-1609_daily_bin1492.fits" evtable="EVENTS" scfile=/scratch/kocevski/998079/ft2_4FGL_J0348.6-1609_daily_bin1492.fits sctable="SC_DATA" outfile=/scratch/kocevski/998079/ltcube_626054401_626313601_4FGL_J0348.6-1609_daily_bin1492.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/998079/ft2_4FGL_J0348.6-1609_daily_bin1492.fits
.....................!
real 21.16
user 15.09
sys 5.99

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998079/ft1_filtered_4FGL_J0348.6-1609_daily_bin1492.fits evtable="EVENTS" scfile=/scratch/kocevski/998079/ft2_4FGL_J0348.6-1609_daily_bin1492.fits sctable="SC_DATA" expcube=/scratch/kocevski/998079/ltcube_626054401_626313601_4FGL_J0348.6-1609_daily_bin1492.fits outfile=/scratch/kocevski/998079/expmap_626054401_626313601_4FGL_J0348.6-1609_daily_bin1492.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/998079/ltcube_626054401_626313601_4FGL_J0348.6-1609_daily_bin1492.fits
.....................!
real 197.17
user 185.64
sys 11.20

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/998079/ft1_filtered_4FGL_J0348.6-1609_daily_bin1492.fits scfile=/scratch/kocevski/998079/ft2_4FGL_J0348.6-1609_daily_bin1492.fits outfile=/scratch/kocevski/998079/cmap_626054401_626313601_4FGL_J0348.6-1609_daily_bin1492.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 5.44
user 0.38
sys 5.05

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998079/ft1_filtered_4FGL_J0348.6-1609_daily_bin1492.fits scfile=/scratch/kocevski/998079/ft2_4FGL_J0348.6-1609_daily_bin1492.fits outfile=/scratch/kocevski/998079/cmap_HighResolution_626054401_626313601_4FGL_J0348.6-1609_daily_bin1492.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 5.50
user 0.38
sys 5.07

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/998079/ft1_filtered_4FGL_J0348.6-1609_daily_bin1492.fits evtable="EVENTS" scfile=/scratch/kocevski/998079/ft2_4FGL_J0348.6-1609_daily_bin1492.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/998079/Model_4FGL_J0348.6-1609_daily_bin1492.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/998079/ft1_filtered_4FGL_J0348.6-1609_daily_bin1492.fits.....................!
real 134.54
user 126.59
sys 7.70

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.112       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.5550       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7426       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.531       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .80380       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    16.744       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .12395E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4023       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .58591       1.0000         .10000E-03   10000.    
    17 'norm      '    .10461E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.271       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.6172       1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.003       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .88085       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0615       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=   5714.467     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2604 TOTAL
                     EDM=   .78E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.107        72.532       -.53684E-05   -.12643E-04
   2  Prefactor     .10000E-03    14.943        .13398E-06** at limit **
   3  Prefactor     7.5548        6.0394       -.13160E-06   -.21707E-04
   4  Prefactor     .10000E-03    49.752       -.11844E-05** at limit **
   5  Prefactor     1.7426        2.5066        .27156E-08   -.11458E-04
   6  Prefactor     .10000E-03    6.4635       -.48122E-08** at limit **
   7  Prefactor     16.530        14.225       -.84949E-07    .58087E-06
   8  Prefactor     .10000E-03    39.687       -.13103E-05** at limit **
   9  Prefactor     .80497        2.4830       -.12835E-07   -.19792E-03
  10  Prefactor     .10000E-03    4.9022       -.13492E-07** at limit **
  11  Prefactor     .10000E-03    1.9738        .60419E-08** at limit **
  12  norm          16.743        2.6829       -.10544E-07    .12075E-04
  13  Prefactor     .10000E-03    8.9075        .23387E-07** at limit **
  14  norm          .10000E-03    .87663        .80943E-08** at limit **
  15  Prefactor     6.3947        21.970       -.46234E-05   -.17676E-04
  16  Prefactor     .58594        3.8196       -.96272E-07   -.23326E-03
  17  norm          .10000E-03    47.675       -.16073E-05** at limit **
  18  Prefactor     .10000E-03    46.310        .40885E-05** at limit **
  19  Prefactor     11.270        9.4071       -.11003E-06    .35565E-05
  20  Prefactor     4.6167        2.4901        .16087E-06   -.13210E-02
  21  Prefactor     25.002        21.014       -.31467E-06   -.24299E-05
  22  Normalizat    .88088        .21480        .88841E-06   -.15697E-04
  23  Prefactor     1.0615        .15728       -.87566E-08    .29764E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.1069
  Prefactor  = 0.0001
  Prefactor  = 7.55483
  Prefactor  = 0.0001
  Prefactor  = 1.74264
  Prefactor  = 0.0001
  Prefactor  = 16.53
  Prefactor  = 0.0001
  Prefactor  = 0.804969
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.7431
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.39471
  Prefactor  = 0.585943
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2703
  Prefactor  = 4.61675
  Prefactor  = 25.0022
  Normalizat = 0.88088
  Prefactor  = 1.06149
 **********
 **   18 **HESSE 
 **********

 FCN=   5714.467     FROM HESSE     STATUS=OK           372 CALLS     2976 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.107        72.733        .55035E-04   -1.4249    
   2  Prefactor     .10000E-03    15.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.5548        6.0469        .14590E-03   -1.5158    
   4  Prefactor     .10000E-03    49.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.7426        2.4868        .13983E-03   -1.5444    
   6  Prefactor     .10000E-03    6.4765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.530        14.241        .98509E-04   -1.4895    
   8  Prefactor     .10000E-03    39.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .80497        2.3882        .18982E-03   -1.5529    
  10  Prefactor     .10000E-03    5.0188        .32616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.9941        .10360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          16.743        2.6885        .47556E-04   -1.4889    
  13  Prefactor     .10000E-03    8.9123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.1269        .12725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.3947        21.946        .15862E-03   -1.5202    
  16  Prefactor     .58594        3.8048        .27128E-03   -1.5555    
  17  norm          .10000E-03    49.996        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    46.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.270        9.4196        .11933E-03   -1.5036    
  20  Prefactor     4.6167        5.1844        .85276E-03   -1.5278    
  21  Prefactor     25.002        21.041        .80112E-04   -1.4708    
  22  Normalizat    .88088        .25080        .30766E-03   -.97135    
  23  Prefactor     1.0615        .18189        .21823E-03   -.90707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05942e-09
Minuit parameter uncertainties:
  1  72.855
  2  6.06445e-05
  3  6.04741
  4  2.13866e-05
  5  2.48692
  6  2.14846e-07
  7  14.2438
  8  1.11232e-05
  9  2.3885
  10  5.81056e-06
  11  1.26487e-06
  12  2.68854
  13  1.33062e-05
  14  8.10295e-06
  15  21.9741
  16  2.98627
  17  4.50017e-05
  18  2.53349e-05
  19  9.42086
  20  5.18492
  21  21.047
  22  0.251135
  23  0.181996
Done.

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

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  1.331e-05  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.061e+00  1.820e-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:  8.809e-01  2.511e-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: 6.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/998079/likelihoodResults_626054401_626313601_4FGL_J0348.6-1609_daily_bin1492.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) = 5714.46726251
delta logL = -0.00053349366317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5714.46672963
delta logL = -6.11373252468e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10831E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3551       1.0000          .0000       10.000    
     3 'Normalizat'    .88103       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0614       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5714.467     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      257 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.235        .18142E-01** at limit **
   2  Index         1.8597        5.9298        .50000        .72896E-07
   3  Normalizat    .88088        .97996E-02    .30766E-03    .60269E-04
   4  Prefactor     1.0615        .76096E-02    .21823E-03    .88008E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.85969
  Normalizat = 0.880881
  Prefactor  = 1.06149
 **********
 **   18 **HESSE 
 **********

 FCN=   5714.467     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    299.71        .24178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8597        5.0831        .50000       -.67906    
   3  Normalizat    .88088        .28668E-01    .12306E-04   -.97135    
   4  Prefactor     1.0615        .22261E-01    .43647E-04   -.90707    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.80364e-11
Minuit parameter uncertainties:
  1  0.000249213
  2  984.638
  3  0.0286681
  4  0.0222611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998079': 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) = 5714.46672806
delta logL = 9.52212758421e-07

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  2.492e-04  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  1.860e+00  9.846e+02  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.061e+00  2.226e-02  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:  8.809e-01  2.867e-02  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/998079/cmap_HighResolution_626054401_626313601_4FGL_J0348.6-1609_daily_bin1492.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.00e-03', job_status='DONE', photon_flux_upper_limit='6.48e-08', time_completed='2021-08-19 14:16:18.292502', job_id='998079', GAL2='1.06', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1629407778.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='9.52e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1492' AND source_name='4FGL J0348.6-1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 14:16:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 998079: <4FGL_J0348.6-1609_daily_bin1492> in cluster <slac> Done

Job <4FGL_J0348.6-1609_daily_bin1492> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Aug 19 14:00:37 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 14:00:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 14:00:39 2021
Terminated at Thu Aug 19 14:16:20 2021
Results reported at Thu Aug 19 14:16:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.6-1609_daily_bin1492 57.1532 -16.1654 626054401 626313601 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 :                                   825.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            943 sec.

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

