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


Performing analysis on: 4FGL_J1347.6-3751_daily_bin1188
RA = 206.913, Dec = -37.8633
tmin = 547257601, tmax = 547516801
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='969425', job_status='RUN', time_executed='2021-09-08 12:35:54.655640', time_epoch_executed='1631129754.66' WHERE source_name='4FGL J1347.6-3751' and cadence='daily' and bin_id='1188'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/969425

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/969425/ft1_4FGL_J1347.6-3751_daily_bin1188.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/969425/ft2_4FGL_J1347.6-3751_daily_bin1188.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/969425/ft1_4FGL_J1347.6-3751_daily_bin1188.fits outfile=/scratch/kocevski/969425/ft1_filteredMKT_4FGL_J1347.6-3751_daily_bin1188.fits ra=206.913 dec=-37.8633 rad=12.0 tmin=547257601.0 tmax=547516801.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.59
user 3.33
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/969425/ft2_4FGL_J1347.6-3751_daily_bin1188.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/969425/ft2_4FGL_J1347.6-3751_daily_bin1188.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/969425/ft1_filteredMKT_4FGL_J1347.6-3751_daily_bin1188.fits evtable="EVENTS" outfile="/scratch/kocevski/969425/ft1_filtered_4FGL_J1347.6-3751_daily_bin1188.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.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/969425/ft1_filtered_4FGL_J1347.6-3751_daily_bin1188.fits" evtable="EVENTS" scfile=/scratch/kocevski/969425/ft2_4FGL_J1347.6-3751_daily_bin1188.fits sctable="SC_DATA" outfile=/scratch/kocevski/969425/ltcube_547257601_547516801_4FGL_J1347.6-3751_daily_bin1188.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/969425/ft2_4FGL_J1347.6-3751_daily_bin1188.fits
.....................!
real 15.04
user 14.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/969425/ft1_filtered_4FGL_J1347.6-3751_daily_bin1188.fits evtable="EVENTS" scfile=/scratch/kocevski/969425/ft2_4FGL_J1347.6-3751_daily_bin1188.fits sctable="SC_DATA" expcube=/scratch/kocevski/969425/ltcube_547257601_547516801_4FGL_J1347.6-3751_daily_bin1188.fits outfile=/scratch/kocevski/969425/expmap_547257601_547516801_4FGL_J1347.6-3751_daily_bin1188.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/969425/ltcube_547257601_547516801_4FGL_J1347.6-3751_daily_bin1188.fits
.....................!
real 194.83
user 188.87
sys 5.07

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 CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 208 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 J1347.6-3751 @ 206.913 -37.8633

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/969425/ft1_filtered_4FGL_J1347.6-3751_daily_bin1188.fits scfile=/scratch/kocevski/969425/ft2_4FGL_J1347.6-3751_daily_bin1188.fits outfile=/scratch/kocevski/969425/cmap_547257601_547516801_4FGL_J1347.6-3751_daily_bin1188.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=206.913 yref=-37.8633 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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/969425/ft1_filtered_4FGL_J1347.6-3751_daily_bin1188.fits scfile=/scratch/kocevski/969425/ft2_4FGL_J1347.6-3751_daily_bin1188.fits outfile=/scratch/kocevski/969425/cmap_HighResolution_547257601_547516801_4FGL_J1347.6-3751_daily_bin1188.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=206.913 yref=-37.8633 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.56
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/969425/ft1_filtered_4FGL_J1347.6-3751_daily_bin1188.fits evtable="EVENTS" scfile=/scratch/kocevski/969425/ft2_4FGL_J1347.6-3751_daily_bin1188.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/969425/Model_4FGL_J1347.6-3751_daily_bin1188.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/969425/ft1_filtered_4FGL_J1347.6-3751_daily_bin1188.fits......................!
real 56.08
user 54.66
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/969425/ft1_filtered_4FGL_J1347.6-3751_daily_bin1188.fits', '/scratch/kocevski/969425/ft2_4FGL_J1347.6-3751_daily_bin1188.fits', expMap='/scratch/kocevski/969425/expmap_547257601_547516801_4FGL_J1347.6-3751_daily_bin1188.fits', expCube='/scratch/kocevski/969425/ltcube_547257601_547516801_4FGL_J1347.6-3751_daily_bin1188.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/969425/Model_4FGL_J1347.6-3751_daily_bin1188.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1347.6-3751'

4FGL J1347.6-3751
   Spectrum: LogParabola
