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


Performing analysis on: 4FGL_J0347.7-3616_daily_bin1025
RA = 56.947, Dec = -36.2808
tmin = 505008001, tmax = 505267201
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='974596', job_status='RUN', time_executed='2021-08-19 12:51:29.408003', time_epoch_executed='1629402689.41' WHERE source_name='4FGL J0347.7-3616' and cadence='daily' and bin_id='1025'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974596

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974596/ft1_4FGL_J0347.7-3616_daily_bin1025.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974596/ft2_4FGL_J0347.7-3616_daily_bin1025.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974596/ft1_4FGL_J0347.7-3616_daily_bin1025.fits outfile=/scratch/kocevski/974596/ft1_filteredMKT_4FGL_J0347.7-3616_daily_bin1025.fits ra=56.947 dec=-36.2808 rad=12.0 tmin=505008001.0 tmax=505267201.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 7.35
user 4.25
sys 3.08

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/974596/ft2_4FGL_J0347.7-3616_daily_bin1025.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/974596/ft2_4FGL_J0347.7-3616_daily_bin1025.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/974596/ft1_filteredMKT_4FGL_J0347.7-3616_daily_bin1025.fits evtable="EVENTS" outfile="/scratch/kocevski/974596/ft1_filtered_4FGL_J0347.7-3616_daily_bin1025.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 3.32
user 0.31
sys 3.00

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/974596/ft1_filtered_4FGL_J0347.7-3616_daily_bin1025.fits" evtable="EVENTS" scfile=/scratch/kocevski/974596/ft2_4FGL_J0347.7-3616_daily_bin1025.fits sctable="SC_DATA" outfile=/scratch/kocevski/974596/ltcube_505008001_505267201_4FGL_J0347.7-3616_daily_bin1025.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/974596/ft2_4FGL_J0347.7-3616_daily_bin1025.fits
.....................!
real 14.92
user 11.39
sys 3.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974596/ft1_filtered_4FGL_J0347.7-3616_daily_bin1025.fits evtable="EVENTS" scfile=/scratch/kocevski/974596/ft2_4FGL_J0347.7-3616_daily_bin1025.fits sctable="SC_DATA" expcube=/scratch/kocevski/974596/ltcube_505008001_505267201_4FGL_J0347.7-3616_daily_bin1025.fits outfile=/scratch/kocevski/974596/expmap_505008001_505267201_4FGL_J0347.7-3616_daily_bin1025.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/974596/ltcube_505008001_505267201_4FGL_J0347.7-3616_daily_bin1025.fits
.....................!
real 194.25
user 185.87
sys 8.06

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 178 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 J0347.7-3616 @ 56.947 -36.2808

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/974596/ft1_filtered_4FGL_J0347.7-3616_daily_bin1025.fits scfile=/scratch/kocevski/974596/ft2_4FGL_J0347.7-3616_daily_bin1025.fits outfile=/scratch/kocevski/974596/cmap_505008001_505267201_4FGL_J0347.7-3616_daily_bin1025.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=56.947 yref=-36.2808 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 3.33
user 0.36
sys 2.93

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974596/ft1_filtered_4FGL_J0347.7-3616_daily_bin1025.fits scfile=/scratch/kocevski/974596/ft2_4FGL_J0347.7-3616_daily_bin1025.fits outfile=/scratch/kocevski/974596/cmap_HighResolution_505008001_505267201_4FGL_J0347.7-3616_daily_bin1025.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=56.947 yref=-36.2808 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 3.32
user 0.38
sys 2.92

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/974596/ft1_filtered_4FGL_J0347.7-3616_daily_bin1025.fits evtable="EVENTS" scfile=/scratch/kocevski/974596/ft2_4FGL_J0347.7-3616_daily_bin1025.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/974596/Model_4FGL_J0347.7-3616_daily_bin1025.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/974596/ft1_filtered_4FGL_J0347.7-3616_daily_bin1025.fits.....................!
real 102.85
user 97.73
sys 4.91

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/974596/ft1_filtered_4FGL_J0347.7-3616_daily_bin1025.fits', '/scratch/kocevski/974596/ft2_4FGL_J0347.7-3616_daily_bin1025.fits', expMap='/scratch/kocevski/974596/expmap_505008001_505267201_4FGL_J0347.7-3616_daily_bin1025.fits', expCube='/scratch/kocevski/974596/ltcube_505008001_505267201_4FGL_J0347.7-3616_daily_bin1025.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/974596/Model_4FGL_J0347.7-3616_daily_bin1025.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0347.7-3616'

