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


Performing analysis on: 4FGL_J0347.7-3616_daily_bin1376
RA = 56.947, Dec = -36.2808
tmin = 595987201, tmax = 596246401
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='976295', job_status='RUN', time_executed='2021-08-19 12:56:16.619554', time_epoch_executed='1629402976.62' WHERE source_name='4FGL J0347.7-3616' and cadence='daily' and bin_id='1376'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/976295

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/976295/ft1_4FGL_J0347.7-3616_daily_bin1376.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/976295/ft2_4FGL_J0347.7-3616_daily_bin1376.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/976295/ft1_4FGL_J0347.7-3616_daily_bin1376.fits outfile=/scratch/kocevski/976295/ft1_filteredMKT_4FGL_J0347.7-3616_daily_bin1376.fits ra=56.947 dec=-36.2808 rad=12.0 tmin=595987201.0 tmax=596246401.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.77
user 2.95
sys 0.82

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/976295/ft1_filtered_4FGL_J0347.7-3616_daily_bin1376.fits" evtable="EVENTS" scfile=/scratch/kocevski/976295/ft2_4FGL_J0347.7-3616_daily_bin1376.fits sctable="SC_DATA" outfile=/scratch/kocevski/976295/ltcube_595987201_596246401_4FGL_J0347.7-3616_daily_bin1376.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/976295/ft2_4FGL_J0347.7-3616_daily_bin1376.fits
.....................!
real 12.80
user 11.75
sys 1.01

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/976295/ft1_filtered_4FGL_J0347.7-3616_daily_bin1376.fits evtable="EVENTS" scfile=/scratch/kocevski/976295/ft2_4FGL_J0347.7-3616_daily_bin1376.fits sctable="SC_DATA" expcube=/scratch/kocevski/976295/ltcube_595987201_596246401_4FGL_J0347.7-3616_daily_bin1376.fits outfile=/scratch/kocevski/976295/expmap_595987201_596246401_4FGL_J0347.7-3616_daily_bin1376.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/976295/ltcube_595987201_596246401_4FGL_J0347.7-3616_daily_bin1376.fits
.....................!
real 190.81
user 185.55
sys 4.88

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/976295/ft1_filtered_4FGL_J0347.7-3616_daily_bin1376.fits scfile=/scratch/kocevski/976295/ft2_4FGL_J0347.7-3616_daily_bin1376.fits outfile=/scratch/kocevski/976295/cmap_595987201_596246401_4FGL_J0347.7-3616_daily_bin1376.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.15
user 0.39
sys 0.75

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/976295/ft1_filtered_4FGL_J0347.7-3616_daily_bin1376.fits scfile=/scratch/kocevski/976295/ft2_4FGL_J0347.7-3616_daily_bin1376.fits outfile=/scratch/kocevski/976295/cmap_HighResolution_595987201_596246401_4FGL_J0347.7-3616_daily_bin1376.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.14
user 0.37
sys 0.76

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/976295/ft1_filtered_4FGL_J0347.7-3616_daily_bin1376.fits evtable="EVENTS" scfile=/scratch/kocevski/976295/ft2_4FGL_J0347.7-3616_daily_bin1376.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/976295/Model_4FGL_J0347.7-3616_daily_bin1376.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/976295/ft1_filtered_4FGL_J0347.7-3616_daily_bin1376.fits.....................!
real 205.53
user 203.12
sys 1.99

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.1568       1.0000         .10000E-03   10000.    
     6 'norm      '    .95611       1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.229       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.928       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .30859       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.914       1.0000         .10000E-03   10000.    
    11 'norm      '    33.150       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.100       1.0000         .10000E-03   10000.    
    14 'norm      '    .34150       1.0000         .10000E-03   10000.    
    15 'norm      '    15.715       1.0000         .10000E-03   10000.    
    16 'Prefactor '    39.817       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2950       1.0000         .10000E-03   10000.    
    19 'norm      '    1.4574       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3518       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .65377       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=   9590.851     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     2205 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    75.499       -.94168E-06** at limit **
   2  Prefactor     .10000E-03    9.7220       -.96665E-06** at limit **
   3  Prefactor     .10000E-03    5.4853        .23881E-06** at limit **
   4  Prefactor     .10000E-03    19.974        .38916E-07** at limit **
   5  norm          6.1569        2.9020       -.58790E-06   -.34985E-02
   6  norm          .95620        .69715       -.59230E-07   -.58516E-03
   7  Prefactor     26.234        33.835        .39240E-05   -.68615E-04
   8  Prefactor     13.925        33.590       -.34102E-05    .52238E-04
   9  Prefactor     .31083        4.1876       -.27123E-05    .69613E-03
  10  Prefactor     14.915        13.384        .33024E-06    .32753E-05
  11  norm          33.150        2.6095        .17928E-06    .27324E-02
  12  Prefactor     .10000E-03    39.275        .13632E-06** at limit **
  13  norm          10.099        10.487       -.15185E-06    .38563E-04
  14  norm          .34159        .25286       -.23872E-07   -.76484E-03
  15  norm          15.716        6.9085       -.83912E-07    .99637E-04
  16  Prefactor     39.824        28.042        .27731E-05   -.97528E-04
  17  Prefactor     .10000E-03    7.4417       -.83496E-06** at limit **
  18  Prefactor     5.2977        8.9999       -.14784E-05   -.10555E-03
  19  norm          1.4573        .55113       -.34249E-07    .41798E-03
  20  Normalizat    1.3514        .16830        .74199E-06    .23246E-03
  21  Prefactor     .65412        .17739       -.12267E-05    .16965E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.15686
  norm       = 0.956199
  Prefactor  = 26.2336
  Prefactor  = 13.9251
  Prefactor  = 0.310827
  Prefactor  = 14.9154
  norm       = 33.15
  Prefactor  = 0.0001
  norm       = 10.0992
  norm       = 0.341585
  norm       = 15.7157
  Prefactor  = 39.8237
  Prefactor  = 0.0001
  Prefactor  = 5.29772
  norm       = 1.45727
  Normalizat = 1.3514
  Prefactor  = 0.654121
 **********
 **   18 **HESSE 
 **********

 FCN=   9590.851     FROM HESSE     STATUS=OK           323 CALLS     2528 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    75.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.7242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.4851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.1569        3.3516        .63286E-03   -1.5212    
   6  norm          .95620        .66781        .66543E-03   -1.5512    
   7  Prefactor     26.234        33.260        .78220E-04   -1.4683    
   8  Prefactor     13.925        33.405        .10732E-03   -1.4961    
   9  Prefactor     .31083        16.919        .35424E-02   -1.5596    
  10  Prefactor     14.915        13.377        .10371E-03   -1.4935    
  11  norm          33.150        2.6073        .41268E-04   -1.4556    
  12  Prefactor     .10000E-03    39.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.099        10.495        .12608E-03   -1.5072    
  14  norm          .34159        .24148        .39398E-03   -1.5591    
  15  norm          15.716        6.8849        .10103E-03   -1.4915    
  16  Prefactor     39.824        27.601        .63522E-04   -1.4445    
  17  Prefactor     .10000E-03    7.4349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.2977        9.1782        .17467E-03   -1.5248    
  19  norm          1.4573        .55433        .38442E-04   -1.5467    
  20  Normalizat    1.3514        .20179        .25492E-03   -.82045    
  21  Prefactor     .65412        .20906        .38414E-03   -1.0535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.70547e-09
