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


Performing analysis on: 4FGL_J0348.6-1609_daily_bin1355
RA = 57.1532, Dec = -16.1654
tmin = 590544001, tmax = 590803201
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='996549', job_status='RUN', time_executed='2021-08-19 13:56:49.549458', time_epoch_executed='1629406609.55' WHERE source_name='4FGL J0348.6-1609' and cadence='daily' and bin_id='1355'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/996549

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/996549/ft1_4FGL_J0348.6-1609_daily_bin1355.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/996549/ft2_4FGL_J0348.6-1609_daily_bin1355.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/996549/ft1_4FGL_J0348.6-1609_daily_bin1355.fits outfile=/scratch/kocevski/996549/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin1355.fits ra=57.1532 dec=-16.1654 rad=12.0 tmin=590544001.0 tmax=590803201.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.98
user 4.02
sys 0.93

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/996549/ft1_filtered_4FGL_J0348.6-1609_daily_bin1355.fits" evtable="EVENTS" scfile=/scratch/kocevski/996549/ft2_4FGL_J0348.6-1609_daily_bin1355.fits sctable="SC_DATA" outfile=/scratch/kocevski/996549/ltcube_590544001_590803201_4FGL_J0348.6-1609_daily_bin1355.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/996549/ft2_4FGL_J0348.6-1609_daily_bin1355.fits
.....................!
real 12.78
user 11.61
sys 1.13

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/996549/ft1_filtered_4FGL_J0348.6-1609_daily_bin1355.fits evtable="EVENTS" scfile=/scratch/kocevski/996549/ft2_4FGL_J0348.6-1609_daily_bin1355.fits sctable="SC_DATA" expcube=/scratch/kocevski/996549/ltcube_590544001_590803201_4FGL_J0348.6-1609_daily_bin1355.fits outfile=/scratch/kocevski/996549/expmap_590544001_590803201_4FGL_J0348.6-1609_daily_bin1355.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/996549/ltcube_590544001_590803201_4FGL_J0348.6-1609_daily_bin1355.fits
.....................!
real 192.47
user 185.54
sys 6.59

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 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/996549/ft1_filtered_4FGL_J0348.6-1609_daily_bin1355.fits scfile=/scratch/kocevski/996549/ft2_4FGL_J0348.6-1609_daily_bin1355.fits outfile=/scratch/kocevski/996549/cmap_590544001_590803201_4FGL_J0348.6-1609_daily_bin1355.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.23
user 0.37
sys 0.85

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/996549/ft1_filtered_4FGL_J0348.6-1609_daily_bin1355.fits scfile=/scratch/kocevski/996549/ft2_4FGL_J0348.6-1609_daily_bin1355.fits outfile=/scratch/kocevski/996549/cmap_HighResolution_590544001_590803201_4FGL_J0348.6-1609_daily_bin1355.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.23
user 0.38
sys 0.85

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/996549/ft1_filtered_4FGL_J0348.6-1609_daily_bin1355.fits evtable="EVENTS" scfile=/scratch/kocevski/996549/ft2_4FGL_J0348.6-1609_daily_bin1355.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/996549/Model_4FGL_J0348.6-1609_daily_bin1355.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/996549/ft1_filtered_4FGL_J0348.6-1609_daily_bin1355.fits.....................!
real 131.74
user 129.29
sys 2.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.793       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10727E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.9943       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.841       1.0000         .10000E-03   10000.    
     8 'Prefactor '    46.551       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2059       1.0000         .10000E-03   10000.    
    12 'norm      '    48.501       1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.177       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4304       1.0000         .10000E-03   10000.    
    15 'Prefactor '    86.185       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3458       1.0000         .10000E-03   10000.    
    17 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10470E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.4250       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5272       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .75231       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0084       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=   5708.279     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2619 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.640        95.522       -.15631E-05   -.39561E-04
   2  Prefactor     .10000E-03    8.4031       -.19725E-05** at limit **
   3  Prefactor     7.9959        7.5408        .86311E-07   -.47350E-05
   4  Prefactor     .10000E-03    74.329        .63108E-07** at limit **
   5  Prefactor     .10000E-03    1.8590       -.13979E-07** at limit **
   6  Prefactor     .10000E-03    10.028       -.48258E-07** at limit **
   7  Prefactor     16.837        16.222        .46525E-07   -.49720E-05
   8  Prefactor     46.545        52.953        .12365E-06   -.14282E-04
   9  Prefactor     .10000E-03    1.5217        .16333E-06** at limit **
  10  Prefactor     .10000E-03    5.4997        .13274E-06** at limit **
  11  Prefactor     4.2055        4.4338        .89996E-08   -.43651E-04
  12  norm          48.501        4.6448       -.36045E-07   -.68543E-04
  13  Prefactor     29.159        37.152        .54998E-07   -.28545E-04
  14  norm          1.4302        1.3828       -.17658E-07   -.12118E-03
  15  Prefactor     86.182        39.985       -.31470E-06   -.19862E-04
  16  Prefactor     1.3452        2.1721        .66554E-07   -.78174E-04
  17  norm          .10000E-03    11.607        .60360E-07** at limit **
  18  Prefactor     .10000E-03    14.108        .14911E-06** at limit **
  19  Prefactor     .10000E-03    5.6176        .41342E-06** at limit **
  20  Prefactor     7.4251        5.1275        .16928E-05   -.56975E-04
  21  Prefactor     2.5231        52.669       -.87137E-06   -.91156E-05
  22  Normalizat    .75235        .23909        .23978E-05   -.86877E-04
  23  Prefactor     1.0084        .17296       -.22718E-05    .78656E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.6403
  Prefactor  = 0.0001
  Prefactor  = 7.99585
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.8374
  Prefactor  = 46.5446
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.20548
  norm       = 48.5008
  Prefactor  = 29.1588
  norm       = 1.43024
  Prefactor  = 86.1824
  Prefactor  = 1.34521
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.42511
  Prefactor  = 2.52313
  Normalizat = 0.752348
  Prefactor  = 1.0084
 **********
 **   18 **HESSE 
 **********

 FCN=   5708.279     FROM HESSE     STATUS=OK           370 CALLS     2989 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.640        95.949        .33493E-03   -1.4513    
   2  Prefactor     .10000E-03    8.4138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.9959        7.5427        .14181E-03   -1.5142    
   4  Prefactor     .10000E-03    74.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.8653        .10059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.837        16.223        .97597E-04   -1.4887    
   8  Prefactor     46.545        52.942        .58767E-04   -1.4342    
   9  Prefactor     .10000E-03    3.2688        .17948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.5810        .17268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.2055        4.4119        .15625E-03   -1.5298    
  12  norm          48.501        4.6441        .48429E-04   -1.4314    
  13  Prefactor     29.159        37.128        .74172E-04   -1.4627    
  14  norm          1.4302        1.3674        .83402E-04   -1.5469    
  15  Prefactor     86.182        40.017        .43275E-04   -1.3849    
  16  Prefactor     1.3452        2.1302        .13602E-03   -1.5476    
  17  norm          .10000E-03    11.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.6820        .17479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.4251        5.2416        .68482E-03   -1.5163    
  21  Prefactor     2.5231        52.948        .25695E-03   -1.5390    
  22  Normalizat    .75235        .27204        .34574E-03   -1.0186    
  23  Prefactor     1.0084        .19587        .23177E-03   -.92450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24046e-10
