/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 0 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 = 7665
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0348.6-1609_daily_bin300
RA = 57.1532, Dec = -16.1654
tmin = 317088001, tmax = 317347201
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='990318', job_status='RUN', time_executed='2021-08-19 13:36:27.741696', time_epoch_executed='1629405387.74' WHERE source_name='4FGL J0348.6-1609' and cadence='daily' and bin_id='300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/990318

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/990318/ft1_4FGL_J0348.6-1609_daily_bin300.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/990318/ft2_4FGL_J0348.6-1609_daily_bin300.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/990318/ft1_4FGL_J0348.6-1609_daily_bin300.fits outfile=/scratch/kocevski/990318/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin300.fits ra=57.1532 dec=-16.1654 rad=12.0 tmin=317088001.0 tmax=317347201.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.18
user 3.63
sys 0.53

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/990318/ft1_filtered_4FGL_J0348.6-1609_daily_bin300.fits" evtable="EVENTS" scfile=/scratch/kocevski/990318/ft2_4FGL_J0348.6-1609_daily_bin300.fits sctable="SC_DATA" outfile=/scratch/kocevski/990318/ltcube_317088001_317347201_4FGL_J0348.6-1609_daily_bin300.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/990318/ft2_4FGL_J0348.6-1609_daily_bin300.fits
.....................!
real 12.22
user 11.51
sys 0.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/990318/ft1_filtered_4FGL_J0348.6-1609_daily_bin300.fits evtable="EVENTS" scfile=/scratch/kocevski/990318/ft2_4FGL_J0348.6-1609_daily_bin300.fits sctable="SC_DATA" expcube=/scratch/kocevski/990318/ltcube_317088001_317347201_4FGL_J0348.6-1609_daily_bin300.fits outfile=/scratch/kocevski/990318/expmap_317088001_317347201_4FGL_J0348.6-1609_daily_bin300.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/990318/ltcube_317088001_317347201_4FGL_J0348.6-1609_daily_bin300.fits
.....................!
real 191.41
user 185.40
sys 5.65

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/990318/ft1_filtered_4FGL_J0348.6-1609_daily_bin300.fits scfile=/scratch/kocevski/990318/ft2_4FGL_J0348.6-1609_daily_bin300.fits outfile=/scratch/kocevski/990318/cmap_317088001_317347201_4FGL_J0348.6-1609_daily_bin300.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.84
user 0.37
sys 0.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/990318/ft1_filtered_4FGL_J0348.6-1609_daily_bin300.fits scfile=/scratch/kocevski/990318/ft2_4FGL_J0348.6-1609_daily_bin300.fits outfile=/scratch/kocevski/990318/cmap_HighResolution_317088001_317347201_4FGL_J0348.6-1609_daily_bin300.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.86
user 0.39
sys 0.46

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/990318/ft1_filtered_4FGL_J0348.6-1609_daily_bin300.fits evtable="EVENTS" scfile=/scratch/kocevski/990318/ft2_4FGL_J0348.6-1609_daily_bin300.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/990318/Model_4FGL_J0348.6-1609_daily_bin300.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/990318/ft1_filtered_4FGL_J0348.6-1609_daily_bin300.fits.....................!
real 167.87
user 165.97
sys 1.61

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .41460E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .24816E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .81142       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.767       1.0000         .10000E-03   10000.    
    14 'norm      '    1.1697       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.4413       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2528       1.0000         .10000E-03   10000.    
    17 'norm      '    14.354       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.1061       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.1684       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.922       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .78144       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0919       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=   7581.256     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2574 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.055        .25668E-05** at limit **
   2  Prefactor     .10000E-03    5.0795        .55315E-07** at limit **
   3  Prefactor     .19981E-01    1.8838       -.80403E-06    .51819E-03
   4  Prefactor     .10000E-03    46.655        .15545E-04** at limit **
   5  Prefactor     .10230E-03    1.5778       -.12181E-05** at limit **
   6  Prefactor     .10000E-03    5.9986        .98257E-07** at limit **
   7  Prefactor     .10000E-03    4.1520       -.49333E-07** at limit **
   8  Prefactor     .10000E-03    24.864        .31347E-06** at limit **
   9  Prefactor     .81140        .97239       -.59313E-07   -.65908E-05
  10  Prefactor     .10000E-03    1.5706       -.84885E-07** at limit **
  11  Prefactor     .10000E-03    .74650       -.16787E-07** at limit **
  12  norm          .10000E-03    .28424       -.30006E-07** at limit **
  13  Prefactor     17.760        23.133       -.11464E-05    .55672E-04
  14  norm          1.1697        .93386       -.95401E-07   -.32992E-03
  15  Prefactor     9.4413        17.963        .13087E-05    .40937E-04
  16  Prefactor     1.2526        1.6773       -.23193E-06   -.61224E-03
  17  norm          14.354        10.032       -.10270E-06    .70343E-05
  18  Prefactor     .10000E-03    17.696        .23830E-06** at limit **
  19  Prefactor     4.1049        5.9541       -.82601E-05   -.42226E-03
  20  Prefactor     7.1677        3.8402       -.13687E-06   -.14661E-03
  21  Prefactor     12.921        11.760        .49957E-07   -.23109E-05
  22  Normalizat    .78152        .15018        .22129E-05    .39191E-03
  23  Prefactor     1.0920        .12077        .55154E-06    .56411E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0199808
  Prefactor  = 0.0001
  Prefactor  = 0.000102297
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.811396
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.7603
  norm       = 1.16972
  Prefactor  = 9.44133
  Prefactor  = 1.25262
  norm       = 14.3537
  Prefactor  = 0.0001
  Prefactor  = 4.10485
  Prefactor  = 7.16771
  Prefactor  = 12.9213
  Normalizat = 0.781515
  Prefactor  = 1.09196
 **********
 **   18 **HESSE 
 **********

 FCN=   7581.256     FROM HESSE     STATUS=OK           388 CALLS     2962 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.1036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .19981E-01    4.2443        .39148E-01   -1.5680    
   4  Prefactor     .10000E-03    46.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10230E-03    2.7708        .38815E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.0215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.1974        .17325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .81140        .94541        .90779E-04   -1.5528    
  10  Prefactor     .10000E-03    1.6073        .21291E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .74981        .73435E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .29825        .90578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.760        23.055        .95020E-04   -1.4865    
  14  norm          1.1697        .91127        .71574E-04   -1.5492    
  15  Prefactor     9.4413        17.896        .13043E-03   -1.5093    
  16  Prefactor     1.2526        1.6443        .12470E-03   -1.5484    
  17  norm          14.354        10.031        .10572E-03   -1.4950    
  18  Prefactor     .10000E-03    17.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.1049        6.0922        .19895E-03   -1.5303    
  20  Prefactor     7.1677        3.8393        .11862E-03   -1.5172    
  21  Prefactor     12.921        11.759        .11143E-03   -1.4989    
  22  Normalizat    .78152        .16739        .27199E-03   -1.0076    
  23  Prefactor     1.0920        .13565        .19460E-03   -.89724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24437e-09
