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


Performing analysis on: 4FGL_J0348.6-1609_daily_bin1074
RA = 57.1532, Dec = -16.1654
tmin = 517708801, tmax = 517968001
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='994976', job_status='RUN', time_executed='2021-08-19 13:51:14.293709', time_epoch_executed='1629406274.29' WHERE source_name='4FGL J0348.6-1609' and cadence='daily' and bin_id='1074'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994976

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994976/ft1_4FGL_J0348.6-1609_daily_bin1074.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994976/ft2_4FGL_J0348.6-1609_daily_bin1074.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994976/ft1_4FGL_J0348.6-1609_daily_bin1074.fits outfile=/scratch/kocevski/994976/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin1074.fits ra=57.1532 dec=-16.1654 rad=12.0 tmin=517708801.0 tmax=517968001.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.25
user 2.61
sys 0.63

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/994976/ft2_4FGL_J0348.6-1609_daily_bin1074.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/994976/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin1074.fits evtable="EVENTS" outfile="/scratch/kocevski/994976/ft1_filtered_4FGL_J0348.6-1609_daily_bin1074.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.90
user 0.26
sys 0.63

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/994976/ft1_filtered_4FGL_J0348.6-1609_daily_bin1074.fits" evtable="EVENTS" scfile=/scratch/kocevski/994976/ft2_4FGL_J0348.6-1609_daily_bin1074.fits sctable="SC_DATA" outfile=/scratch/kocevski/994976/ltcube_517708801_517968001_4FGL_J0348.6-1609_daily_bin1074.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/994976/ft2_4FGL_J0348.6-1609_daily_bin1074.fits
.....................!
real 9.51
user 8.66
sys 0.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994976/ft1_filtered_4FGL_J0348.6-1609_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/994976/ft2_4FGL_J0348.6-1609_daily_bin1074.fits sctable="SC_DATA" expcube=/scratch/kocevski/994976/ltcube_517708801_517968001_4FGL_J0348.6-1609_daily_bin1074.fits outfile=/scratch/kocevski/994976/expmap_517708801_517968001_4FGL_J0348.6-1609_daily_bin1074.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/994976/ltcube_517708801_517968001_4FGL_J0348.6-1609_daily_bin1074.fits
.....................!
real 146.19
user 142.18
sys 3.78

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/994976/ft1_filtered_4FGL_J0348.6-1609_daily_bin1074.fits scfile=/scratch/kocevski/994976/ft2_4FGL_J0348.6-1609_daily_bin1074.fits outfile=/scratch/kocevski/994976/cmap_517708801_517968001_4FGL_J0348.6-1609_daily_bin1074.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.93
user 0.29
sys 0.61

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/994976/ft1_filtered_4FGL_J0348.6-1609_daily_bin1074.fits scfile=/scratch/kocevski/994976/ft2_4FGL_J0348.6-1609_daily_bin1074.fits outfile=/scratch/kocevski/994976/cmap_HighResolution_517708801_517968001_4FGL_J0348.6-1609_daily_bin1074.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.93
user 0.30
sys 0.62

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/994976/ft1_filtered_4FGL_J0348.6-1609_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/994976/ft2_4FGL_J0348.6-1609_daily_bin1074.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/994976/Model_4FGL_J0348.6-1609_daily_bin1074.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/994976/ft1_filtered_4FGL_J0348.6-1609_daily_bin1074.fits.....................!
real 83.82
user 82.00
sys 1.66

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.117       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.230       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6675       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10994E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9339       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9353       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .48617       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.1595       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.0759       1.0000         .10000E-03   10000.    
    17 'norm      '    7.2286       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5709       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .22597       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1499       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94790       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=   4542.833     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2276 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.085        106.76        .45147E-05   -.13399E-04
   2  Prefactor     .10000E-03    9.3456       -.10194E-05** at limit **
   3  Prefactor     18.227        8.8746        .19016E-06    .21079E-03
   4  Prefactor     .10000E-03    106.79        .13993E-05** at limit **
   5  Prefactor     3.6673        3.6911       -.26665E-07   -.95040E-04
   6  Prefactor     .10000E-03    44.515       -.10434E-05** at limit **
   7  Prefactor     .10000E-03    16.531       -.49158E-06** at limit **
   8  Prefactor     7.9192        50.071        .13472E-05   -.47384E-05
   9  Prefactor     4.9344        3.6084        .95626E-07    .48991E-04
  10  Prefactor     .48575        7.2843        .10261E-05   -.20921E-04
  11  Prefactor     .10000E-03    3.9316       -.19960E-06** at limit **
  12  norm          7.1592        2.2416        .18532E-07   -.35202E-04
  13  Prefactor     .10000E-03    14.815        .10631E-05** at limit **
  14  norm          .10000E-03    .81055       -.51115E-07** at limit **
  15  Prefactor     .10000E-03    56.325       -.16590E-05** at limit **
  16  Prefactor     4.0765        2.9668        .57941E-07    .13542E-03
  17  norm          7.2268        14.029        .21742E-07   -.37960E-04
  18  Prefactor     .10000E-03    35.065        .43889E-06** at limit **
  19  Prefactor     1.5698        11.863        .13257E-04    .12160E-04
  20  Prefactor     .20431        2.9185       -.33505E-06   -.18161E-04
  21  Prefactor     .10000E-03    12.576       -.30564E-06** at limit **
  22  Normalizat    1.1502        .23901       -.31511E-05    .27445E-03
  23  Prefactor     .94789        .17445        .13343E-05    .44553E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.085
  Prefactor  = 0.000100001
  Prefactor  = 18.2272
  Prefactor  = 0.0001
  Prefactor  = 3.66726
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 7.91922
  Prefactor  = 4.93445
  Prefactor  = 0.485747
  Prefactor  = 0.0001
  norm       = 7.15925
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.07649
  norm       = 7.22681
  Prefactor  = 0.0001
  Prefactor  = 1.56978
  Prefactor  = 0.204311
  Prefactor  = 0.0001
  Normalizat = 1.15018
  Prefactor  = 0.947891
 **********
 **   18 **HESSE 
 **********

 FCN=   4542.833     FROM HESSE     STATUS=OK           372 CALLS     2648 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.085        106.97        .12016E-03   -1.5042    
   2  Prefactor     .10000E-03    9.4202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.227        8.8769        .93805E-04   -1.4854    
   4  Prefactor     .10000E-03    106.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.6673        3.6959        .12644E-03   -1.5325    
   6  Prefactor     .10000E-03    45.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.9192        50.203        .14235E-03   -1.5145    
   9  Prefactor     4.9344        3.5727        .10295E-03   -1.5264    
  10  Prefactor     .48575        7.0879        .33542E-03   -1.5569    
  11  Prefactor     .10000E-03    7.1571        .24924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.1592        2.2283        .53387E-04   -1.5173    
  13  Prefactor     .10000E-03    14.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .82433        .59111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    56.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.0765        2.9644        .95633E-04   -1.5304    
  17  norm          7.2268        14.020        .14919E-03   -1.5170    
  18  Prefactor     .10000E-03    35.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.5698        11.917        .16958E-02   -1.5457    
  20  Prefactor     .20431        20.087        .21915E-02   -1.5618    
  21  Prefactor     .10000E-03    12.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1502        .27735        .27620E-03   -.88157    
  23  Prefactor     .94789        .20610        .22829E-03   -.94487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32733e-08
