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


Performing analysis on: 4FGL_J2347.0+5141_daily_bin1110
RA = 356.766, Dec = 51.6966
tmin = 527040001, tmax = 527299201
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='110377', job_status='RUN', time_executed='2021-09-30 04:34:24.071043', time_epoch_executed='1633001664.07' WHERE source_name='4FGL J2347.0+5141' and cadence='daily' and bin_id='1110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/110377

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/110377/ft1_4FGL_J2347.0+5141_daily_bin1110.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/110377/ft2_4FGL_J2347.0+5141_daily_bin1110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/110377/ft1_4FGL_J2347.0+5141_daily_bin1110.fits outfile=/scratch/kocevski/110377/ft1_filteredMKT_4FGL_J2347.0+5141_daily_bin1110.fits ra=356.766 dec=51.6966 rad=12.0 tmin=527040001.0 tmax=527299201.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.98
user 5.67
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/110377/ft2_4FGL_J2347.0+5141_daily_bin1110.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/110377/ft1_filteredMKT_4FGL_J2347.0+5141_daily_bin1110.fits evtable="EVENTS" outfile="/scratch/kocevski/110377/ft1_filtered_4FGL_J2347.0+5141_daily_bin1110.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/110377/ft1_filtered_4FGL_J2347.0+5141_daily_bin1110.fits" evtable="EVENTS" scfile=/scratch/kocevski/110377/ft2_4FGL_J2347.0+5141_daily_bin1110.fits sctable="SC_DATA" outfile=/scratch/kocevski/110377/ltcube_527040001_527299201_4FGL_J2347.0+5141_daily_bin1110.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/110377/ft2_4FGL_J2347.0+5141_daily_bin1110.fits
.....................!
real 11.77
user 11.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/110377/ft1_filtered_4FGL_J2347.0+5141_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/110377/ft2_4FGL_J2347.0+5141_daily_bin1110.fits sctable="SC_DATA" expcube=/scratch/kocevski/110377/ltcube_527040001_527299201_4FGL_J2347.0+5141_daily_bin1110.fits outfile=/scratch/kocevski/110377/expmap_527040001_527299201_4FGL_J2347.0+5141_daily_bin1110.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/110377/ltcube_527040001_527299201_4FGL_J2347.0+5141_daily_bin1110.fits
.....................!
real 191.10
user 185.55
sys 5.23

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/110377/ft1_filtered_4FGL_J2347.0+5141_daily_bin1110.fits scfile=/scratch/kocevski/110377/ft2_4FGL_J2347.0+5141_daily_bin1110.fits outfile=/scratch/kocevski/110377/cmap_527040001_527299201_4FGL_J2347.0+5141_daily_bin1110.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/110377/ft1_filtered_4FGL_J2347.0+5141_daily_bin1110.fits scfile=/scratch/kocevski/110377/ft2_4FGL_J2347.0+5141_daily_bin1110.fits outfile=/scratch/kocevski/110377/cmap_HighResolution_527040001_527299201_4FGL_J2347.0+5141_daily_bin1110.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/110377/ft1_filtered_4FGL_J2347.0+5141_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/110377/ft2_4FGL_J2347.0+5141_daily_bin1110.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/110377/Model_4FGL_J2347.0+5141_daily_bin1110.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/110377/ft1_filtered_4FGL_J2347.0+5141_daily_bin1110.fits......................!
real 54.94
user 53.61
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/110377/ft1_filtered_4FGL_J2347.0+5141_daily_bin1110.fits', '/scratch/kocevski/110377/ft2_4FGL_J2347.0+5141_daily_bin1110.fits', expMap='/scratch/kocevski/110377/expmap_527040001_527299201_4FGL_J2347.0+5141_daily_bin1110.fits', expCube='/scratch/kocevski/110377/ltcube_527040001_527299201_4FGL_J2347.0+5141_daily_bin1110.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/110377/Model_4FGL_J2347.0+5141_daily_bin1110.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/110377/ft1_filtered_4FGL_J2347.0+5141_daily_bin1110.fits
Spacecraft file(s): /scratch/kocevski/110377/ft2_4FGL_J2347.0+5141_daily_bin1110.fits
Exposure map: /scratch/kocevski/110377/expmap_527040001_527299201_4FGL_J2347.0+5141_daily_bin1110.fits
Exposure cube: /scratch/kocevski/110377/ltcube_527040001_527299201_4FGL_J2347.0+5141_daily_bin1110.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/110377/Model_4FGL_J2347.0+5141_daily_bin1110.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) = 3242.7411222

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10535E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.365       1.0000         .10000E-03   10000.    
     3 'norm      '    1.8298       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25223E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .80381       1.0000         .10000E-03   10000.    
     6 'Prefactor '    208.92       1.0000         .10000E-03   10000.    
     7 'norm      '    1.6882       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    12.799       1.0000         .10000E-03   10000.    
    10 'norm      '    .10940E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    155.05       1.0000         .10000E-03   10000.    
    12 'norm      '    40.946       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .42626E-01   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.1699       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .76781       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=   3242.739     FROM MIGRAD    STATUS=CONVERGED    319 CALLS     2099 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    99.822        .37722E-05** at limit **
   2  Prefactor     45.361        46.666       -.24471E-06   -.37517E-04
   3  norm          1.8301        6.8786        .55047E-06   -.71569E-04
   4  Prefactor     .10002E-03    4.7096        .30793E-06** at limit **
   5  Prefactor     .98219        156.72        .18572E-04   -.34313E-04
   6  Prefactor     208.90        168.55        .74521E-06   -.67394E-05
   7  norm          1.6890        32.826        .29696E-06   -.56787E-05
   8  Prefactor     .10000E-03    51.695        .40746E-06** at limit **
   9  norm          12.802        31.496        .71850E-06   -.54046E-05
  10  norm          .10000E-03    26.601        .45747E-07** at limit **
  11  Prefactor     154.91        203.51       -.45967E-06   -.61987E-05
  12  norm          40.911        32.614        .41179E-06    .16077E-05
  13  norm          .10000E-03    172.53        .71855E-05** at limit **
  14  Prefactor     .10005E-03    6219.8        .55997E-04** at limit **
  15  Normalizat    1.1687        .42080       -.45434E-05   -.11598E-03
  16  Prefactor     .76787        .87920E-01   -.36236E-06   -.16405E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 45.3611
  norm       = 1.83014
  Prefactor  = 0.000100023
  Prefactor  = 0.982187
  Prefactor  = 208.901
  norm       = 1.689
  Prefactor  = 0.0001
  norm       = 12.8017
  norm       = 0.0001
  Prefactor  = 154.911
  norm       = 40.9106
  norm       = 0.0001
  Prefactor  = 0.000100053
  Normalizat = 1.16874
  Prefactor  = 0.767868
 **********
 **   18 **HESSE 
 **********

 FCN=   3242.739     FROM HESSE     STATUS=OK           207 CALLS     2306 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    99.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     45.361        47.070        .59527E-04   -1.4360    
   3  norm          1.8301        6.8679        .26920E-03   -1.5437    
   4  Prefactor     .10002E-03    13.971        .22039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .98219        159.39        .55307E-02   -1.5510    
   6  Prefactor     208.90        168.19        .13984E-03   -1.2807    
   7  norm          1.6890        32.901        .32403E-03   -1.5448    
   8  Prefactor     .10000E-03    51.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.802        31.569        .11197E-03   -1.4992    
  10  norm          .10000E-03    26.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     154.91        204.32        .16188E-03   -1.3212    
  12  norm          40.911        32.620        .62643E-04   -1.4428    
  13  norm          .10000E-03    176.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10005E-03    6220.0        .36936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.1687        .44178        .47933E-03   -.87574    
  16  Prefactor     .76787        .92413E-01    .12482E-03   -1.0092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6942e-08
