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


Performing analysis on: 4FGL_J0347.7-3616_daily_bin446
RA = 56.947, Dec = -36.2808
tmin = 354931201, tmax = 355190401
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='971796', job_status='RUN', time_executed='2021-08-19 12:40:52.357588', time_epoch_executed='1629402052.36' WHERE source_name='4FGL J0347.7-3616' and cadence='daily' and bin_id='446'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/971796

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/971796/ft1_4FGL_J0347.7-3616_daily_bin446.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/971796/ft2_4FGL_J0347.7-3616_daily_bin446.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/971796/ft1_4FGL_J0347.7-3616_daily_bin446.fits outfile=/scratch/kocevski/971796/ft1_filteredMKT_4FGL_J0347.7-3616_daily_bin446.fits ra=56.947 dec=-36.2808 rad=12.0 tmin=354931201.0 tmax=355190401.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.26
user 3.10
sys 1.11

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/971796/ft2_4FGL_J0347.7-3616_daily_bin446.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/971796/ft1_filteredMKT_4FGL_J0347.7-3616_daily_bin446.fits evtable="EVENTS" outfile="/scratch/kocevski/971796/ft1_filtered_4FGL_J0347.7-3616_daily_bin446.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.41
user 0.33
sys 1.05

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/971796/ft1_filtered_4FGL_J0347.7-3616_daily_bin446.fits" evtable="EVENTS" scfile=/scratch/kocevski/971796/ft2_4FGL_J0347.7-3616_daily_bin446.fits sctable="SC_DATA" outfile=/scratch/kocevski/971796/ltcube_354931201_355190401_4FGL_J0347.7-3616_daily_bin446.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/971796/ft2_4FGL_J0347.7-3616_daily_bin446.fits
.....................!
real 13.08
user 11.66
sys 1.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/971796/ft1_filtered_4FGL_J0347.7-3616_daily_bin446.fits evtable="EVENTS" scfile=/scratch/kocevski/971796/ft2_4FGL_J0347.7-3616_daily_bin446.fits sctable="SC_DATA" expcube=/scratch/kocevski/971796/ltcube_354931201_355190401_4FGL_J0347.7-3616_daily_bin446.fits outfile=/scratch/kocevski/971796/expmap_354931201_355190401_4FGL_J0347.7-3616_daily_bin446.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/971796/ltcube_354931201_355190401_4FGL_J0347.7-3616_daily_bin446.fits
.....................!
real 194.25
user 186.90
sys 6.81

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/971796/ft1_filtered_4FGL_J0347.7-3616_daily_bin446.fits scfile=/scratch/kocevski/971796/ft2_4FGL_J0347.7-3616_daily_bin446.fits outfile=/scratch/kocevski/971796/cmap_354931201_355190401_4FGL_J0347.7-3616_daily_bin446.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 1.47
user 0.38
sys 1.05

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/971796/ft1_filtered_4FGL_J0347.7-3616_daily_bin446.fits scfile=/scratch/kocevski/971796/ft2_4FGL_J0347.7-3616_daily_bin446.fits outfile=/scratch/kocevski/971796/cmap_HighResolution_354931201_355190401_4FGL_J0347.7-3616_daily_bin446.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 1.44
user 0.39
sys 1.04

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/971796/ft1_filtered_4FGL_J0347.7-3616_daily_bin446.fits evtable="EVENTS" scfile=/scratch/kocevski/971796/ft2_4FGL_J0347.7-3616_daily_bin446.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/971796/Model_4FGL_J0347.7-3616_daily_bin446.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/971796/ft1_filtered_4FGL_J0347.7-3616_daily_bin446.fits.....................!
real 137.01
user 134.12
sys 2.43

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/971796/ft1_filtered_4FGL_J0347.7-3616_daily_bin446.fits', '/scratch/kocevski/971796/ft2_4FGL_J0347.7-3616_daily_bin446.fits', expMap='/scratch/kocevski/971796/expmap_354931201_355190401_4FGL_J0347.7-3616_daily_bin446.fits', expCube='/scratch/kocevski/971796/ltcube_354931201_355190401_4FGL_J0347.7-3616_daily_bin446.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/971796/Model_4FGL_J0347.7-3616_daily_bin446.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/971796/ft1_filtered_4FGL_J0347.7-3616_daily_bin446.fits
Spacecraft file(s): /scratch/kocevski/971796/ft2_4FGL_J0347.7-3616_daily_bin446.fits
Exposure map: /scratch/kocevski/971796/expmap_354931201_355190401_4FGL_J0347.7-3616_daily_bin446.fits
Exposure cube: /scratch/kocevski/971796/ltcube_354931201_355190401_4FGL_J0347.7-3616_daily_bin446.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/971796/Model_4FGL_J0347.7-3616_daily_bin446.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) = 6587.40615075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.555       1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.516       1.0000         .10000E-03   10000.    
     5 'norm      '    2.5162       1.0000         .10000E-03   10000.    
     6 'norm      '    2.3206       1.0000         .10000E-03   10000.    
     7 'Prefactor '    95.705       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.7101       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.586       1.0000         .10000E-03   10000.    
    13 'norm      '    .52739E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .73801       1.0000         .10000E-03   10000.    
    15 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.989       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .89889       1.0000         .10000E-03   10000.    
    19 'norm      '    1.4637       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .77007       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .78700       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.

 FCN=   6587.379     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2260 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    93.728       -.18245E-05** at limit **
   2  Prefactor     .10000E-03    13.916       -.12711E-06** at limit **
   3  Prefactor     11.553        18.141        .38705E-06   -.27342E-04
   4  Prefactor     32.511        27.078        .62463E-07    .46569E-04
   5  norm          2.5160        2.4873        .20276E-06   -.54364E-03
   6  norm          2.3204        .82060        .12777E-07    .13051E-03
   7  Prefactor     95.699        51.498       -.23879E-07    .33799E-04
   8  Prefactor     .10000E-03    11.545       -.18964E-06** at limit **
   9  Prefactor     7.7086        3.9717        .19385E-06   -.46987E-03
  10  Prefactor     .10000E-03    4.3149        .89472E-07** at limit **
  11  norm          .10000E-03    .32408        .38318E-06** at limit **
  12  Prefactor     22.574        36.828       -.10638E-05    .57123E-04
  13  norm          .10000E-03    73.645        .17136E-04** at limit **
  14  norm          .73807        .26622        .39096E-08   -.22510E-02
  15  norm          .10000E-03    5.7961        .70297E-06** at limit **
  16  Prefactor     .10000E-03    12.250        .91293E-06** at limit **
  17  Prefactor     17.995        10.633       -.96743E-06   -.28211E-03
  18  Prefactor     .89005        15.629        .90397E-05   -.19911E-03
  19  norm          1.4642        .56590       -.33913E-06   -.28374E-02
  20  Normalizat    .77012        .13223       -.23895E-05   -.57910E-03
  21  Prefactor     .78694        .15064        .13536E-05   -.27659E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 11.5533
  Prefactor  = 32.5107
  norm       = 2.51595
  norm       = 2.32043
  Prefactor  = 95.6995
  Prefactor  = 0.0001
  Prefactor  = 7.70857
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.5739
  norm       = 0.000100005
  norm       = 0.738073
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.9955
  Prefactor  = 0.890051
  norm       = 1.46417
  Normalizat = 0.77012
  Prefactor  = 0.78694
 **********
 **   18 **HESSE 
 **********

 FCN=   6587.379     FROM HESSE     STATUS=OK           325 CALLS     2585 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    94.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.553        18.139        .11785E-03   -1.5028    
   4  Prefactor     32.511        27.094        .70270E-04   -1.4567    
   5  norm          2.5160        2.4774        .12157E-03   -1.5391    
   6  norm          2.3204        .81814        .41469E-04   -1.5403    
   7  Prefactor     95.699        51.548        .41085E-04   -1.3748    
   8  Prefactor     .10000E-03    11.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.7086        3.9386        .10958E-03   -1.5153    
  10  Prefactor     .10000E-03    4.3291        .16464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .72366        .87870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.574        36.968        .84283E-04   -1.4757    
  13  norm          .10000E-03    6.5459        .66748E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .73807        .26501        .23739E-04   -1.5536    
  15  norm          .10000E-03    6.0905        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.995        10.664        .94432E-04   -1.4859    
  18  Prefactor     .89005        16.797        .27490E-02   -1.5519    
  19  norm          1.4642        .57698        .31124E-04   -1.5466    
  20  Normalizat    .77012        .15350        .21447E-03   -1.0119    
  21  Prefactor     .78694        .17292        .24752E-03   -1.0021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46292e-09
