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


Performing analysis on: 4FGL_J0348.6-1609_daily_bin1264
RA = 57.1532, Dec = -16.1654
tmin = 566956801, tmax = 567216001
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='996405', job_status='RUN', time_executed='2021-08-19 13:58:19.662055', time_epoch_executed='1629406699.66' WHERE source_name='4FGL J0348.6-1609' and cadence='daily' and bin_id='1264'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/996405

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/996405/ft1_4FGL_J0348.6-1609_daily_bin1264.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/996405/ft2_4FGL_J0348.6-1609_daily_bin1264.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/996405/ft1_4FGL_J0348.6-1609_daily_bin1264.fits outfile=/scratch/kocevski/996405/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin1264.fits ra=57.1532 dec=-16.1654 rad=12.0 tmin=566956801.0 tmax=567216001.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 8.34
user 2.27
sys 5.95

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/996405/ft1_filtered_4FGL_J0348.6-1609_daily_bin1264.fits" evtable="EVENTS" scfile=/scratch/kocevski/996405/ft2_4FGL_J0348.6-1609_daily_bin1264.fits sctable="SC_DATA" outfile=/scratch/kocevski/996405/ltcube_566956801_567216001_4FGL_J0348.6-1609_daily_bin1264.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/996405/ft2_4FGL_J0348.6-1609_daily_bin1264.fits
.....................!
real 19.69
user 13.45
sys 6.15

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/996405/ft1_filtered_4FGL_J0348.6-1609_daily_bin1264.fits evtable="EVENTS" scfile=/scratch/kocevski/996405/ft2_4FGL_J0348.6-1609_daily_bin1264.fits sctable="SC_DATA" expcube=/scratch/kocevski/996405/ltcube_566956801_567216001_4FGL_J0348.6-1609_daily_bin1264.fits outfile=/scratch/kocevski/996405/expmap_566956801_567216001_4FGL_J0348.6-1609_daily_bin1264.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/996405/ltcube_566956801_567216001_4FGL_J0348.6-1609_daily_bin1264.fits
.....................!
real 197.69
user 185.31
sys 11.73

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/996405/ft1_filtered_4FGL_J0348.6-1609_daily_bin1264.fits scfile=/scratch/kocevski/996405/ft2_4FGL_J0348.6-1609_daily_bin1264.fits outfile=/scratch/kocevski/996405/cmap_566956801_567216001_4FGL_J0348.6-1609_daily_bin1264.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.60
user 0.38
sys 5.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/996405/ft1_filtered_4FGL_J0348.6-1609_daily_bin1264.fits scfile=/scratch/kocevski/996405/ft2_4FGL_J0348.6-1609_daily_bin1264.fits outfile=/scratch/kocevski/996405/cmap_HighResolution_566956801_567216001_4FGL_J0348.6-1609_daily_bin1264.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.66
user 0.38
sys 5.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/996405/ft1_filtered_4FGL_J0348.6-1609_daily_bin1264.fits evtable="EVENTS" scfile=/scratch/kocevski/996405/ft2_4FGL_J0348.6-1609_daily_bin1264.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/996405/Model_4FGL_J0348.6-1609_daily_bin1264.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/996405/ft1_filtered_4FGL_J0348.6-1609_daily_bin1264.fits.....................!
real 152.63
user 142.85
sys 9.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11053E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.272       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .59361       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .31183       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.0995       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10562E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0655       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15766E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    22.155       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .87613E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.1018       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.456       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11023E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1935       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10490E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1128       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88247       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=   6294.150     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2646 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.942        .90712E-02** at limit **
   2  Prefactor     13.275        12.827        .27487E-02   -.40818E-04
   3  Prefactor     .59527        2.9399        .73602E-01   -.46534E-04
   4  Prefactor     .10014E-03    163.50        .90712E-02** at limit **
   5  Prefactor     .30952        2.4322        .42232E-01    .92905E-03
   6  Prefactor     .10000E-03    4.9497        .90712E-02** at limit **
   7  Prefactor     1.0820        30.824        .11337E-01    .62089E-03
   8  Prefactor     .10001E-03    43.867        .90712E-02** at limit **
   9  Prefactor     1.0647        1.8746        .11814E-01    .26255E-03
  10  Prefactor     .10000E-03    3.5731        .44470E-01** at limit **
  11  Prefactor     .10000E-03    2.5249        .90712E-02** at limit **
  12  norm          22.153        2.6034        .21274E-02   -.17826E-02
  13  Prefactor     .11204E-03    48.166        .12835    ** at limit **
  14  norm          1.1023        1.3580        .11308E-01    .44072E-03
  15  Prefactor     22.457        35.163        .21131E-02   -.37326E-04
  16  Prefactor     .10000E-03    1.8642        .36741E-01** at limit **
  17  norm          .10000E-03    3.2454        .90712E-02** at limit **
  18  Prefactor     .10000E-03    13.189        .90712E-02** at limit **
  19  Prefactor     .10000E-03    5.0953        .90712E-02** at limit **
  20  Prefactor     1.1953        4.1251        .10413E-01    .10713E-02
  21  Prefactor     .10000E-03    30.258        .90712E-02** at limit **
  22  Normalizat    1.1129        .19626        .61835E-01   -.17525E-05
  23  Prefactor     .88254        .14427        .44781E-01   -.21107E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.2748
  Prefactor  = 0.595266
  Prefactor  = 0.00010014
  Prefactor  = 0.309516
  Prefactor  = 0.0001
  Prefactor  = 1.08195
  Prefactor  = 0.000100006
  Prefactor  = 1.06467
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.1533
  Prefactor  = 0.000112038
  norm       = 1.1023
  Prefactor  = 22.4575
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.19531
  Prefactor  = 0.000100001
  Normalizat = 1.11287
  Prefactor  = 0.882536
 **********
 **   18 **HESSE 
 **********

 FCN=   6294.150     FROM HESSE     STATUS=OK           376 CALLS     3022 TOTAL
                     EDM=   .80E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.275        12.825        .10995E-03   -1.4979    
   3  Prefactor     .59527        11.279        .25460E-02   -1.5554    
   4  Prefactor     .10014E-03    163.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .30952        5.1457        .23825E-02   -1.5597    
   6  Prefactor     .10000E-03    4.9560        .17235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.0820        31.366        .45350E-03   -1.5500    
   8  Prefactor     .10001E-03    43.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.0647        1.8041        .13459E-03   -1.5502    
  10  Prefactor     .10000E-03    6.8978        .27951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.6230        .24562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          22.153        2.5404        .40967E-04   -1.4766    
  13  Prefactor     .11204E-03    284.03        .86201E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1023        1.2992        .94566E-04   -1.5498    
  15  Prefactor     22.457        29.749        .84526E-04   -1.4760    
  16  Prefactor     .10000E-03    3.4493        .20517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.2463        .13958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.1329        .17484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.1953        4.0768        .28013E-03   -1.5489    
  21  Prefactor     .10000E-03    30.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1129        .22384        .27349E-03   -.89340    
  23  Prefactor     .88254        .16792        .23631E-03   -.96754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.99368e-08
