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


Performing analysis on: 4FGL_J0348.6-1609_daily_bin1075
RA = 57.1532, Dec = -16.1654
tmin = 517968001, tmax = 518227201
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='996106', job_status='RUN', time_executed='2021-08-19 13:58:54.858560', time_epoch_executed='1629406734.86' WHERE source_name='4FGL J0348.6-1609' and cadence='daily' and bin_id='1075'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/996106

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/996106/ft1_4FGL_J0348.6-1609_daily_bin1075.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/996106/ft2_4FGL_J0348.6-1609_daily_bin1075.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/996106/ft1_4FGL_J0348.6-1609_daily_bin1075.fits outfile=/scratch/kocevski/996106/ft1_filteredMKT_4FGL_J0348.6-1609_daily_bin1075.fits ra=57.1532 dec=-16.1654 rad=12.0 tmin=517968001.0 tmax=518227201.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 5.27
user 3.50
sys 1.09

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/996106/ft1_filtered_4FGL_J0348.6-1609_daily_bin1075.fits" evtable="EVENTS" scfile=/scratch/kocevski/996106/ft2_4FGL_J0348.6-1609_daily_bin1075.fits sctable="SC_DATA" outfile=/scratch/kocevski/996106/ltcube_517968001_518227201_4FGL_J0348.6-1609_daily_bin1075.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/996106/ft2_4FGL_J0348.6-1609_daily_bin1075.fits
.....................!
real 13.57
user 11.89
sys 1.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/996106/ft1_filtered_4FGL_J0348.6-1609_daily_bin1075.fits evtable="EVENTS" scfile=/scratch/kocevski/996106/ft2_4FGL_J0348.6-1609_daily_bin1075.fits sctable="SC_DATA" expcube=/scratch/kocevski/996106/ltcube_517968001_518227201_4FGL_J0348.6-1609_daily_bin1075.fits outfile=/scratch/kocevski/996106/expmap_517968001_518227201_4FGL_J0348.6-1609_daily_bin1075.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/996106/ltcube_517968001_518227201_4FGL_J0348.6-1609_daily_bin1075.fits
.....................!
real 194.17
user 187.94
sys 5.83

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/996106/ft1_filtered_4FGL_J0348.6-1609_daily_bin1075.fits scfile=/scratch/kocevski/996106/ft2_4FGL_J0348.6-1609_daily_bin1075.fits outfile=/scratch/kocevski/996106/cmap_517968001_518227201_4FGL_J0348.6-1609_daily_bin1075.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.41
user 0.37
sys 1.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/996106/ft1_filtered_4FGL_J0348.6-1609_daily_bin1075.fits scfile=/scratch/kocevski/996106/ft2_4FGL_J0348.6-1609_daily_bin1075.fits outfile=/scratch/kocevski/996106/cmap_HighResolution_517968001_518227201_4FGL_J0348.6-1609_daily_bin1075.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.44
user 0.38
sys 1.01

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/996106/ft1_filtered_4FGL_J0348.6-1609_daily_bin1075.fits evtable="EVENTS" scfile=/scratch/kocevski/996106/ft2_4FGL_J0348.6-1609_daily_bin1075.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/996106/Model_4FGL_J0348.6-1609_daily_bin1075.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/996106/ft1_filtered_4FGL_J0348.6-1609_daily_bin1075.fits.....................!
real 120.81
user 118.28
sys 2.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.357       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.368       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.516       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.558       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10504E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10224       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.774       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4240       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.341       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.631       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2268       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .72258       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=   5032.541     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2561 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    62.800        .70110E-04** at limit **
   2  Prefactor     .10000E-03    4.9784       -.29335E-05** at limit **
   3  Prefactor     14.359        7.9755        .96406E-06   -.55626E-04
   4  Prefactor     .10000E-03    126.97       -.54620E-04** at limit **
   5  Prefactor     .10000E-03    2.0091       -.37648E-08** at limit **
   6  Prefactor     27.375        23.712        .24530E-06    .12538E-03
   7  Prefactor     11.517        13.829        .43861E-06   -.25687E-04
   8  Prefactor     .10000E-03    48.807       -.41293E-04** at limit **
   9  Prefactor     .10000E-03    1.7566        .33725E-06** at limit **
  10  Prefactor     .10000E-03    6.3807       -.19285E-06** at limit **
  11  Prefactor     .10000E-03    3.1691        .27606E-07** at limit **
  12  norm          10.558        2.4376        .85824E-08    .24289E-03
  13  Prefactor     .10000E-03    17.985       -.17659E-05** at limit **
  14  norm          .10582        1.0506       -.92856E-06    .16732E-02
  15  Prefactor     13.773        27.622       -.11801E-05   -.20137E-03
  16  Prefactor     6.4234        3.8579       -.46819E-07    .42398E-03
  17  norm          .10000E-03    4.9234        .29013E-05** at limit **
  18  Prefactor     .10000E-03    20.691        .37059E-05** at limit **
  19  Prefactor     11.343        8.2131        .98758E-06   -.14872E-05
  20  Prefactor     .10000E-03    1.8224       -.81211E-07** at limit **
  21  Prefactor     14.633        20.332       -.15378E-06   -.64355E-05
  22  Normalizat    1.2265        .22203       -.29172E-06    .20701E-03
  23  Prefactor     .72276        .15313        .37152E-07    .18825E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3587
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.3751
  Prefactor  = 11.5175
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.5579
  Prefactor  = 0.0001
  norm       = 0.105815
  Prefactor  = 13.7732
  Prefactor  = 6.42344
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3429
  Prefactor  = 0.0001
  Prefactor  = 14.6335
  Normalizat = 1.22647
  Prefactor  = 0.722763
 **********
 **   18 **HESSE 
 **********

 FCN=   5032.541     FROM HESSE     STATUS=OK           370 CALLS     2931 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    62.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.9801        .15460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.359        7.9844        .10571E-03   -1.4950    
   4  Prefactor     .10000E-03    127.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.0137        .98132E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     27.375        23.878        .76578E-04   -1.4661    
   7  Prefactor     11.517        13.828        .11805E-03   -1.5029    
   8  Prefactor     .10000E-03    48.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.8378        .17823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.5537        .34903E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.1968        .12317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.558        2.4442        .51056E-04   -1.5058    
  13  Prefactor     .10000E-03    18.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10582        6.3781        .13133E-02   -1.5643    
  15  Prefactor     13.773        27.684        .53962E-03   -1.4966    
  16  Prefactor     6.4234        3.8431        .10101E-03   -1.5201    
  17  norm          .10000E-03    4.9250        .15374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.343        8.2188        .11896E-03   -1.5034    
  20  Prefactor     .10000E-03    1.8332        .93498E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.633        20.342        .10471E-03   -1.4943    
  22  Normalizat    1.2265        .25958        .26081E-03   -.85789    
  23  Prefactor     .72276        .17774        .24214E-03   -1.0264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.8713e-09
