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


Performing analysis on: 4FGL_J0348.6-1609_daily_bin1271
RA = 57.1532, Dec = -16.1654
tmin = 568771201, tmax = 569030401
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='996417', job_status='RUN', time_executed='2021-08-19 13:57:34.282620', time_epoch_executed='1629406654.28' WHERE source_name='4FGL J0348.6-1609' and cadence='daily' and bin_id='1271'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/996417

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/996417/ft1_4FGL_J0348.6-1609_daily_bin1271.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/996417/ft2_4FGL_J0348.6-1609_daily_bin1271.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/996417/ft1_4FGL_J0348.6-1609_daily_bin1271.fits outfile=/scratch/kocevski/996417/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin1271.fits ra=57.1532 dec=-16.1654 rad=12.0 tmin=568771201.0 tmax=569030401.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 5.03
user 3.32
sys 1.68

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/996417/ft1_filtered_4FGL_J0348.6-1609_daily_bin1271.fits" evtable="EVENTS" scfile=/scratch/kocevski/996417/ft2_4FGL_J0348.6-1609_daily_bin1271.fits sctable="SC_DATA" outfile=/scratch/kocevski/996417/ltcube_568771201_569030401_4FGL_J0348.6-1609_daily_bin1271.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/996417/ft2_4FGL_J0348.6-1609_daily_bin1271.fits
.....................!
real 13.77
user 11.90
sys 1.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/996417/ft1_filtered_4FGL_J0348.6-1609_daily_bin1271.fits evtable="EVENTS" scfile=/scratch/kocevski/996417/ft2_4FGL_J0348.6-1609_daily_bin1271.fits sctable="SC_DATA" expcube=/scratch/kocevski/996417/ltcube_568771201_569030401_4FGL_J0348.6-1609_daily_bin1271.fits outfile=/scratch/kocevski/996417/expmap_568771201_569030401_4FGL_J0348.6-1609_daily_bin1271.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/996417/ltcube_568771201_569030401_4FGL_J0348.6-1609_daily_bin1271.fits
.....................!
real 192.85
user 185.27
sys 7.23

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/996417/ft1_filtered_4FGL_J0348.6-1609_daily_bin1271.fits scfile=/scratch/kocevski/996417/ft2_4FGL_J0348.6-1609_daily_bin1271.fits outfile=/scratch/kocevski/996417/cmap_568771201_569030401_4FGL_J0348.6-1609_daily_bin1271.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.96
user 0.37
sys 1.58

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/996417/ft1_filtered_4FGL_J0348.6-1609_daily_bin1271.fits scfile=/scratch/kocevski/996417/ft2_4FGL_J0348.6-1609_daily_bin1271.fits outfile=/scratch/kocevski/996417/cmap_HighResolution_568771201_569030401_4FGL_J0348.6-1609_daily_bin1271.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.97
user 0.37
sys 1.59

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.454       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10463E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.814       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    120.02       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4145       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.742       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .84460       1.0000         .10000E-03   10000.    
    15 'Prefactor '    47.927       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10578E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.8748       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3581       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .95960       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96522       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=   5598.929     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2568 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.355        116.30       -.21931E-03    .22771E-04
   2  Prefactor     .10000E-03    9.3209       -.24120E-05** at limit **
   3  Prefactor     .10000E-03    1.4890       -.87560E-07** at limit **
   4  Prefactor     .10000E-03    180.21        .79416E-05** at limit **
   5  Prefactor     .10000E-03    1.6851       -.14939E-06** at limit **
   6  Prefactor     23.809        19.958        .62049E-05    .60635E-04
   7  Prefactor     .10000E-03    7.2940        .54141E-06** at limit **
   8  Prefactor     120.00        62.010       -.12771E-04    .21299E-04
   9  Prefactor     .10000E-03    .79343       -.10720E-06** at limit **
  10  Prefactor     2.4151        4.5778       -.14220E-05   -.58385E-03
  11  Prefactor     .10000E-03    1.7146       -.15219E-06** at limit **
  12  norm          10.742        2.2120       -.47924E-07    .31058E-03
  13  Prefactor     .10000E-03    24.644        .10201E-06** at limit **
  14  norm          .84303        1.0782       -.22913E-06   -.73017E-03
  15  Prefactor     47.914        30.133       -.64769E-06    .58764E-04
  16  Prefactor     .10000E-03    1.4505       -.28107E-06** at limit **
  17  norm          .10000E-03    13.057       -.34525E-06** at limit **
  18  Prefactor     .10000E-03    6.7856       -.30697E-06** at limit **
  19  Prefactor     6.8752        6.8574       -.60227E-06   -.28628E-04
  20  Prefactor     1.3595        3.8826       -.22961E-05   -.98638E-03
  21  Prefactor     .10000E-03    9.6388        .38219E-05** at limit **
  22  Normalizat    .95943        .20415        .53559E-05    .11303E-03
  23  Prefactor     .96537        .15009        .16795E-05    .20959E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.3554
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.8094
  Prefactor  = 0.0001
  Prefactor  = 120.002
  Prefactor  = 0.0001
  Prefactor  = 2.41508
  Prefactor  = 0.0001
  norm       = 10.7419
  Prefactor  = 0.0001
  norm       = 0.843027
  Prefactor  = 47.9145
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.87516
  Prefactor  = 1.35953
  Prefactor  = 0.0001
  Normalizat = 0.959431
  Prefactor  = 0.965367
 **********
 **   18 **HESSE 
 **********

 FCN=   5598.929     FROM HESSE     STATUS=OK           368 CALLS     2936 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.355        116.65        .10920E-03   -1.4977    
   2  Prefactor     .10000E-03    9.3265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.4914        .89164E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    180.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.6877        .94828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     23.809        19.973        .82084E-04   -1.4732    
   7  Prefactor     .10000E-03    7.3186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     120.00        62.006        .18366E-03   -1.3513    
   9  Prefactor     .10000E-03    .79808        .65049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4151        4.5542        .20398E-03   -1.5397    
  11  Prefactor     .10000E-03    1.7298        .95567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.742        2.2084        .47305E-04   -1.5052    
  13  Prefactor     .10000E-03    24.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .84303        .96079        .84601E-03   -1.5524    
  15  Prefactor     47.914        30.153        .57921E-04   -1.4322    
  16  Prefactor     .10000E-03    4.2134        .17468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    13.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.7891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.8752        6.8567        .15302E-03   -1.5183    
  20  Prefactor     1.3595        3.8643        .23527E-03   -1.5475    
  21  Prefactor     .10000E-03    9.6540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .95943        .23382        .28203E-03   -.94402    
  23  Prefactor     .96537        .17264        .21749E-03   -.93893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13941e-09