Minuit parameter uncertainties:
  1  6.96285e-05
  2  12.8279
  3  5.18292
  4  0.00960103
  5  2.52388
  6  3.68279e-05
  7  11.6572
  8  0.00102279
  9  1.80417
  10  8.62584e-05
  11  2.20761e-05
  12  2.54046
  13  0.117507
  14  1.29922
  15  29.7683
  16  3.65396e-05
  17  6.76094e-05
  18  0.000189516
  19  3.35268e-05
  20  4.07775
  21  0.000351091
  22  0.224028
  23  0.168018
Done.

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

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.120e-04  1.175e-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:  8.825e-01  1.680e-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.113e+00  2.240e-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.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/996405/likelihoodResults_566956801_567216001_4FGL_J0348.6-1609_daily_bin1264.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) = 6294.14983254
delta logL = -1.62770575116e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6294.14983253
delta logL = -1.62729811564e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96364E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3715       1.0000          .0000       10.000    
     3 'Normalizat'    1.1129       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88254       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=   6293.365     FROM MIGRAD    STATUS=CONVERGED    133 CALLS      284 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39054E-02    .55700E-01    .90712E-03    .58907E-02
   2  Index         7.3009        2.5497        .16898        .73608E-04
   3  Normalizat    1.0349        .42154E-01    .63783E-01   -.12003E-03
   4  Prefactor     .92047        .33018E-01    .44782E-01   -.24399E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00390541
  Index      = 7.30093
  Normalizat = 1.03491
  Prefactor  = 0.920471
 **********
 **   18 **HESSE 
 **********

 FCN=   6293.365     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      317 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .39054E-02    .17351        .46203E-04   -1.5696    
   2  Index         7.3009        8.1457        .59887E-02    .47821    
   3  Normalizat    1.0349        .16273        .28215E-03   -.91870    
   4  Prefactor     .92047        .12518        .23194E-03   -.95429    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.88933e-11
Minuit parameter uncertainties:
  1  0.0513921
  2  6.22495
  3  0.162811
  4  0.12522
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/996405': 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) = 6293.36503323
delta logL = 0.784783027341

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  3.905e-03  5.139e-02  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  7.301e+00  6.225e+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:  9.205e-01  1.252e-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.035e+00  1.628e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.67
Ra Dec: 57.153 -16.165
Photon Index (Free Index): 7.30 +/- 6.22
Photon Flux (Free Index): 7.36e-08 +/- 6.61e-08
Energy Flux (Free Index): 8.71e-06 +/- 8.43e-06

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/996405/cmap_HighResolution_566956801_567216001_4FGL_J0348.6-1609_daily_bin1264.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.85e-03', comment='SUCCESS', energy_flux2='8.71e-06', dlogl='7.85e-01', photon_flux2='7.36e-08', job_status='DONE', time_completed='2021-08-19 14:11:53.337173', photon_index_error2='6.22', photon_index2='7.30', ts='-0.00', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='8.43e-06', EG='1.11', time_epoch_completed='1629407513.34', return_code='0', job_id='996405', GAL2='0.92', EG2='1.03', return_code2='102', photon_flux_error2='6.61e-08', ts2='1.67', photon_index='2.37' WHERE bin_id='1264' AND source_name='4FGL J0348.6-1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 14:11:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 996405: <4FGL_J0348.6-1609_daily_bin1264> in cluster <slac> Done

Job <4FGL_J0348.6-1609_daily_bin1264> 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) <bullet0066>, 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:11:54 2021
Results reported at Thu Aug 19 14:11:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.6-1609_daily_bin1264 57.1532 -16.1654 566956801 567216001 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 :                                   875.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            969 sec.

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

