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


Performing analysis on: 4FGL_J2347.0+5141_daily_bin1480
RA = 356.766, Dec = 51.6966
tmin = 622944001, tmax = 623203201
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='113634', job_status='RUN', time_executed='2021-09-30 04:41:29.084203', time_epoch_executed='1633002089.08' WHERE source_name='4FGL J2347.0+5141' and cadence='daily' and bin_id='1480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/113634

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/113634/ft1_4FGL_J2347.0+5141_daily_bin1480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/113634/ft2_4FGL_J2347.0+5141_daily_bin1480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/113634/ft1_4FGL_J2347.0+5141_daily_bin1480.fits outfile=/scratch/kocevski/113634/ft1_filteredMKT_4FGL_J2347.0+5141_daily_bin1480.fits ra=356.766 dec=51.6966 rad=12.0 tmin=622944001.0 tmax=623203201.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.10
user 2.87
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/113634/ft2_4FGL_J2347.0+5141_daily_bin1480.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/113634/ft1_filteredMKT_4FGL_J2347.0+5141_daily_bin1480.fits evtable="EVENTS" outfile="/scratch/kocevski/113634/ft1_filtered_4FGL_J2347.0+5141_daily_bin1480.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/113634/ft1_filtered_4FGL_J2347.0+5141_daily_bin1480.fits" evtable="EVENTS" scfile=/scratch/kocevski/113634/ft2_4FGL_J2347.0+5141_daily_bin1480.fits sctable="SC_DATA" outfile=/scratch/kocevski/113634/ltcube_622944001_623203201_4FGL_J2347.0+5141_daily_bin1480.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/113634/ft2_4FGL_J2347.0+5141_daily_bin1480.fits
.....................!
real 12.02
user 11.70
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/113634/ft1_filtered_4FGL_J2347.0+5141_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/113634/ft2_4FGL_J2347.0+5141_daily_bin1480.fits sctable="SC_DATA" expcube=/scratch/kocevski/113634/ltcube_622944001_623203201_4FGL_J2347.0+5141_daily_bin1480.fits outfile=/scratch/kocevski/113634/expmap_622944001_623203201_4FGL_J2347.0+5141_daily_bin1480.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/113634/ltcube_622944001_623203201_4FGL_J2347.0+5141_daily_bin1480.fits
.....................!
real 190.25
user 185.54
sys 4.37

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/113634/ft1_filtered_4FGL_J2347.0+5141_daily_bin1480.fits scfile=/scratch/kocevski/113634/ft2_4FGL_J2347.0+5141_daily_bin1480.fits outfile=/scratch/kocevski/113634/cmap_622944001_623203201_4FGL_J2347.0+5141_daily_bin1480.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/113634/ft1_filtered_4FGL_J2347.0+5141_daily_bin1480.fits scfile=/scratch/kocevski/113634/ft2_4FGL_J2347.0+5141_daily_bin1480.fits outfile=/scratch/kocevski/113634/cmap_HighResolution_622944001_623203201_4FGL_J2347.0+5141_daily_bin1480.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    593.27       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18713E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .50925E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .91443E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    254.37       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    20.254       1.0000         .10000E-03   10000.    
     8 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     9 'norm      '    .10173E-03   1.0000         .10000E-03   10000.    
    10 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.236       1.0000         .10000E-03   10000.    
    12 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    24.858       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11801E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    .52404       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .84469       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=   6077.517     FROM MIGRAD    STATUS=CONVERGED    294 CALLS     1702 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     593.93        759.51        .63411E-05   -.42035E-04
   2  Prefactor     .10000E-03    343.05        .46053E-05** at limit **
   3  norm          .10000E-03    97.840        .29774E-04** at limit **
   4  Prefactor     .10000E-03    656.32        .98447E-05** at limit **
   5  Prefactor     262.04        6766.6       -.23596E-04   -.61500E-05
   6  Prefactor     .10000E-03    23.732        .29185E-07** at limit **
   7  norm          20.251        33.368        .27986E-06   -.70576E-05
   8  Prefactor    10000.0        8116.8       -.26919E-04** at limit **
   9  norm          .10000E-03    103.19        .67986E-06** at limit **
  10  norm         10000.0        8040.1       -.23323E-04** at limit **
  11  Prefactor     36.244        56.043        .21501E-05   -.14788E-04
  12  norm          .10000E-03    18.216        .17916E-06** at limit **
  13  norm          24.867        50.434        .25754E-05   -.57052E-04
  14  Prefactor     .10000E-03    128.98       -.33416E-06** at limit **
  15  Normalizat    .52433        .55499       -.21922E-04   -.38227E-04
  16  Prefactor     .84472        .60025E-01    .18516E-05   -.35768E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 593.933
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 262.041
  Prefactor  = 0.0001
  norm       = 20.251
  Prefactor  = 10000
  norm       = 0.0001
  norm       = 10000
  Prefactor  = 36.244
  norm       = 0.0001
  norm       = 24.8667
  Prefactor  = 0.0001
  Normalizat = 0.524331
  Prefactor  = 0.844719
 **********
 **   18 **HESSE 
 **********

 FCN=   6077.517     FROM HESSE     STATUS=OK           191 CALLS     1893 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     593.93        748.27        .84661E-04   -1.0784    
   2  Prefactor     .10000E-03    341.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    97.766        .42297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    652.04        .20820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     262.04        6681.5        .12703E-03   -1.2456    
   6  Prefactor     .10000E-03    23.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          20.251        33.379        .88997E-04   -1.4808    
   8  Prefactor    10000.0        8113.4        .18375E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    103.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm         10000.0        8037.0        .18294E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     36.244        56.275        .66576E-04   -1.4503    
  12  norm          .10000E-03    18.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          24.867        50.458        .80344E-04   -1.4710    
  14  Prefactor     .10000E-03    128.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .52433        .55677        .12392E-02   -1.1130    
  16  Prefactor     .84472        .60211E-01    .10777E-03   -.98100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05282e-10