Minuit parameter uncertainties:
  1  79.1469
  2  0.000427195
  3  1.66804e-06
  4  0.000206366
  5  6.13156e-06
  6  19.9785
  7  3.3993e-05
  8  62.0394
  9  2.28135e-06
  10  4.55488
  11  2.75155e-06
  12  2.20845
  13  5.05292e-05
  14  0.96081
  15  30.1623
  16  2.18748e-05
  17  4.5251e-05
  18  1.02154e-05
  19  6.85746
  20  3.86499
  21  2.53894e-05
  22  0.23407
  23  0.172739
Done.

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

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  5.053e-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:  9.654e-01  1.727e-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:  9.594e-01  2.341e-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.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/996417/likelihoodResults_568771201_569030401_4FGL_J0348.6-1609_daily_bin1271.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) = 5598.92966435
delta logL = -0.00019303944373

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5598.91385137
delta logL = 0.0156199386565

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57341       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9730       1.0000          .0000       10.000    
     3 'Normalizat'    .94745       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97001       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=   5598.914     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      323 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57461        8.5489        .36525E-01    .77500E-03
   2  Index         3.9722        .55062        .50000       -.19059E-05
   3  Normalizat    .94744        .10016E-01    .45505E-01    .24502E-04
   4  Prefactor     .97005        .77868E-02    .45891E-01   -.55769E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.574614
  Index      = 3.97216
  Normalizat = 0.947439
  Prefactor  = 0.970052
 **********
 **   18 **HESSE 
 **********

 FCN=   5598.914     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      358 TOTAL
                     EDM=   .39E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57461        801.14        .21645E-02   -1.5556    
   2  Index         3.9722        6.2567        .41732E-02   -.20704    
   3  Normalizat    .94744        .17238        .28351E-03   -.94813    
   4  Prefactor     .97005        .11337        .21698E-03   -.93735    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.90613e-06
Minuit parameter uncertainties:
  1  43.5035
  2  33.5828
  3  0.172483
  4  0.113394
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/996417': 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) = 5598.91385127
delta logL = 0.0156200371739

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  5.746e-01  4.350e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  3.972e+00  3.358e+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:  9.701e-01  1.134e-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:  9.474e-01  1.725e-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/996417/cmap_HighResolution_568771201_569030401_4FGL_J0348.6-1609_daily_bin1271.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.77e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-08-19 14:09:10.692258', job_id='996417', GAL2='0.97', fit_tolerance='1e-08', EG2='0.95', EG='0.96', time_epoch_completed='1629407350.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.56e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1271' AND source_name='4FGL J0348.6-1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 14:09:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 996417: <4FGL_J0348.6-1609_daily_bin1271> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.6-1609_daily_bin1271 57.1532 -16.1654 568771201 569030401 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 :                                   710.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            805 sec.

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