Minuit parameter uncertainties:
  1  6.164e-05
  2  3.18372e-05
  3  7.15874e-06
  4  8.55932e-06
  5  3.35173
  6  0.667814
  7  33.2832
  8  33.4497
  9  4.58712
  10  13.3801
  11  2.60733
  12  7.66797e-06
  13  10.497
  14  0.241478
  15  6.88523
  16  27.6101
  17  5.57213e-05
  18  9.1806
  19  0.554333
  20  0.201906
  21  0.20931
Done.

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

Extracting fit parameters...

4FGL J0347.7-3616
   Spectrum: PowerLaw
268    Prefactor:  1.492e+01  1.338e+01  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:  6.541e-01  2.093e-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:  1.351e+00  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.13
Ra Dec: 56.947 -36.281
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 3.29e-08 +/- 2.95e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 9.74e-06

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

Saving results to:
/scratch/kocevski/976295/likelihoodResults_595987201_596246401_4FGL_J0347.7-3616_daily_bin1376.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) = 9590.85145773
delta logL = 5.6855060393e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9590.85145385
delta logL = 9.57074735197e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.957       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3915       1.0000          .0000       10.000    
     3 'Normalizat'    1.3514       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65414       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=   9590.851     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      270 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.959        17.563        .10356E-03   -.34470E-03
   2  Index         2.3916        .74618        .95432E-02   -.53427E-04
   3  Normalizat    1.3515        .19214        .25491E-03   -.72213E-04
   4  Prefactor     .65404        .20761        .38416E-03   -.35394E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9586
  Index      = 2.39156
  Normalizat = 1.3515
  Prefactor  = 0.654039
 **********
 **   18 **HESSE 
 **********

 FCN=   9590.851     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.959        16.534        .41425E-05   -1.4934    
   2  Index         2.3916        .70234        .38173E-03   -.54883    
   3  Normalizat    1.3515        .19211        .50983E-04   -.82042    
   4  Prefactor     .65404        .20761        .15366E-04   -1.0536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44125e-10