Minuit parameter uncertainties:
  1  0.000678589
  2  9.58671e-05
  3  18.1475
  4  27.1044
  5  2.47754
  6  0.81814
  7  51.5724
  8  5.39448e-05
  9  3.93877
  10  8.27944e-06
  11  1.87908e-05
  12  37.0057
  13  0.000360085
  14  0.265007
  15  8.22516e-05
  16  8.49503e-05
  17  10.6654
  18  7.73519
  19  0.576982
  20  0.153583
  21  0.173039
Done.

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

Extracting fit parameters...

4FGL J0347.7-3616
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  8.279e-06  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.869e-01  1.730e-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:  7.701e-01  1.536e-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: 4.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/971796/likelihoodResults_354931201_355190401_4FGL_J0347.7-3616_daily_bin446.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) = 6587.38041977
delta logL = -0.00109949443777

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6587.37932042
delta logL = -1.38015820994e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3822       1.0000          .0000       10.000    
     3 'Normalizat'    .77022       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78684       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=   6587.379     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      234 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10089E-03    59.080        .16567E-02** at limit **
   2  Index         2.3293        6.3124        .50000        .20620E-04
   3  Normalizat    .77012        .11812E-01    .21447E-03    .16592E-04
   4  Prefactor     .78694        .13859E-01    .24752E-03    .11299E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100886
  Index      = 2.32928
  Normalizat = 0.770124
  Prefactor  = 0.786936
 **********
 **   18 **HESSE 
 **********

 FCN=   6587.379     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10089E-03    250.58        .33133E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3293        8.8237        .50000       -.56349    
   3  Normalizat    .77012        .25720E-01    .85788E-05   -1.0119    
   4  Prefactor     .78694        .30175E-01    .99009E-05   -1.0021    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.73889e-08
