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


Performing analysis on: 4FGL_J0348.6-1609_daily_bin650
RA = 57.1532, Dec = -16.1654
tmin = 407808001, tmax = 408067201
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='993231', job_status='RUN', time_executed='2021-08-19 13:48:54.771205', time_epoch_executed='1629406134.77' WHERE source_name='4FGL J0348.6-1609' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993231

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993231/ft1_4FGL_J0348.6-1609_daily_bin650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993231/ft2_4FGL_J0348.6-1609_daily_bin650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993231/ft1_4FGL_J0348.6-1609_daily_bin650.fits outfile=/scratch/kocevski/993231/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin650.fits ra=57.1532 dec=-16.1654 rad=12.0 tmin=407808001.0 tmax=408067201.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 12.09
user 3.85
sys 8.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993231/ft2_4FGL_J0348.6-1609_daily_bin650.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/993231/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin650.fits evtable="EVENTS" outfile="/scratch/kocevski/993231/ft1_filtered_4FGL_J0348.6-1609_daily_bin650.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 9.00
user 0.32
sys 8.57

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993231/ft1_filtered_4FGL_J0348.6-1609_daily_bin650.fits" evtable="EVENTS" scfile=/scratch/kocevski/993231/ft2_4FGL_J0348.6-1609_daily_bin650.fits sctable="SC_DATA" outfile=/scratch/kocevski/993231/ltcube_407808001_408067201_4FGL_J0348.6-1609_daily_bin650.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/993231/ft2_4FGL_J0348.6-1609_daily_bin650.fits
.....................!
real 21.05
user 11.73
sys 9.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993231/ft1_filtered_4FGL_J0348.6-1609_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/993231/ft2_4FGL_J0348.6-1609_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/993231/ltcube_407808001_408067201_4FGL_J0348.6-1609_daily_bin650.fits outfile=/scratch/kocevski/993231/expmap_407808001_408067201_4FGL_J0348.6-1609_daily_bin650.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/993231/ltcube_407808001_408067201_4FGL_J0348.6-1609_daily_bin650.fits
.....................!
real 201.75
user 185.46
sys 15.84

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/993231/ft1_filtered_4FGL_J0348.6-1609_daily_bin650.fits scfile=/scratch/kocevski/993231/ft2_4FGL_J0348.6-1609_daily_bin650.fits outfile=/scratch/kocevski/993231/cmap_407808001_408067201_4FGL_J0348.6-1609_daily_bin650.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 8.42
user 0.37
sys 7.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993231/ft1_filtered_4FGL_J0348.6-1609_daily_bin650.fits scfile=/scratch/kocevski/993231/ft2_4FGL_J0348.6-1609_daily_bin650.fits outfile=/scratch/kocevski/993231/cmap_HighResolution_407808001_408067201_4FGL_J0348.6-1609_daily_bin650.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 8.40
user 0.36
sys 8.01

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/993231/ft1_filtered_4FGL_J0348.6-1609_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/993231/ft2_4FGL_J0348.6-1609_daily_bin650.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/993231/Model_4FGL_J0348.6-1609_daily_bin650.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/993231/ft1_filtered_4FGL_J0348.6-1609_daily_bin650.fits.....................!
real 91.53
user 79.46
sys 11.68

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.038       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.388       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.376       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1236       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10905E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    44.605       1.0000         .10000E-03   10000.    
    14 'norm      '    2.6095       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5267       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .29950       1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.408       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .85646       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96148       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=   3365.831     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2975 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.756       -.14059E-05** at limit **
   2  Prefactor     25.042        26.299       -.93565E-07    .73265E-04
   3  Prefactor     .10000E-03    9.0591        .54457E-06** at limit **
   4  Prefactor     .10001E-03    93.375        .48752E-05** at limit **
   5  Prefactor     .10000E-03    4.9715        .82381E-07** at limit **
   6  Prefactor     19.403        25.411        .68206E-06    .24107E-03
   7  Prefactor     13.391        25.612        .49607E-06    .22308E-03
   8  Prefactor     .10000E-03    24.127       -.88988E-06** at limit **
   9  Prefactor     4.1244        3.5078       -.71294E-07    .31994E-03
  10  Prefactor     .10000E-03    3.6547       -.85242E-07** at limit **
  11  Prefactor     .10000E-03    6.7077        .54893E-06** at limit **
  12  norm          .10001E-03    .75215       -.38443E-06** at limit **
  13  Prefactor     44.539        51.412       -.55362E-06   -.77946E-04
  14  norm          2.6098        2.0973        .36104E-07    .61224E-03
  15  Prefactor     1.5926        199.16       -.14662E-04   -.57224E-04
  16  Prefactor     .10000E-03    2.8065        .44729E-06** at limit **
  17  norm          .10000E-03    10.874       -.19939E-06** at limit **
  18  Prefactor     .10000E-03    8.0775        .45033E-06** at limit **
  19  Prefactor     .10000E-03    7.0380       -.58872E-06** at limit **
  20  Prefactor     .31843        9.2599       -.38997E-05    .11528E-02
  21  Prefactor     22.401        27.715       -.96683E-06    .46991E-04
  22  Normalizat    .85581        .25697        .36814E-05    .74439E-03
  23  Prefactor     .96183        .17781        .29181E-06    .89188E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 25.0424
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 19.4029
  Prefactor  = 13.3907
  Prefactor  = 0.0001
  Prefactor  = 4.12441
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 44.5391
  norm       = 2.60982
  Prefactor  = 1.59259
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.318434
  Prefactor  = 22.401
  Normalizat = 0.855812
  Prefactor  = 0.961834
 **********
 **   18 **HESSE 
 **********

 FCN=   3365.831     FROM HESSE     STATUS=OK           366 CALLS     3341 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.042        26.304        .80056E-04   -1.4707    
   3  Prefactor     .10000E-03    9.1632        .16988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    93.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.0181        .12605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.403        25.500        .90962E-04   -1.4827    
   7  Prefactor     13.391        25.715        .10952E-03   -1.4976    
   8  Prefactor     .10000E-03    24.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.1244        3.4994        .92448E-04   -1.5302    
  10  Prefactor     .10000E-03    3.7029        .10820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.8547        .29137E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10001E-03    9.7585        .94907E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     44.539        51.579        .60030E-04   -1.4372    
  14  norm          2.6098        2.0810        .69145E-04   -1.5385    
  15  Prefactor     1.5926        204.01        .34557E-03   -1.5456    
  16  Prefactor     .10000E-03    4.6683        .18306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.0820        .16106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.0996        .15044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .31843        26.680        .20870E-02   -1.5595    
  21  Prefactor     22.401        27.798        .84617E-04   -1.4761    
  22  Normalizat    .85581        .28723        .27479E-03   -.98031    
  23  Prefactor     .96183        .20379        .20403E-03   -.94013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49955e-08