Minuit parameter uncertainties:
  1  761.373
  2  0.000555607
  3  0.000418213
  4  0.0019332
  5  2583.69
  6  1.40749e-06
  7  33.4094
  8  0.156374
  9  0.00034532
  10  0.133003
  11  56.358
  12  3.72044e-06
  13  50.5444
  14  0.000436898
  15  0.562843
  16  0.0602156
Done.

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

Extracting fit parameters...

4FGL J2347.0+5141
   Spectrum: LogParabola
615         norm:  2.487e+01  5.054e+01  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:  8.447e-01  6.022e-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:  5.243e-01  5.628e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/113634/likelihoodResults_622944001_623203201_4FGL_J2347.0+5141_daily_bin1480.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) = 6076.26560004
delta logL = 1.25142919161

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6076.24122881
delta logL = 1.27580042076

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.0457       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2427       1.0000          .0000       5.0000    
     3 'Normalizat'    .26645       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85691       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6076.241     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      321 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.0138        224.04        .66631E-03   -.13467E-03
   2  alpha         3.2446        4.1221        .84621E-02   -.12312E-04
   3  Normalizat    .26583        .58328        .16176E-01    .27601E-03
   4  Prefactor     .85695        .62667E-01    .10693E-03    .10706E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.01377
  alpha      = 3.24462
  Normalizat = 0.265835
  Prefactor  = 0.856947
 **********
 **   18 **HESSE 
 **********

 FCN=   6076.241     FROM HESSE     STATUS=OK            27 CALLS      348 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.0138        19.219        .26652E-04   -1.5107    
   2  alpha         3.2446        .91674        .33848E-03    .30244    
   3  Normalizat    .26583        .55551        .32353E-02   -1.2494    
   4  Prefactor     .85695        .60180E-01    .42774E-05   -.97662    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93838e-11
Minuit parameter uncertainties:
  1  19.2321
  2  0.940927
  3  0.567677
  4  0.0601842
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/113634': 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) = 6076.24122626
delta logL = 1.27580297417

Extracting fit parameters...

4FGL J2347.0+5141
   Spectrum: LogParabola
615         norm:  9.014e+00  1.923e+01  1.000e-04  1.000e+04 ( 1.000e-13)
616        alpha:  3.245e+00  9.409e-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:  8.569e-01  6.018e-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:  2.658e-01  5.677e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.23
Ra Dec: 356.766 51.697
Photon Index (Free Index): 3.24 +/- 0.94
Photon Flux (Free Index): 4.75e-07 +/- 3.82e-07
Energy Flux (Free Index): 8.96e-05 +/- 6.57e-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/113634/cmap_HighResolution_622944001_623203201_4FGL_J2347.0+5141_daily_bin1480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.49e-04', comment='SUCCESS', energy_flux2='8.96e-05', dlogl='1.28e+00', photon_flux2='4.75e-07', job_status='DONE', time_completed='2021-09-30 04:55:08.779736', photon_index_error2='0.94', photon_index2='3.24', ts='0.31', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='3.31e-07', energy_flux_error2='6.57e-05', EG='0.52', time_epoch_completed='1633002908.78', return_code='0', job_id='113634', GAL2='0.86', EG2='0.27', return_code2='0', photon_flux_error2='3.82e-07', ts2='3.23', photon_index='1.75' WHERE bin_id='1480' AND source_name='4FGL J2347.0+5141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 04:55:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 113634: <4FGL_J2347.0+5141_daily_bin1480> in cluster <slac> Done

Job <4FGL_J2347.0+5141_daily_bin1480> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 04:40:36 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 04:40:37 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:40:37 2021
Terminated at Thu Sep 30 04:55:09 2021
Results reported at Thu Sep 30 04:55:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.0+5141_daily_bin1480 356.766 51.6966 622944001 623203201 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 :                                   642.36 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             313.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            873 sec.

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

