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


Performing analysis on: 4FGL_J0348.6-1609_daily_bin1404
RA = 57.1532, Dec = -16.1654
tmin = 603244801, tmax = 603504001
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='997935', job_status='RUN', time_executed='2021-08-19 14:01:18.563661', time_epoch_executed='1629406878.56' WHERE source_name='4FGL J0348.6-1609' and cadence='daily' and bin_id='1404'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/997935

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/997935/ft1_4FGL_J0348.6-1609_daily_bin1404.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/997935/ft2_4FGL_J0348.6-1609_daily_bin1404.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/997935/ft1_4FGL_J0348.6-1609_daily_bin1404.fits outfile=/scratch/kocevski/997935/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin1404.fits ra=57.1532 dec=-16.1654 rad=12.0 tmin=603244801.0 tmax=603504001.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 3.53
user 2.73
sys 0.76

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/997935/ft1_filtered_4FGL_J0348.6-1609_daily_bin1404.fits" evtable="EVENTS" scfile=/scratch/kocevski/997935/ft2_4FGL_J0348.6-1609_daily_bin1404.fits sctable="SC_DATA" outfile=/scratch/kocevski/997935/ltcube_603244801_603504001_4FGL_J0348.6-1609_daily_bin1404.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/997935/ft2_4FGL_J0348.6-1609_daily_bin1404.fits
.....................!
real 14.80
user 13.79
sys 0.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/997935/ft1_filtered_4FGL_J0348.6-1609_daily_bin1404.fits evtable="EVENTS" scfile=/scratch/kocevski/997935/ft2_4FGL_J0348.6-1609_daily_bin1404.fits sctable="SC_DATA" expcube=/scratch/kocevski/997935/ltcube_603244801_603504001_4FGL_J0348.6-1609_daily_bin1404.fits outfile=/scratch/kocevski/997935/expmap_603244801_603504001_4FGL_J0348.6-1609_daily_bin1404.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/997935/ltcube_603244801_603504001_4FGL_J0348.6-1609_daily_bin1404.fits
.....................!
real 193.45
user 187.17
sys 5.94

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/997935/ft1_filtered_4FGL_J0348.6-1609_daily_bin1404.fits scfile=/scratch/kocevski/997935/ft2_4FGL_J0348.6-1609_daily_bin1404.fits outfile=/scratch/kocevski/997935/cmap_603244801_603504001_4FGL_J0348.6-1609_daily_bin1404.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.10
user 0.36
sys 0.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/997935/ft1_filtered_4FGL_J0348.6-1609_daily_bin1404.fits scfile=/scratch/kocevski/997935/ft2_4FGL_J0348.6-1609_daily_bin1404.fits outfile=/scratch/kocevski/997935/cmap_HighResolution_603244801_603504001_4FGL_J0348.6-1609_daily_bin1404.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.11
user 0.38
sys 0.72

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/997935/ft1_filtered_4FGL_J0348.6-1609_daily_bin1404.fits evtable="EVENTS" scfile=/scratch/kocevski/997935/ft2_4FGL_J0348.6-1609_daily_bin1404.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/997935/Model_4FGL_J0348.6-1609_daily_bin1404.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/997935/ft1_filtered_4FGL_J0348.6-1609_daily_bin1404.fits.....................!
real 189.39
user 187.06
sys 1.99

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .67628       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.8249       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4576       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1232       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.351       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3000       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7472       1.0000         .10000E-03   10000.    
    12 'norm      '    24.419       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.253       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.625       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0497       1.0000         .10000E-03   10000.    
    17 'norm      '    4.2280       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.3823       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.6749       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0705       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88314       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=   8316.645     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2593 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.757        .44378E-05** at limit **
   2  Prefactor     .10000E-03    5.4933        .30176E-07** at limit **
   3  Prefactor     .67289        2.4545        .22540E-06   -.19177E-03
   4  Prefactor     .10000E-03    91.592       -.15297E-05** at limit **
   5  Prefactor     4.8239        3.7327       -.11398E-06   -.98870E-04
   6  Prefactor     2.4510        22.856        .46911E-06   -.26248E-04
   7  Prefactor     1.1234        10.976        .16753E-05   -.12124E-03
   8  Prefactor     20.350        32.781        .60708E-07   -.64509E-05
   9  Prefactor     2.2996        1.7766       -.26317E-07   -.71476E-04
  10  Prefactor     .10000E-03    2.2147       -.67019E-07** at limit **
  11  Prefactor     1.7472        3.5532        .73501E-06   -.59971E-04
  12  norm          24.419        2.5747       -.59518E-07    .13407E-03
  13  Prefactor     14.242        25.500       -.75428E-06   -.27676E-04
  14  norm          .10000E-03    .49225        .43472E-08** at limit **
  15  Prefactor     19.626        24.183        .71229E-06    .25509E-04
  16  Prefactor     3.0496        2.1202        .83457E-08   -.32461E-04
  17  norm          4.2287        7.3900        .80836E-06    .90781E-04
  18  Prefactor     .10000E-03    50.663       -.31879E-05** at limit **
  19  Prefactor     2.3805        7.3316        .21803E-06   -.99125E-04
  20  Prefactor     1.6746        2.9381        .33672E-06   -.51679E-04
  21  Prefactor     .10000E-03    10.594        .50096E-07** at limit **
  22  Normalizat    1.0707        .17021       -.47339E-06   -.76476E-04
  23  Prefactor     .88303        .12344       -.38556E-06   -.81394E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.67289
  Prefactor  = 0.0001
  Prefactor  = 4.82393
  Prefactor  = 2.45102
  Prefactor  = 1.12342
  Prefactor  = 20.3498
  Prefactor  = 2.29965
  Prefactor  = 0.0001
  Prefactor  = 1.74716
  norm       = 24.419
  Prefactor  = 14.2424
  norm       = 0.0001
  Prefactor  = 19.6258
  Prefactor  = 3.04957
  norm       = 4.22869
  Prefactor  = 0.000100001
  Prefactor  = 2.38052
  Prefactor  = 1.67462
  Prefactor  = 0.0001
  Normalizat = 1.07068
  Prefactor  = 0.883026
 **********
 **   18 **HESSE 
 **********

 FCN=   8316.645     FROM HESSE     STATUS=OK           382 CALLS     2975 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.5026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .67289        7.1069        .25220E-02   -1.5544    
   4  Prefactor     .10000E-03    91.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.8239        3.7048        .14339E-03   -1.5269    
   6  Prefactor     2.4510        22.842        .26090E-03   -1.5395    
   7  Prefactor     1.1234        12.130        .44252E-03   -1.5496    
   8  Prefactor     20.350        32.802        .88786E-04   -1.4805    
   9  Prefactor     2.2996        1.7675        .10150E-03   -1.5405    
  10  Prefactor     .10000E-03    2.2390        .13220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7472        3.5656        .23102E-03   -1.5444    
  12  norm          24.419        2.5732        .22749E-03   -1.4719    
  13  Prefactor     14.242        25.485        .10609E-03   -1.4953    
  14  norm          .10000E-03    .51394        .12458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.626        24.235        .90411E-04   -1.4822    
  16  Prefactor     3.0496        2.1141        .10630E-03   -1.5359    
  17  norm          4.2287        7.4271        .19597E-03   -1.5297    
  18  Prefactor     .10000E-03    52.573        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.3805        7.4799        .26540E-03   -1.5399    
  20  Prefactor     1.6746        2.9228        .19824E-03   -1.5449    
  21  Prefactor     .10000E-03    10.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0707        .19996        .27167E-03   -.90699    
  23  Prefactor     .88303        .14456        .23087E-03   -.96737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87271e-08
