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


Performing analysis on: 4FGL_J2347.0+5141_daily_bin375
RA = 356.766, Dec = 51.6966
tmin = 336528001, tmax = 336787201
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='106123', job_status='RUN', time_executed='2021-09-30 04:15:56.654672', time_epoch_executed='1633000556.65' WHERE source_name='4FGL J2347.0+5141' and cadence='daily' and bin_id='375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/106123

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/106123/ft1_4FGL_J2347.0+5141_daily_bin375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/106123/ft2_4FGL_J2347.0+5141_daily_bin375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/106123/ft1_4FGL_J2347.0+5141_daily_bin375.fits outfile=/scratch/kocevski/106123/ft1_filteredMKT_4FGL_J2347.0+5141_daily_bin375.fits ra=356.766 dec=51.6966 rad=12.0 tmin=336528001.0 tmax=336787201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.83
user 5.51
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/106123/ft2_4FGL_J2347.0+5141_daily_bin375.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/106123/ft2_4FGL_J2347.0+5141_daily_bin375.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/106123/ft1_filteredMKT_4FGL_J2347.0+5141_daily_bin375.fits evtable="EVENTS" outfile="/scratch/kocevski/106123/ft1_filtered_4FGL_J2347.0+5141_daily_bin375.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.49
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/106123/ft1_filtered_4FGL_J2347.0+5141_daily_bin375.fits" evtable="EVENTS" scfile=/scratch/kocevski/106123/ft2_4FGL_J2347.0+5141_daily_bin375.fits sctable="SC_DATA" outfile=/scratch/kocevski/106123/ltcube_336528001_336787201_4FGL_J2347.0+5141_daily_bin375.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/106123/ft2_4FGL_J2347.0+5141_daily_bin375.fits
.....................!
real 11.63
user 11.24
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/106123/ft1_filtered_4FGL_J2347.0+5141_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/106123/ft2_4FGL_J2347.0+5141_daily_bin375.fits sctable="SC_DATA" expcube=/scratch/kocevski/106123/ltcube_336528001_336787201_4FGL_J2347.0+5141_daily_bin375.fits outfile=/scratch/kocevski/106123/expmap_336528001_336787201_4FGL_J2347.0+5141_daily_bin375.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/106123/ltcube_336528001_336787201_4FGL_J2347.0+5141_daily_bin375.fits
.....................!
real 191.29
user 185.47
sys 5.51

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 FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Added 195 point sources and 4 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 J2347.0+5141 @ 356.766 51.6966

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/106123/ft1_filtered_4FGL_J2347.0+5141_daily_bin375.fits scfile=/scratch/kocevski/106123/ft2_4FGL_J2347.0+5141_daily_bin375.fits outfile=/scratch/kocevski/106123/cmap_336528001_336787201_4FGL_J2347.0+5141_daily_bin375.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=356.766 yref=51.6966 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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/106123/ft1_filtered_4FGL_J2347.0+5141_daily_bin375.fits scfile=/scratch/kocevski/106123/ft2_4FGL_J2347.0+5141_daily_bin375.fits outfile=/scratch/kocevski/106123/cmap_HighResolution_336528001_336787201_4FGL_J2347.0+5141_daily_bin375.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=356.766 yref=51.6966 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.53
user 0.35
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/106123/ft1_filtered_4FGL_J2347.0+5141_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/106123/ft2_4FGL_J2347.0+5141_daily_bin375.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/106123/Model_4FGL_J2347.0+5141_daily_bin375.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 CTB 109
adding source EG_v02
adding source FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/106123/ft1_filtered_4FGL_J2347.0+5141_daily_bin375.fits.....................!
real 176.19
user 174.73
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/106123/ft1_filtered_4FGL_J2347.0+5141_daily_bin375.fits', '/scratch/kocevski/106123/ft2_4FGL_J2347.0+5141_daily_bin375.fits', expMap='/scratch/kocevski/106123/expmap_336528001_336787201_4FGL_J2347.0+5141_daily_bin375.fits', expCube='/scratch/kocevski/106123/ltcube_336528001_336787201_4FGL_J2347.0+5141_daily_bin375.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/106123/Model_4FGL_J2347.0+5141_daily_bin375.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2347.0+5141'