Minuit parameter uncertainties:
  1  0.00010523
  2  47.1083
  3  6.8709
  4  0.0011452
  5  25.0909
  6  168.579
  7  14.918
  8  1.43097e-05
  9  31.6102
  10  2.10417e-06
  11  205.262
  12  32.6345
  13  0.000119826
  14  0.0237802
  15  0.443196
  16  0.092432
Done.

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

Extracting fit parameters...

4FGL J2347.0+5141
   Spectrum: LogParabola
615         norm:  1.000e-04  1.198e-04  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.679e-01  9.243e-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.169e+00  4.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 356.766 51.697
Photon Flux Upper Limit: 2.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.01e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/110377/likelihoodResults_527040001_527299201_4FGL_J2347.0+5141_daily_bin1110.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) = 3242.7387428
delta logL = -2.68699204753e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3242.73871618
delta logL = -2.49338881986e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13320E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7290       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1688       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76787       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.

 FCN=   3241.908     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      298 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5464        93.741        .90712E-02    .23454E-03
   2  alpha         3.1759        4.0181        .19337        .51288E-04
   3  Normalizat    1.0627        .16252        .11213        .63655E-04
   4  Prefactor     .77102        .34539E-01    .28155E-01    .22813E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.54644
  alpha      = 3.17593
  Normalizat = 1.06272
  Prefactor  = 0.771016
 **********
 **   18 **HESSE 
 **********

 FCN=   3241.908     FROM HESSE     STATUS=OK            31 CALLS      329 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5464        88.012        .99099E-04   -1.5331    
   2  alpha         3.1759        4.0608        .76984E-02    .27378    
   3  Normalizat    1.0627        .40167        .49731E-03   -.90958    
   4  Prefactor     .77102        .87412E-01    .12441E-03   -1.0081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.06493e-11