Minuit parameter uncertainties:
  1  69.03
  2  0.000221321
  3  8.87752
  4  0.00018121
  5  3.69618
  6  0.000672138
  7  0.000151132
  8  39.9274
  9  3.57282
  10  3.71116
  11  2.52303e-05
  12  2.22828
  13  6.25228e-05
  14  2.5229e-06
  15  0.00023555
  16  2.96451
  17  14.0261
  18  7.66179e-05
  19  8.65249
  20  4.05203
  21  1.74198e-05
  22  0.277702
  23  0.206274
Done.

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

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  6.252e-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.479e-01  2.063e-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.150e+00  2.777e-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: 9.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/994976/likelihoodResults_517708801_517968001_4FGL_J0348.6-1609_daily_bin1074.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) = 4542.8330913
delta logL = -0.000321304790305

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4542.83277029
delta logL = -2.99311068375e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2175       1.0000          .0000       10.000    
     3 'Normalizat'    1.1502       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94789       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=   4542.833     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      233 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.598        .90712E-02** at limit **
   2  Index         3.2138        6.0284        .50000        .24089E-05
   3  Normalizat    1.1502        .50409E-02    .62444E-01    .14604E-04
   4  Prefactor     .94789        .38421E-02    .45613E-01    .80555E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.21378
  Normalizat = 1.15018
  Prefactor  = 0.947889
 **********
 **   18 **HESSE 
 **********

 FCN=   4542.833     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    126.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2138        8.1268        .50000       -.36531    
   3  Normalizat    1.1502        .17415E-01    .27620E-03   -.88157    
   4  Prefactor     .94789        .13281E-01    .22829E-03   -.94487    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.67808e-08
Minuit parameter uncertainties:
  1  0.000216808
  2  433.276
  3  0.0174152
  4  0.0132814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994976': 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) = 4542.83276995
delta logL = 4.53865141026e-08

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  2.168e-04  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  3.214e+00  4.333e+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:  9.479e-01  1.328e-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:  1.150e+00  1.742e-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/994976/cmap_HighResolution_517708801_517968001_4FGL_J0348.6-1609_daily_bin1074.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.30e-03', job_status='DONE', photon_flux_upper_limit='9.46e-08', time_completed='2021-08-19 13:58:55.409522', job_id='994976', GAL2='0.95', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1629406735.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='4.54e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1074' AND source_name='4FGL J0348.6-1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:58:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 994976: <4FGL_J0348.6-1609_daily_bin1074> in cluster <slac> Done

Job <4FGL_J0348.6-1609_daily_bin1074> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Aug 19 13:50:46 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:50: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:50:47 2021
Terminated at Thu Aug 19 13:58:56 2021
Results reported at Thu Aug 19 13:58:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.6-1609_daily_bin1074 57.1532 -16.1654 517708801 517968001 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 :                                   462.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             355.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   488 sec.
    Turnaround time :                            490 sec.

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