4FGL J0347.7-3616
   Spectrum: PowerLaw
268    Prefactor:  1.940e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.395e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  1.094e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/974596/ft1_filtered_4FGL_J0347.7-3616_daily_bin1025.fits
Spacecraft file(s): /scratch/kocevski/974596/ft2_4FGL_J0347.7-3616_daily_bin1025.fits
Exposure map: /scratch/kocevski/974596/expmap_505008001_505267201_4FGL_J0347.7-3616_daily_bin1025.fits
Exposure cube: /scratch/kocevski/974596/ltcube_505008001_505267201_4FGL_J0347.7-3616_daily_bin1025.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/974596/Model_4FGL_J0347.7-3616_daily_bin1025.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) = 4422.87661594

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8395       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.815       1.0000         .10000E-03   10000.    
     5 'norm      '    1.5136       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.587       1.0000         .10000E-03   10000.    
     8 'Prefactor '    81.163       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.4709       1.0000         .10000E-03   10000.    
    16 'Prefactor '    62.888       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.760       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.496       1.0000         .10000E-03   10000.    
    19 'norm      '    16.519       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .86081       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .75385       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5690E+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=   4422.865     FROM MIGRAD    STATUS=CONVERGED    773 CALLS     2910 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    126.26        .18142E-02** at limit **
   2  Prefactor     1.8428        117.90        .15379E-02   -.10416E-04
   3  Prefactor     .10000E-03    13.469        .18142E-02** at limit **
   4  Prefactor     14.808        43.757        .10406E-03   -.11034E-04
   5  norm          1.5135        2.2319        .11817E-03   -.14815E-04
   6  norm          .10000E-03    .52653        .92001E-04** at limit **
   7  Prefactor     17.598        41.849        .95504E-04    .84517E-05
   8  Prefactor     81.170        64.241        .44582E-04   -.12852E-04
   9  Prefactor     .10000E-03    1.6480        .83203E-03** at limit **
  10  Prefactor     .10000E-03    87.722        .41846E-02** at limit **
  11  norm          .10000E-03    .33564        .37202E-03** at limit **
  12  Prefactor     .10000E-03    62.134        .18142E-02** at limit **
  13  norm          .10000E-03    5.1413        .14722E-02** at limit **
  14  norm          .10000E-03    .13044        .44674E-03** at limit **
  15  norm          4.4726        5.7598        .17459E-03   -.10275E-03
  16  Prefactor     62.894        45.822        .50601E-04    .22467E-06
  17  Prefactor     25.767        27.792        .78928E-04   -.36298E-04
  18  Prefactor     17.497        22.845        .95752E-04   -.28852E-04
  19  norm          16.519        2.1869        .27624E-04   -.30454E-03
  20  Normalizat    .86071        .23495        .24913E-03   -.18881E-03
  21  Prefactor     .75399        .24901        .29895E-03   -.22285E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.84276
  Prefactor  = 0.0001
  Prefactor  = 14.808
  norm       = 1.51352
  norm       = 0.0001
  Prefactor  = 17.5978
  Prefactor  = 81.17
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.47257
  Prefactor  = 62.8943
  Prefactor  = 25.7669
  Prefactor  = 17.4968
  norm       = 16.5189
  Normalizat = 0.860707
  Prefactor  = 0.75399
 **********
 **   18 **HESSE 
 **********

 FCN=   4422.865     FROM HESSE     STATUS=OK           297 CALLS     3207 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    126.26        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.8428        117.04        .61514E-04   -1.5436    
   3  Prefactor     .10000E-03    13.469        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.808        43.762        .41624E-05   -1.4938    
   5  norm          1.5135        2.2312        .47269E-05   -1.5462    
   6  norm          .10000E-03    .52653        .18400E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.598        41.848        .38202E-05   -1.4869    
   8  Prefactor     81.170        64.238        .89164E-05   -1.3904    
   9  Prefactor     .10000E-03    1.6481        .16641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    89.953        .16738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .33565        .74403E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    62.135        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.1414        .29443E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .13047        .89348E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.4726        5.7594        .69836E-05   -1.5285    
  16  Prefactor     62.894        45.778        .20240E-05   -1.4120    
  17  Prefactor     25.767        27.787        .31571E-05   -1.4692    
  18  Prefactor     17.497        22.845        .38301E-05   -1.4871    
  19  norm          16.519        2.1871        .11050E-05   -1.4895    
  20  Normalizat    .86071        .23468        .49826E-04   -.97855    
  21  Prefactor     .75399        .24920        .11958E-04   -1.0145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12621e-10