Minuit parameter uncertainties:
  1  3.90523e-05
  2  1.81503e-06
  3  7.98504
  4  2.13227e-05
  5  1.66906e-07
  6  23.8865
  7  13.8322
  8  0.000116012
  9  6.25132e-05
  10  1.76339e-05
  11  1.17448e-05
  12  2.44425
  13  3.29798e-05
  14  1.64245
  15  27.7095
  16  3.84328
  17  6.59905e-07
  18  1.5068e-05
  19  8.21959
  20  1.17147e-06
  21  20.3517
  22  0.25985
  23  0.177875
Done.

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

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  3.298e-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:  7.228e-01  1.779e-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.226e+00  2.599e-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: 8.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/996106/likelihoodResults_517968001_518227201_4FGL_J0348.6-1609_daily_bin1075.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) = 5032.54082207
delta logL = -0.000264585809418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5032.54056029
delta logL = -2.79783489532e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14349E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5874       1.0000          .0000       10.000    
     3 'Normalizat'    1.2265       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72276       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5032.541     FROM MIGRAD    STATUS=FAILED        96 CALLS      287 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12910E-03    23.372        .18142E-01** at limit **
   2  Index         2.2983        7.0499        .50000        .24235E-04
   3  Normalizat    1.2265        .59064E-02    .26081E-03   -.78462E-06
   4  Prefactor     .72276        .43475E-02    .24214E-03   -.23476E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5032.541     FROM SIMPLEX   STATUS=PROGRESS      99 CALLS      386 TOTAL
                     EDM=   .74E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10328E-03    23.372        .64946E-03** at limit **
   2  Index         2.2920        7.0499        .21087E-02    .24235E-04
   3  Normalizat    1.2265        .59064E-02    .36881E-05   -.78462E-06
   4  Prefactor     .72276        .43475E-02    .35587E-05   -.23476E-04
                               ERR DEF=  .500    
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5032.537     FROM MIGRAD    STATUS=FAILED       165 CALLS      551 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6049        58.026        .63188E-02    .12413E-02
   2  Index         1.3832        1.8865        .23803E-01   -.12285E-03
   3  Normalizat    1.2274        .23925        .20865E-05   -.10898E-05
   4  Prefactor     .72128        .17693        .19371E-05   -.11738E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.60495
  Index      = 1.38318
  Normalizat = 1.22739
  Prefactor  = 0.721282
 **********
 **   18 **HESSE 
 **********

 FCN=   5032.537     FROM HESSE     STATUS=OK            27 CALLS      578 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6049        59.691        .12638E-02   -1.5455    
   2  Index         1.3832        1.9099        .47605E-02   -.80866    
   3  Normalizat    1.2274        .24667        .41729E-06   -.85761    
   4  Prefactor     .72128        .18198        .38742E-06   -1.0270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.79365e-11
Minuit parameter uncertainties:
  1  19.5961
  2  2.02389
  3  0.246903
  4  0.182134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/996106': 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): 1
logL (Free Index) = 5032.53695028
delta logL = 0.0036072093335

Extracting fit parameters...

4FGL J0348.6-1609
   Spectrum: PowerLaw
277    Prefactor:  1.605e+00  1.960e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  1.383e+00  2.024e+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:  7.213e-01  1.821e-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.227e+00  2.469e-01  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/996106/cmap_HighResolution_517968001_518227201_4FGL_J0348.6-1609_daily_bin1075.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.80e-03', job_status='DONE', photon_flux_upper_limit='8.81e-08', time_completed='2021-08-19 14:10:38.267239', job_id='996106', GAL2='0.72', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1629407438.27', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='3.61e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1075' AND source_name='4FGL J0348.6-1609' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 14:10:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 996106: <4FGL_J0348.6-1609_daily_bin1075> in cluster <slac> Done

Job <4FGL_J0348.6-1609_daily_bin1075> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Aug 19 13:55:18 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:55:19 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:55:19 2021
Terminated at Thu Aug 19 14:10:38 2021
Results reported at Thu Aug 19 14:10:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.6-1609_daily_bin1075 57.1532 -16.1654 517968001 518227201 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 :                                   673.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            920 sec.

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