Minuit parameter uncertainties:
  1  0.000456045
  2  26.3159
  3  3.45598e-05
  4  0.00205243
  5  6.25412e-06
  6  25.5146
  7  25.7364
  8  0.000188687
  9  3.49956
  10  1.65496e-05
  11  3.44772e-05
  12  0.000487328
  13  51.6308
  14  2.08102
  15  36.1753
  16  4.9166e-05
  17  3.76634e-05
  18  5.394e-05
  19  6.80043e-05
  20  5.83132
  21  27.814
  22  0.287744
  23  0.203953
Done.

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

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  4.454e+01  5.163e+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:  9.618e-01  2.040e-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:  8.558e-01  2.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.29
Ra Dec: 57.153 -16.165
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 6.42e-08 +/- 7.44e-08
Energy Flux (Fixed Index): 2.19e-05 +/- 2.53e-05

TS (Fixed Index): 1.29
Ra Dec: 57.153 -16.165
Photon Flux Upper Limit: 2.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.58e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993231/likelihoodResults_407808001_408067201_4FGL_J0348.6-1609_daily_bin650.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) = 3365.40185487
delta logL = 0.428650297668

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3365.39191079
delta logL = 0.438594382233

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.039       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3755       1.0000          .0000       10.000    
     3 'Normalizat'    .78822       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99683       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=   3365.392     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      310 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.026        135.86        .10001E-03    .14437E-04
   2  Index         3.3761        3.1727        .44426E-02   -.45823E-04
   3  Normalizat    .78707        .29602        .28531E-03    .56048E-03
   4  Prefactor     .99779        .22903        .20069E-03    .31272E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.0256
  Index      = 3.37609
  Normalizat = 0.787074
  Prefactor  = 0.997794
 **********
 **   18 **HESSE 
 **********

 FCN=   3365.392     FROM HESSE     STATUS=OK            25 CALLS      335 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.026        38.004        .40003E-05   -1.4907    
   2  Index         3.3761        1.3907        .17771E-03   -.33078    
   3  Normalizat    .78707        .27188        .57063E-04   -1.0055    
   4  Prefactor     .99779        .20799        .40138E-04   -.92803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24884e-09
Minuit parameter uncertainties:
  1  38.0617
  2  1.41155
  3  0.272345
  4  0.208153
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993231': 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): 0
logL (Free Index) = 3365.39189935
delta logL = 0.438605823897

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.603e+01  3.806e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  3.376e+00  1.412e+00  0.000e+00  1.000e+01 (-1.000e+00)
279        Scale:  9.291e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  9.978e-01  2.082e-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.871e-01  2.723e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.26
Ra Dec: 57.153 -16.165
Photon Index (Free Index): 3.38 +/- 1.41
Photon Flux (Free Index): 1.25e-07 +/- 1.07e-07
Energy Flux (Free Index): 2.16e-05 +/- 1.73e-05

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/993231/cmap_HighResolution_407808001_408067201_4FGL_J0348.6-1609_daily_bin650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.58e-02', comment='SUCCESS', photon_flux='6.42e-08', energy_flux2='2.16e-05', photon_flux_error='7.44e-08', dlogl='4.39e-01', energy_flux='2.19e-05', photon_flux2='1.25e-07', job_status='DONE', time_completed='2021-08-19 13:59:50.369711', photon_index_error2='1.41', photon_index2='3.38', ts='1.29', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='2.05e-07', energy_flux_error2='1.73e-05', EG='0.86', time_epoch_completed='1629406790.37', return_code='0', job_id='993231', GAL2='1.00', EG2='0.79', return_code2='0', energy_flux_error='2.53e-05', photon_flux_error2='1.07e-07', ts2='2.26', photon_index='2.37' WHERE bin_id='650' AND source_name='4FGL J0348.6-1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:59:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 993231: <4FGL_J0348.6-1609_daily_bin650> in cluster <slac> Done

Job <4FGL_J0348.6-1609_daily_bin650> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Aug 19 13:45:36 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:45:38 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:45:38 2021
Terminated at Thu Aug 19 13:59:52 2021
Results reported at Thu Aug 19 13:59:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.6-1609_daily_bin650 57.1532 -16.1654 407808001 408067201 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 :                                   779.22 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             227.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            856 sec.

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