315         norm:  7.539e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
316        alpha:  2.170e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
317         beta:  1.966e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
318           Eb:  1.069e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/969425/ft1_filtered_4FGL_J1347.6-3751_daily_bin1188.fits
Spacecraft file(s): /scratch/kocevski/969425/ft2_4FGL_J1347.6-3751_daily_bin1188.fits
Exposure map: /scratch/kocevski/969425/expmap_547257601_547516801_4FGL_J1347.6-3751_daily_bin1188.fits
Exposure cube: /scratch/kocevski/969425/ltcube_547257601_547516801_4FGL_J1347.6-3751_daily_bin1188.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/969425/Model_4FGL_J1347.6-3751_daily_bin1188.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) = 2993.75985549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4659       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17316E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10519E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    17.621       1.0000         .10000E-03   10000.    
    11 'norm      '    111.52       1.0000         .10000E-03   10000.    
    12 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.4415       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10978E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10446E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1289.6       1.0000         .10000E-03   10000.    
    17 'Prefactor '    371.35       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10150E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    336.77       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .92698       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0957       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2993.396     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     3510 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4557        14.690        .81713E-05    .40529E-04
   2  Prefactor     .10000E-03    17.088        .19853E-06** at limit **
   3  Prefactor     .10000E-03    863.36        .36787E-04** at limit **
   4  norm          .10000E-03    64.976        .15263E-06** at limit **
   5  Prefactor     .10000E-03    25.750       -.53498E-06** at limit **
   6  norm          .10000E-03    4.8981        .14543E-06** at limit **
   7  Prefactor     .10000E-03    345.30       -.71130E-05** at limit **
   8  Prefactor     .10000E-03    10.995       -.24748E-07** at limit **
   9  Prefactor     .10000E-03    43.205       -.70850E-06** at limit **
  10  norm          17.611        31.814       -.32191E-06    .19872E-06
  11  norm          111.54        109.81       -.93021E-06    .29542E-05
  12  norm          .10000E-03    10.850       -.39241E-07** at limit **
  13  Prefactor     9.4407        7.0360        .19105E-06    .66049E-05
  14  Prefactor     .10001E-03    372.91       -.83423E-05** at limit **
  15  Prefactor     .10000E-03    65.976        .68959E-07** at limit **
  16  Prefactor     1286.8        1866.0        .39406E-04    .12425E-05
  17  Prefactor     370.81        318.00        .13483E-04   -.68136E-05
  18  Prefactor     .10000E-03    16.601       -.34382E-06** at limit **
  19  norm          .10000E-03    2.6114       -.63342E-07** at limit **
  20  Prefactor     .10000E-03    30.987        .38631E-06** at limit **
  21  norm          .10000E-03    .35478        .41926E-06** at limit **
  22  Prefactor     337.30        596.86       -.99698E-05   -.22123E-04
  23  Prefactor     .10000E-03    26.630        .64456E-07** at limit **
  24  norm          .10000E-03    17.360       -.40419E-07** at limit **
  25  Normalizat    .92728        .53410       -.50461E-05   -.20751E-04
  26  Prefactor     1.0957        .19592        .10363E-05   -.68391E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.45572
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.611
  norm       = 111.539
  norm       = 0.0001
  Prefactor  = 9.44071
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 1286.8
  Prefactor  = 370.814
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 337.296
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.927284
  Prefactor  = 1.09566
 **********
 **   18 **HESSE 
 **********

 FCN=   2993.396     FROM HESSE     STATUS=OK           440 CALLS     3950 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4557        14.920        .17757E-02   -1.5467    
   2  Prefactor     .10000E-03    17.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    865.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    65.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.9061        .11825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    345.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.014        .17713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    43.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          17.611        31.836        .95411E-04   -1.4868    
  11  norm          111.54        109.91        .38091E-04   -1.3592    
  12  norm          .10000E-03    10.882        .17598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.4407        7.0604        .11487E-03   -1.5093    
  14  Prefactor     .10001E-03    375.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    65.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1286.8        1875.0        .59674E-04   -.83700    
  17  Prefactor     370.81        317.83        .10577E-03   -1.1832    
  18  Prefactor     .10000E-03    16.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.6153        .86344E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    31.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .65580        .57104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     337.30        568.17        .11087E-03   -1.2014    
  23  Prefactor     .10000E-03    26.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    17.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .92728        .60857        .51752E-03   -.95508    
  26  Prefactor     1.0957        .22689        .17467E-03   -.89605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.53898e-10
Minuit parameter uncertainties:
  1  9.32359
  2  1.08673e-06
  3  0.000362016
  4  4.54018e-05
  5  3.19087e-05
  6  2.22515e-06
  7  0.000267019
  8  2.79211e-06
  9  1.0647e-05
  10  31.8666
  11  110.114
  12  1.10267e-06
  13  7.06099
  14  0.00290586
  15  1.26412e-05
  16  1990.08
  17  319.343
  18  2.26291e-05
  19  1.62975e-06
  20  3.64336e-06
  21  3.15605e-05
  22  577.999
  23  3.0665e-06
  24  5.13311e-06
  25  0.613175
  26  0.227093