Minuit parameter uncertainties:
  1  0.000109006
  2  29.4314
  3  1.1665e-05
  4  43.8571
  5  2.23136
  6  1.10625e-05
  7  41.9178
  8  64.2926
  9  2.38454e-06
  10  0.000158529
  11  9.81591e-07
  12  7.65978e-05
  13  6.73745e-06
  14  9.74329e-07
  15  5.76007
  16  45.8037
  17  27.8008
  18  22.8566
  19  2.18712
  20  0.234954
  21  0.249576
Done.

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

Extracting fit parameters...

4FGL J0347.7-3616
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.585e-04  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.395e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  1.094e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
566    Prefactor:  7.540e-01  2.496e-01  0.000e+00  1.000e+01 ( 1.000e+00)
567        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
568        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  8.607e-01  2.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 56.947 -36.281
Photon Flux Upper Limit: 7.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/974596/likelihoodResults_505008001_505267201_4FGL_J0347.7-3616_daily_bin1025.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) = 4422.86545757
delta logL = -5.31454661541e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4422.86545756
delta logL = -5.31343966941e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96331E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3947       1.0000          .0000       10.000    
     3 'Normalizat'    .86070       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75400       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4422.865     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      224 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .40119        .90715E-01** at limit **
   2  Index         2.4059        6.3093        .50000       -.10986E-05
   3  Normalizat    .86071        .95039E-03    .44397E-01   -.12676E-03
   4  Prefactor     .75399        .10799E-02    .67567E-01   -.11784E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.40589
  Normalizat = 0.86071
  Prefactor  = 0.753987
 **********
 **   18 **HESSE 
 **********

 FCN=   4422.865     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      261 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    119.27        .41380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4059        5.2334        .50000       -.54547    
   3  Normalizat    .86071        .55687E-02    .24913E-03   -.97855    
   4  Prefactor     .75399        .63203E-02    .29895E-03   -1.0145    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.23142e-09
Minuit parameter uncertainties:
  1  0.000325636
  2  143.503
  3  0.0055687
  4  0.00632033
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974596': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4422.86540442
delta logL = 3.06499714497e-09

Extracting fit parameters...

4FGL J0347.7-3616
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  3.256e-04  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.406e+00  1.435e+02  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  1.094e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
566    Prefactor:  7.540e-01  6.320e-03  0.000e+00  1.000e+01 ( 1.000e+00)
567        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
568        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  8.607e-01  5.569e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 56.947 -36.281

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/974596/cmap_HighResolution_505008001_505267201_4FGL_J0347.7-3616_daily_bin1025.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.09e-03', job_status='DONE', photon_flux_upper_limit='7.88e-08', time_completed='2021-08-19 13:02:57.047761', job_id='974596', GAL2='0.75', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1629403377.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='3.06e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1025' AND source_name='4FGL J0347.7-3616' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:02:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 974596: <4FGL_J0347.7-3616_daily_bin1025> in cluster <slac> Done

Job <4FGL_J0347.7-3616_daily_bin1025> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Aug 19 12:50:28 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 12:50:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 12:50:29 2021
Terminated at Thu Aug 19 13:02:58 2021
Results reported at Thu Aug 19 13:02:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0347.7-3616_daily_bin1025 56.947 -36.2808 505008001 505267201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0347.7-3616 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   722.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            750 sec.

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

