/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 54 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7367
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0348.6-1609_daily_bin1607
RA = 57.1532, Dec = -16.1654
tmin = 655862401, tmax = 656121601
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='177891', job_status='RUN', time_executed='2021-12-07 14:17:33.126433', time_epoch_executed='1638915453.13' WHERE source_name='4FGL J0348.6-1609' and cadence='daily' and bin_id='1607'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/177891

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/177891/ft1_4FGL_J0348.6-1609_daily_bin1607.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/177891/ft2_4FGL_J0348.6-1609_daily_bin1607.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/177891/ft1_4FGL_J0348.6-1609_daily_bin1607.fits outfile=/scratch/kocevski/177891/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin1607.fits ra=57.1532 dec=-16.1654 rad=12.0 tmin=655862401.0 tmax=656121601.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.57
user 4.33
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/177891/ft1_filtered_4FGL_J0348.6-1609_daily_bin1607.fits" evtable="EVENTS" scfile=/scratch/kocevski/177891/ft2_4FGL_J0348.6-1609_daily_bin1607.fits sctable="SC_DATA" outfile=/scratch/kocevski/177891/ltcube_655862401_656121601_4FGL_J0348.6-1609_daily_bin1607.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/177891/ft2_4FGL_J0348.6-1609_daily_bin1607.fits
.....................!
real 13.33
user 12.97
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/177891/ft1_filtered_4FGL_J0348.6-1609_daily_bin1607.fits evtable="EVENTS" scfile=/scratch/kocevski/177891/ft2_4FGL_J0348.6-1609_daily_bin1607.fits sctable="SC_DATA" expcube=/scratch/kocevski/177891/ltcube_655862401_656121601_4FGL_J0348.6-1609_daily_bin1607.fits outfile=/scratch/kocevski/177891/expmap_655862401_656121601_4FGL_J0348.6-1609_daily_bin1607.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/177891/ltcube_655862401_656121601_4FGL_J0348.6-1609_daily_bin1607.fits
.....................!
real 192.92
user 186.93
sys 5.58

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/177891/ft1_filtered_4FGL_J0348.6-1609_daily_bin1607.fits scfile=/scratch/kocevski/177891/ft2_4FGL_J0348.6-1609_daily_bin1607.fits outfile=/scratch/kocevski/177891/cmap_655862401_656121601_4FGL_J0348.6-1609_daily_bin1607.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 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/177891/ft1_filtered_4FGL_J0348.6-1609_daily_bin1607.fits scfile=/scratch/kocevski/177891/ft2_4FGL_J0348.6-1609_daily_bin1607.fits outfile=/scratch/kocevski/177891/cmap_HighResolution_655862401_656121601_4FGL_J0348.6-1609_daily_bin1607.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 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/177891/ft1_filtered_4FGL_J0348.6-1609_daily_bin1607.fits evtable="EVENTS" scfile=/scratch/kocevski/177891/ft2_4FGL_J0348.6-1609_daily_bin1607.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/177891/Model_4FGL_J0348.6-1609_daily_bin1607.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/177891/ft1_filtered_4FGL_J0348.6-1609_daily_bin1607.fits.....................!
real 135.34
user 133.79
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0559       1.0000         .10000E-03   10000.    
     4 'Prefactor '    78.235       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    39.898       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .30862       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.9262       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.1061       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.036       1.0000         .10000E-03   10000.    
    17 'norm      '    7.1148       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.748       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.0840       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.1309       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .70934       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1547       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=   5827.121     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2542 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    147.15       -.69454E-06** at limit **
   2  Prefactor     .10000E-03    6.5613       -.38205E-05** at limit **
   3  Prefactor     2.0559        4.5915        .20886E-05   -.54449E-03
   4  Prefactor     78.352        164.43        .12774E-03    .27706E-05
   5  Prefactor     .10000E-03    1.0689        .45817E-07** at limit **
   6  Prefactor     .10000E-03    11.044       -.96258E-06** at limit **
   7  Prefactor     .10000E-03    3.2789       -.12797E-07** at limit **
   8  Prefactor     39.888        38.984       -.70674E-05   -.15264E-05
   9  Prefactor     .10000E-03    .79636       -.57929E-07** at limit **
  10  Prefactor     .32169        2.5323       -.10089E-05    .48262E-03
  11  Prefactor     .10000E-03    2.7731        .67164E-07** at limit **
  12  norm          7.9255        1.8621        .63184E-07    .96545E-03
  13  Prefactor     .10000E-03    6.4418        .29519E-05** at limit **
  14  norm          1.1059        1.5763       -.69309E-07   -.73772E-03
  15  Prefactor     .10000E-03    7.3894        .11540E-05** at limit **
  16  Prefactor     12.037        4.2442        .48966E-07   -.16863E-03
  17  norm          7.1124        11.854        .61245E-05   -.41372E-04
  18  Prefactor     16.748        18.852        .56431E-06    .86584E-05
  19  Prefactor     2.0844        5.7950       -.94260E-06   -.67312E-03
  20  Prefactor     .10000E-03    1.8155        .43858E-06** at limit **
  21  Prefactor     7.1312        14.869       -.19217E-05   -.57352E-04
  22  Normalizat    .70901        .19740       -.34835E-05    .79586E-04
  23  Prefactor     1.1549        .15051        .22692E-07   -.49369E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.05592
  Prefactor  = 78.3516
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.888
  Prefactor  = 0.0001
  Prefactor  = 0.321689
  Prefactor  = 0.0001
  norm       = 7.92553
  Prefactor  = 0.0001
  norm       = 1.10594
  Prefactor  = 0.0001
  Prefactor  = 12.0373
  norm       = 7.11239
  Prefactor  = 16.7481
  Prefactor  = 2.08442
  Prefactor  = 0.0001
  Prefactor  = 7.13123
  Normalizat = 0.709012
  Prefactor  = 1.15491
 **********
 **   18 **HESSE 
 **********

 FCN=   5827.121     FROM HESSE     STATUS=OK           370 CALLS     2912 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    147.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.5650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.0559        4.5527        .23395E-03   -1.5421    
   4  Prefactor     78.352        164.10        .22701E-03   -1.3935    
   5  Prefactor     .10000E-03    1.0699        .77072E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.2825        .13499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     39.888        38.979        .63458E-04   -1.4444    
   9  Prefactor     .10000E-03    .80142        .66433E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .32169        17.220        .21766E-02   -1.5595    
  11  Prefactor     .10000E-03    2.8202        .24699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.9255        1.8711        .46880E-04   -1.5145    
  13  Prefactor     .10000E-03    6.4456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1059        1.5247        .10371E-03   -1.5498    
  15  Prefactor     .10000E-03    7.3993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.037        4.1919        .84405E-04   -1.5014    
  17  norm          7.1124        11.834        .15039E-03   -1.5175    
  18  Prefactor     16.748        18.834        .97867E-04   -1.4889    
  19  Prefactor     2.0844        5.7818        .28603E-03   -1.5419    
  20  Prefactor     .10000E-03    10.662        .19614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.1312        14.860        .15022E-03   -1.5174    
  22  Normalizat    .70901        .22339        .30977E-03   -1.0354    
  23  Prefactor     1.1549        .17228        .19999E-03   -.87730    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99624e-09