Minuit parameter uncertainties:
  1  0.0299178
  2  708.476
  3  0.0257204
  4  0.030176
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/971796': 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) = 6587.37932003
delta logL = 2.51584424404e-07

Extracting fit parameters...

4FGL J0347.7-3616
   Spectrum: PowerLaw
268    Prefactor:  1.009e-04  2.992e-02  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.329e+00  7.085e+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.869e-01  3.018e-02  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:  7.701e-01  2.572e-02  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/971796/cmap_HighResolution_354931201_355190401_4FGL_J0347.7-3616_daily_bin446.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.16e-03', job_status='DONE', photon_flux_upper_limit='4.09e-08', time_completed='2021-08-19 12:53:10.911791', job_id='971796', GAL2='0.79', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1629402790.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='2.52e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='446' AND source_name='4FGL J0347.7-3616' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 12:53:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 971796: <4FGL_J0347.7-3616_daily_bin446> in cluster <slac> Done

Job <4FGL_J0347.7-3616_daily_bin446> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Aug 19 12:40:21 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 12:40:23 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:40:23 2021
Terminated at Thu Aug 19 12:53:14 2021
Results reported at Thu Aug 19 12:53:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0347.7-3616_daily_bin446 56.947 -36.2808 354931201 355190401 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 :                                   755.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             401.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            773 sec.

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