Minuit parameter uncertainties:
  1  35.3922
  2  3.93666
  3  0.402827
  4  0.0874272
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/110377': 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) = 3241.90824562
delta logL = 0.830470313654

Extracting fit parameters...

4FGL J2347.0+5141
   Spectrum: LogParabola
615         norm:  3.546e+00  3.539e+01  1.000e-04  1.000e+04 ( 1.000e-13)
616        alpha:  3.176e+00  3.937e+00  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.710e-01  8.743e-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.063e+00  4.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.76
Ra Dec: 356.766 51.697
Photon Index (Free Index): 3.18 +/- 3.94
Photon Flux (Free Index): 1.58e-07 +/- 1.56e-07
Energy Flux (Free Index): 3.06e-05 +/- 6.49e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/110377/cmap_HighResolution_527040001_527299201_4FGL_J2347.0+5141_daily_bin1110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.01e-04', comment='SUCCESS', energy_flux2='3.06e-05', dlogl='8.30e-01', photon_flux2='1.58e-07', job_status='DONE', time_completed='2021-09-30 04:43:06.646823', photon_index_error2='3.94', photon_index2='3.18', ts='-0.00', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='2.21e-07', energy_flux_error2='6.49e-05', EG='1.17', time_epoch_completed='1633002186.65', return_code='0', job_id='110377', GAL2='0.77', EG2='1.06', return_code2='0', photon_flux_error2='1.56e-07', ts2='1.76', photon_index='1.75' WHERE bin_id='1110' AND source_name='4FGL J2347.0+5141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 04:43:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 110377: <4FGL_J2347.0+5141_daily_bin1110> in cluster <slac> Done

Job <4FGL_J2347.0+5141_daily_bin1110> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep 30 04:30:15 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 04:30:17 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:30:17 2021
Terminated at Thu Sep 30 04:43:07 2021
Results reported at Thu Sep 30 04:43:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.0+5141_daily_bin1110 356.766 51.6966 527040001 527299201 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 :                                   521.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             204.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            772 sec.

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