4FGL J2347.0+5141
   Spectrum: LogParabola
615         norm:  7.273e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
616        alpha:  1.746e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
617         beta:  3.654e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
618           Eb:  1.935e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/106123/ft1_filtered_4FGL_J2347.0+5141_daily_bin375.fits
Spacecraft file(s): /scratch/kocevski/106123/ft2_4FGL_J2347.0+5141_daily_bin375.fits
Exposure map: /scratch/kocevski/106123/expmap_336528001_336787201_4FGL_J2347.0+5141_daily_bin375.fits
Exposure cube: /scratch/kocevski/106123/ltcube_336528001_336787201_4FGL_J2347.0+5141_daily_bin375.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/106123/Model_4FGL_J2347.0+5141_daily_bin375.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) = 12544.8461551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5856       1.0000         .10000E-03   10000.    
     3 'norm      '    3.5806       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8129       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12768E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.5139       1.0000         .10000E-03   10000.    
    10 'norm      '    30.147       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.2993       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.8897       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .78529       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12544.80     FROM MIGRAD    STATUS=CONVERGED    310 CALLS     1264 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.148        .47351E-07** at limit **
   2  Prefactor     1.5937        42.146        .15228E-04    .74644E-05
   3  norm          3.5806        2.3833        .39474E-07    .54934E-04
   4  Prefactor     2.8118        4.6642        .51902E-05    .23153E-03
   5  Prefactor     .10000E-03    68.285       -.37057E-05** at limit **
   6  Prefactor     .10007E-03    227.30        .11043E-04** at limit **
   7  norm          .10000E-03    2.6790       -.16857E-07** at limit **
   8  Prefactor     .10000E-03    50.376        .32718E-05** at limit **
   9  norm          9.5030        16.222        .12386E-06   -.26692E-04
  10  norm          30.204        37.152       -.51076E-05    .95568E-04
  11  Prefactor     .10000E-03    22.581        .76854E-06** at limit **
  12  norm          .10000E-03    17.243        .77169E-07** at limit **
  13  norm          9.3000        8.9382        .64439E-07    .21854E-05
  14  Prefactor     .10000E-03    22.005       -.10525E-05** at limit **
  15  Normalizat    1.8899        .25491       -.39221E-05   -.42174E-04
  16  Prefactor     .78528        .40596E-01    .21335E-06   -.86932E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.5937
  norm       = 3.58062
  Prefactor  = 2.81182
  Prefactor  = 0.000100002
  Prefactor  = 0.000100067
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.50298
  norm       = 30.2043
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.29998
  Prefactor  = 0.0001
  Normalizat = 1.88989
  Prefactor  = 0.78528
 **********
 **   18 **HESSE 
 **********

 FCN=   12544.80     FROM HESSE     STATUS=OK           199 CALLS     1463 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.5937        41.765        .16857E-02   -1.5455    
   3  norm          3.5806        2.3835        .13712E-03   -1.5329    
   4  Prefactor     2.8118        4.6653        .12126E-02   -1.5373    
   5  Prefactor     .10000E-03    69.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10007E-03    233.92        .41186E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.6854        .17903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    50.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.5030        16.222        .12992E-03   -1.5091    
  10  norm          30.204        37.310        .36486E-03   -1.4608    
  11  Prefactor     .10000E-03    22.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    17.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.3000        8.9414        .13142E-03   -1.5098    
  14  Prefactor     .10000E-03    22.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.8899        .26774        .51583E-03   -.67340    
  16  Prefactor     .78528        .42877E-01    .12420E-03   -1.0027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.45645e-10
Minuit parameter uncertainties:
  1  7.73243e-07
  2  16.3292
  3  2.38354
  4  4.66591
  5  0.000742549
  6  0.00796386
  7  3.5532e-06
  8  0.000191635
  9  16.2292
  10  37.3393
  11  3.30345e-05
  12  3.96844e-06
  13  8.94265
  14  4.59473e-05
  15  0.267945
  16  0.0428785