Minuit parameter uncertainties:
  1  96.3682
  2  8.09246e-06
  3  7.54362
  4  1.8277e-05
  5  9.32111e-07
  6  5.71461e-06
  7  16.2269
  8  52.9955
  9  2.96638e-05
  10  3.90836e-06
  11  4.41227
  12  4.64418
  13  37.1578
  14  1.36747
  15  40.0297
  16  2.13031
  17  1.53271e-06
  18  6.66821e-06
  19  7.08435e-07
  20  5.24188
  21  23.1395
  22  0.272533
  23  0.196007
Done.

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

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  2.916e+01  3.716e+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.008e+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:  7.523e-01  2.725e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.02
Ra Dec: 57.153 -16.165
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 4.20e-08 +/- 5.35e-08
Energy Flux (Fixed Index): 1.43e-05 +/- 1.82e-05

TS (Fixed Index): 1.02
Ra Dec: 57.153 -16.165
Photon Flux Upper Limit: 1.55e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/996549/likelihoodResults_590544001_590803201_4FGL_J0348.6-1609_daily_bin1355.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) = 5708.26416235
delta logL = 0.0150443642196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5708.26057344
delta logL = 0.018633270568

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.234       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2294       1.0000          .0000       10.000    
     3 'Normalizat'    .75726       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0058       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=   5708.261     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      257 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.230        39.780        .70576E-04    .53757E-03
   2  Index         2.2295        .72543        .84809E-02    .28821E-03
   3  Normalizat    .75726        .25153        .34472E-03   -.24612E-03
   4  Prefactor     1.0058        .19353        .23203E-03   -.43854E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.2298
  Index      = 2.22951
  Normalizat = 0.757255
  Prefactor  = 1.00583
 **********
 **   18 **HESSE 
 **********

 FCN=   5708.261     FROM HESSE     STATUS=OK            23 CALLS      280 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.230        39.212        .14115E-04   -1.4572    
   2  Index         2.2295        .71494        .33924E-03   -.58728    
   3  Normalizat    .75726        .25168        .13789E-04   -1.0167    
   4  Prefactor     1.0058        .19365        .46407E-04   -.92536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14406e-09
Minuit parameter uncertainties:
  1  39.2434
  2  0.718508
  3  0.252067
  4  0.193787
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/996549': 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) = 5708.26057343
delta logL = 0.0186332857566

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  3.223e+01  3.924e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.230e+00  7.185e-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.006e+00  1.938e-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:  7.573e-01  2.521e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.07
Ra Dec: 57.153 -16.165
Photon Index (Free Index): 2.23 +/- 0.72
Photon Flux (Free Index): 3.78e-08 +/- 5.06e-08
Energy Flux (Free Index): 1.61e-05 +/- 2.11e-05

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/996549/cmap_HighResolution_590544001_590803201_4FGL_J0348.6-1609_daily_bin1355.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', photon_flux='4.20e-08', energy_flux2='1.61e-05', photon_flux_error='5.35e-08', dlogl='1.86e-02', energy_flux='1.43e-05', photon_flux2='3.78e-08', job_status='DONE', time_completed='2021-08-19 14:08:34.946063', photon_index_error2='0.72', photon_index2='2.23', ts='1.02', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.55e-07', energy_flux_error2='2.11e-05', EG='0.75', time_epoch_completed='1629407314.95', return_code='0', job_id='996549', GAL2='1.01', EG2='0.76', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='5.06e-08', ts2='1.07', photon_index='2.37' WHERE bin_id='1355' AND source_name='4FGL J0348.6-1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 14:08:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 996549: <4FGL_J0348.6-1609_daily_bin1355> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.6-1609_daily_bin1355 57.1532 -16.1654 590544001 590803201 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 :                                   712.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             367.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            759 sec.

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