Minuit parameter uncertainties:
  1  0.000535464
  2  1.15786e-06
  3  4.37396
  4  0.000230503
  5  3.70496
  6  14.9721
  7  7.3846
  8  32.831
  9  1.7675
  10  4.77008e-06
  11  3.56603
  12  2.57325
  13  25.5048
  14  1.34859e-07
  15  24.2475
  16  2.11418
  17  7.42875
  18  0.000346316
  19  7.48286
  20  2.9231
  21  3.45724e-06
  22  0.200097
  23  0.144619
Done.

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

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.424e+01  2.550e+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.830e-01  1.446e-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.071e+00  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.51
Ra Dec: 57.153 -16.165
Photon Flux Upper Limit: 9.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/997935/likelihoodResults_603244801_603504001_4FGL_J0348.6-1609_daily_bin1404.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) = 8316.43356714
delta logL = 0.211440661404

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8316.41560329
delta logL = 0.229404510972

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5074       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2174       1.0000          .0000       10.000    
     3 'Normalizat'    1.0430       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89573       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=   8316.416     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      257 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4914        210.66        .36592E-02    .26431E-03
   2  Index         3.2187        3.8690        .15115        .17539E-03
   3  Normalizat    1.0429        .52608E-01    .62112E-01   -.20474E-04
   4  Prefactor     .89577        .38384E-01    .44951E-01    .10569E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.49141
  Index      = 3.2187
  Normalizat = 1.04291
  Prefactor  = 0.895767
 **********
 **   18 **HESSE 
 **********

 FCN=   8316.416     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      290 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4914        417.36        .14637E-03   -1.5160    
   2  Index         3.2187        5.9937        .86166E-02   -.36426    
   3  Normalizat    1.0429        .22990        .27471E-03   -.91606    
   4  Prefactor     .89577        .17543        .22937E-03   -.96289    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.49085e-09
Minuit parameter uncertainties:
  1  112.668
  2  8.98685
  3  0.230121
  4  0.175544
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/997935': 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) = 8316.4156029
delta logL = 0.229404902535

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  7.491e+00  1.127e+02  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  3.219e+00  8.987e+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:  8.958e-01  1.755e-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.043e+00  2.301e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.51
Ra Dec: 57.153 -16.165

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/997935/cmap_HighResolution_603244801_603504001_4FGL_J0348.6-1609_daily_bin1404.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.25e-03', job_status='DONE', photon_flux_upper_limit='9.41e-08', time_completed='2021-08-19 14:15:54.522032', job_id='997935', GAL2='0.90', fit_tolerance='1e-08', EG2='1.04', EG='1.07', time_epoch_completed='1629407754.52', return_code2='102', ts='0.51', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='2.29e-01', ts2='0.99', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1404' AND source_name='4FGL J0348.6-1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 14:15:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 997935: <4FGL_J0348.6-1609_daily_bin1404> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.6-1609_daily_bin1404 57.1532 -16.1654 603244801 603504001 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 :                                   873.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             390.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            929 sec.

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