Minuit parameter uncertainties:
  1  8.26774e-05
  2  1.75044e-06
  3  4.55344
  4  165.058
  5  1.36756e-06
  6  8.12825e-05
  7  2.39171e-06
  8  39.0043
  9  1.45698e-06
  10  4.70798
  11  1.69679e-05
  12  1.87114
  13  1.03607e-05
  14  1.52473
  15  1.40716e-05
  16  4.19202
  17  11.8382
  18  18.8409
  19  5.78335
  20  0.000143014
  21  14.8677
  22  0.223673
  23  0.172362
Done.

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

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  1.036e-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.155e+00  1.724e-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.090e-01  2.237e-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: 4.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/177891/likelihoodResults_655862401_656121601_4FGL_J0348.6-1609_daily_bin1607.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) = 5827.12199993
delta logL = -0.000733993531867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5827.12126586
delta logL = 7.23093762645e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3529       1.0000          .0000       10.000    
     3 'Normalizat'    .70899       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1549       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=   5827.121     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      255 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.999        .18142E-01** at limit **
   2  Index         1.8292        7.4628        .50000        .19293E-06
   3  Normalizat    .70901        .83084E-02    .30977E-03   -.62627E-03
   4  Prefactor     1.1549        .67404E-02    .19999E-03   -.97218E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.82924
  Normalizat = 0.709009
  Prefactor  = 1.15491
 **********
 **   18 **HESSE 
 **********

 FCN=   5827.121     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    223.76        .21258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8292        8.3020        .50000       -.68691    
   3  Normalizat    .70901        .25605E-01    .61954E-04   -1.0354    
   4  Prefactor     1.1549        .20773E-01    .39999E-04   -.87730    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.44862e-09
Minuit parameter uncertainties:
  1  9.76455e-05
  2  862.604
  3  0.0256055
  4  0.0207731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/177891': 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) = 5827.12126432
delta logL = 1.60962827067e-06

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  9.765e-05  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  1.829e+00  8.626e+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.155e+00  2.077e-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:  7.090e-01  2.561e-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/177891/cmap_HighResolution_655862401_656121601_4FGL_J0348.6-1609_daily_bin1607.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.85e-03', job_status='DONE', photon_flux_upper_limit='4.99e-08', time_completed='2021-12-07 14:29:12.039590', job_id='177891', GAL2='1.15', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1638916152.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.61e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1607' AND source_name='4FGL J0348.6-1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 14:29:12 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 177891: <4FGL_J0348.6-1609_daily_bin1607> in cluster <slac> Done

Job <4FGL_J0348.6-1609_daily_bin1607> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec  7 14:15:20 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 14:16:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 14:16:34 2021
Terminated at Tue Dec  7 14:29:12 2021
Results reported at Tue Dec  7 14:29:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.6-1609_daily_bin1607 57.1532 -16.1654 655862401 656121601 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 :                                   698.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             316.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            832 sec.

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