Minuit parameter uncertainties:
  1  4.92767e-05
  2  6.39866e-06
  3  0.581009
  4  1.21013e-05
  5  0.00504578
  6  2.8882e-06
  7  5.13745e-06
  8  1.1063e-05
  9  0.94543
  10  8.47646e-06
  11  1.89086e-06
  12  1.64432e-06
  13  23.0661
  14  0.911284
  15  17.9058
  16  1.64435
  17  10.0319
  18  5.12328e-05
  19  6.09311
  20  3.83944
  21  11.7608
  22  0.167505
  23  0.135694
Done.

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

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.776e+01  2.307e+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:  1.092e+00  1.357e-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.815e-01  1.675e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/990318/likelihoodResults_317088001_317347201_4FGL_J0348.6-1609_daily_bin300.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) = 7581.25579643
delta logL = 0.000296808950225

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7581.2556758
delta logL = 0.000417446685788

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.008       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3393       1.0000          .0000       10.000    
     3 'Normalizat'    .78246       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0917       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=   7581.256     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      221 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.027        603.83        .23596E-02    .77982E-04
   2  Index         2.3411        6.1356        .24144        .50936E-04
   3  Normalizat    .78236        .49424E-01    .43381E-01    .26854E-03
   4  Prefactor     1.0916        .35480E-01    .37912E-01    .40445E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.0273
  Index      = 2.34108
  Normalizat = 0.782365
  Prefactor  = 1.0916
 **********
 **   18 **HESSE 
 **********

 FCN=   7581.256     FROM HESSE     STATUS=OK            31 CALLS      252 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.027        24.635        .94382E-04   -1.4859    
   2  Index         2.3411        1.0728        .10278E-01   -.56071    
   3  Normalizat    .78236        .16514        .27186E-03   -1.0073    
   4  Prefactor     1.0916        .13594        .19462E-03   -.89735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.77762e-11
Minuit parameter uncertainties:
  1  24.6491
  2  1.08461
  3  0.165244
  4  0.135986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/990318': 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) = 7581.25567214
delta logL = 0.000421105683017

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.803e+01  2.465e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.341e+00  1.085e+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:  1.092e+00  1.360e-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.824e-01  1.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.84
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/990318/cmap_HighResolution_317088001_317347201_4FGL_J0348.6-1609_daily_bin300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.23e-03', job_status='DONE', photon_flux_upper_limit='9.38e-08', time_completed='2021-08-19 13:49:50.998132', job_id='990318', GAL2='1.09', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1629406191.0', return_code2='0', ts='0.84', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='4.21e-04', ts2='0.84', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='300' AND source_name='4FGL J0348.6-1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:49:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 990318: <4FGL_J0348.6-1609_daily_bin300> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.6-1609_daily_bin300 57.1532 -16.1654 317088001 317347201 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 :                                   803.51 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             346.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            818 sec.

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