Done.

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

Extracting fit parameters...

4FGL J1347.6-3751
   Spectrum: LogParabola
315         norm:  1.115e+02  1.101e+02  1.000e-04  1.000e+04 ( 1.000e-13)
316        alpha:  2.170e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
317         beta:  1.966e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
318           Eb:  1.069e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
699    Prefactor:  1.096e+00  2.271e-01  0.000e+00  1.000e+01 ( 1.000e+00)
700        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
701        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
698   Normalization:  9.273e-01  6.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.88
Ra Dec: 206.913 -37.863
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 9.56e-08 +/- 9.44e-08
Energy Flux (Fixed Index): 4.69e-05 +/- 4.63e-05

TS (Fixed Index): 1.88
Ra Dec: 206.913 -37.863
Photon Flux Upper Limit: 3.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.58e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/969425/likelihoodResults_547257601_547516801_4FGL_J1347.6-3751_daily_bin1188.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) = 2993.24788728
delta logL = 0.148316277269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2993.24518375
delta logL = 0.151019812202

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    86.045       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6783       1.0000          .0000       5.0000    
     3 'Normalizat'    .88789       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1013       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7020E+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=   2993.245     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      281 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          86.040        109.04        .43309E-04    .10361E-03
   2  alpha         2.6780        .94637        .11585E-01    .31217E-04
   3  Normalizat    .88840        .58116        .52716E-03   -.30278E-04
   4  Prefactor     1.1012        .21389        .17418E-03   -.14940E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 86.0405
  alpha      = 2.67803
  Normalizat = 0.888404
  Prefactor  = 1.10119
 **********
 **   18 **HESSE 
 **********

 FCN=   2993.245     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          86.040        103.54        .86619E-05   -1.3850    
   2  alpha         2.6780        .90001        .46340E-03    .71271E-01
   3  Normalizat    .88840        .58060        .21087E-04   -.96869    
   4  Prefactor     1.1012        .21378        .34836E-04   -.89429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27095e-10
Minuit parameter uncertainties:
  1  103.757
  2  0.92079
  3  0.584756
  4  0.213946
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/969425': 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) = 2993.24518328
delta logL = 0.151020281226

Extracting fit parameters...

4FGL J1347.6-3751
   Spectrum: LogParabola
315         norm:  8.604e+01  1.038e+02  1.000e-04  1.000e+04 ( 1.000e-13)
316        alpha:  2.678e+00  9.208e-01  0.000e+00  5.000e+00 ( 1.000e+00)
317         beta:  1.966e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
318           Eb:  1.069e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
699    Prefactor:  1.101e+00  2.139e-01  0.000e+00  1.000e+01 ( 1.000e+00)
700        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
701        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
698   Normalization:  8.884e-01  5.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.17
Ra Dec: 206.913 -37.863
Photon Index (Free Index): 2.68 +/- 0.92
Photon Flux (Free Index): 1.54e-07 +/- 1.69e-07
Energy Flux (Free Index): 4.64e-05 +/- 4.11e-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/969425/cmap_HighResolution_547257601_547516801_4FGL_J1347.6-3751_daily_bin1188.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.58e-04', comment='SUCCESS', photon_flux='9.56e-08', energy_flux2='4.64e-05', photon_flux_error='9.44e-08', dlogl='1.51e-01', energy_flux='4.69e-05', photon_flux2='1.54e-07', job_status='DONE', time_completed='2021-09-08 12:45:54.140019', photon_index_error2='0.92', photon_index2='2.68', ts='1.88', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='3.23e-07', energy_flux_error2='4.11e-05', EG='0.93', time_epoch_completed='1631130354.14', return_code='0', job_id='969425', GAL2='1.10', EG2='0.89', return_code2='0', energy_flux_error='4.63e-05', photon_flux_error2='1.69e-07', ts2='2.17', photon_index='2.17' WHERE bin_id='1188' AND source_name='4FGL J1347.6-3751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 12:45:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 969425: <4FGL_J1347.6-3751_daily_bin1188> in cluster <slac> Done

Job <4FGL_J1347.6-3751_daily_bin1188> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 12:35:16 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 12:35:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 12:35:24 2021
Terminated at Wed Sep  8 12:45:54 2021
Results reported at Wed Sep  8 12:45:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1347.6-3751_daily_bin1188 206.913 -37.8633 547257601 547516801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1347.6-3751 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   595.24 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             297.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   630 sec.
    Turnaround time :                            638 sec.

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