Done.

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

Extracting fit parameters...

4FGL J2347.0+5141
   Spectrum: LogParabola
615         norm:  9.300e+00  8.943e+00  1.000e-04  1.000e+04 ( 1.000e-13)
616        alpha:  1.746e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
617         beta:  3.654e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
618           Eb:  1.935e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  7.853e-01  4.288e-02  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
656   Normalization:  1.890e+00  2.679e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.70
Ra Dec: 356.766 51.697
Photon Index (Fixed Index): 1.75 +/- 0.00
Photon Flux (Fixed Index): 1.88e-08 +/- 1.81e-08
Energy Flux (Fixed Index): 2.56e-05 +/- 2.46e-05

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) = 12544.3107797
delta logL = 0.490105984702

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12544.1686384
delta logL = 0.632247262258

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4786       1.0000         .10000E-03   10000.    
     2 'alpha     '    .84354       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8995       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78530       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12544.17     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      228 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4875        4.7136         .0000       -.74719E-02
   2  alpha         .84313        .51019         .0000       -.65236E-04
   3  Normalizat    1.9002        .24194         .0000        .91418E-05
   4  Prefactor     .78523        .40143E-01     .0000       -.17156E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.48748
  alpha      = 0.843127
  Normalizat = 1.90019
  Prefactor  = 0.785227
 **********
 **   18 **HESSE 
 **********

 FCN=   12544.17     FROM HESSE     STATUS=OK            31 CALLS      259 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4875        6.9894        .95130E-03   -1.5284    
   2  alpha         .84313        .72709        .28811E-02   -.72448    
   3  Normalizat    1.9002        .25423        .51485E-03   -.67076    
   4  Prefactor     .78523        .42313E-01    .12421E-03   -1.0028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.902e-11
Minuit parameter uncertainties:
  1  6.99064
  2  0.746739
  3  0.254405
  4  0.0423148
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/106123': 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) = 12544.1686315
delta logL = 0.632254239936

Extracting fit parameters...

4FGL J2347.0+5141
   Spectrum: LogParabola
615         norm:  4.487e+00  6.991e+00  1.000e-04  1.000e+04 ( 1.000e-13)
616        alpha:  8.431e-01  7.467e-01  0.000e+00  5.000e+00 ( 1.000e+00)
617         beta:  3.654e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
618           Eb:  1.935e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  7.852e-01  4.231e-02  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
656   Normalization:  1.900e+00  2.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.95
Ra Dec: 356.766 51.697
Photon Index (Free Index): 0.84 +/- 0.75
Photon Flux (Free Index): 5.74e-09 +/- 6.46e-09
Energy Flux (Free Index): 9.70e-05 +/- 1.38e-04

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/106123/cmap_HighResolution_336528001_336787201_4FGL_J2347.0+5141_daily_bin375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.88e-08', energy_flux2='9.70e-05', photon_flux_error='1.81e-08', dlogl='6.32e-01', energy_flux='2.56e-05', photon_flux2='5.74e-09', job_status='DONE', time_completed='2021-09-30 04:29:47.601027', photon_index_error2='0.75', photon_index2='0.84', ts='6.70', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='1.38e-04', EG='1.89', time_epoch_completed='1633001387.6', return_code='0', job_id='106123', GAL2='0.79', EG2='1.90', return_code2='0', energy_flux_error='2.46e-05', photon_flux_error2='6.46e-09', ts2='7.95', photon_index='1.75' WHERE bin_id='375' AND source_name='4FGL J2347.0+5141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 04:29:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 106123: <4FGL_J2347.0+5141_daily_bin375> in cluster <slac> Done

Job <4FGL_J2347.0+5141_daily_bin375> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep 30 04:15:40 2021
Job was executed on host(s) <bullet0131>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 04:15:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 04:15:41 2021
Terminated at Thu Sep 30 04:29:48 2021
Results reported at Thu Sep 30 04:29:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.0+5141_daily_bin375 356.766 51.6966 336528001 336787201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2347.0+5141 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   819.34 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             385.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            848 sec.

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