Minuit parameter uncertainties:
  1  16.5386
  2  0.705557
  3  0.192217
  4  0.207858
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/976295': 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) = 9590.85145368
delta logL = 9.73345777311e-06

Extracting fit parameters...

4FGL J0347.7-3616
   Spectrum: PowerLaw
268    Prefactor:  1.496e+01  1.654e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.392e+00  7.056e-01  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:  6.540e-01  2.079e-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:  1.352e+00  1.922e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.11
Ra Dec: 56.947 -36.281
Photon Index (Free Index): 2.39 +/- 0.71
Photon Flux (Free Index): 3.28e-08 +/- 3.38e-08
Energy Flux (Free Index): 1.09e-05 +/- 1.07e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/976295/cmap_HighResolution_595987201_596246401_4FGL_J0347.7-3616_daily_bin1376.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.69e-03', comment='SUCCESS', photon_flux='3.29e-08', energy_flux2='1.09e-05', photon_flux_error='2.95e-08', dlogl='9.73e-06', energy_flux='1.09e-05', photon_flux2='3.28e-08', job_status='DONE', time_completed='2021-08-19 13:12:06.177771', photon_index_error2='0.71', photon_index2='2.39', ts='2.13', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='9.96e-08', energy_flux_error2='1.07e-05', EG='1.35', time_epoch_completed='1629403926.18', return_code='0', job_id='976295', GAL2='0.65', EG2='1.35', return_code2='0', energy_flux_error='9.74e-06', photon_flux_error2='3.38e-08', ts2='2.11', photon_index='2.39' WHERE bin_id='1376' AND source_name='4FGL J0347.7-3616' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:12:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 976295: <4FGL_J0347.7-3616_daily_bin1376> in cluster <slac> Done

Job <4FGL_J0347.7-3616_daily_bin1376> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Aug 19 12:55:55 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 12:55:57 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:55:57 2021
Terminated at Thu Aug 19 13:12:07 2021
Results reported at Thu Aug 19 13:12:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0347.7-3616_daily_bin1376 56.947 -36.2808 595987201 596246401 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 :                                   952.00 sec.
    Max Memory :                                 1160 MB
    Average Memory :                             368.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            972 sec.

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

