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


Performing analysis on: 4FGL_J2347.0+5141_monthly_bin87
RA = 356.766, Dec = 51.6966
tmin = 462499201, tmax = 465091201
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='837558', job_status='RUN', time_executed='2021-11-08 19:07:41.321508', time_epoch_executed='1636427261.32' WHERE source_name='4FGL J2347.0+5141' and cadence='monthly' and bin_id='87'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/837558

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/837558/ft1_4FGL_J2347.0+5141_monthly_bin87.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/837558/ft2_4FGL_J2347.0+5141_monthly_bin87.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/837558/ft1_4FGL_J2347.0+5141_monthly_bin87.fits outfile=/scratch/kocevski/837558/ft1_filteredMKT_4FGL_J2347.0+5141_monthly_bin87.fits ra=356.766 dec=51.6966 rad=12.0 tmin=462499201.0 tmax=465091201.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 31.57
user 30.72
sys 0.74

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/837558/ft2_4FGL_J2347.0+5141_monthly_bin87.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/837558/ft1_filteredMKT_4FGL_J2347.0+5141_monthly_bin87.fits evtable="EVENTS" outfile="/scratch/kocevski/837558/ft1_filtered_4FGL_J2347.0+5141_monthly_bin87.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.88
user 0.66
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/837558/ft1_filtered_4FGL_J2347.0+5141_monthly_bin87.fits" evtable="EVENTS" scfile=/scratch/kocevski/837558/ft2_4FGL_J2347.0+5141_monthly_bin87.fits sctable="SC_DATA" outfile=/scratch/kocevski/837558/ltcube_462499201_465091201_4FGL_J2347.0+5141_monthly_bin87.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/837558/ft2_4FGL_J2347.0+5141_monthly_bin87.fits
.....................!
real 108.35
user 107.52
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/837558/ft1_filtered_4FGL_J2347.0+5141_monthly_bin87.fits evtable="EVENTS" scfile=/scratch/kocevski/837558/ft2_4FGL_J2347.0+5141_monthly_bin87.fits sctable="SC_DATA" expcube=/scratch/kocevski/837558/ltcube_462499201_465091201_4FGL_J2347.0+5141_monthly_bin87.fits outfile=/scratch/kocevski/837558/expmap_462499201_465091201_4FGL_J2347.0+5141_monthly_bin87.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/837558/ltcube_462499201_465091201_4FGL_J2347.0+5141_monthly_bin87.fits
.....................!
real 194.19
user 188.66
sys 5.04

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/837558/ft1_filtered_4FGL_J2347.0+5141_monthly_bin87.fits scfile=/scratch/kocevski/837558/ft2_4FGL_J2347.0+5141_monthly_bin87.fits outfile=/scratch/kocevski/837558/cmap_462499201_465091201_4FGL_J2347.0+5141_monthly_bin87.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.81
user 0.63
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/837558/ft1_filtered_4FGL_J2347.0+5141_monthly_bin87.fits scfile=/scratch/kocevski/837558/ft2_4FGL_J2347.0+5141_monthly_bin87.fits outfile=/scratch/kocevski/837558/cmap_HighResolution_462499201_465091201_4FGL_J2347.0+5141_monthly_bin87.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.83
user 0.63
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.3767       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0934       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9374       1.0000         .10000E-03   10000.    
     7 'norm      '    4.7579       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.9245       1.0000         .10000E-03   10000.    
    10 'norm      '    2.2375       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10679E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    9.8797       1.0000         .10000E-03   10000.    
    13 'norm      '    8.9277       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.0325       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .93872       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.

 FCN=   195058.1     FROM MIGRAD    STATUS=CONVERGED    316 CALLS     1287 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0632         .0000    ** at limit **
   2  Prefactor     .10000E-03    1.9077         .0000    ** at limit **
   3  norm          1.3767        .49541         .0000        .10897E-01
   4  Prefactor     1.0935        .66116         .0000        .20481E-01
   5  Prefactor     .10000E-03    3.1334         .0000    ** at limit **
   6  Prefactor     7.9379        10.757         .0000        .65705E-03
   7  norm          4.7580        1.4023         .0000       -.23320E-03
   8  Prefactor     .10000E-03    5.6235         .0000    ** at limit **
   9  norm          5.9246        3.6110         .0000        .12042E-01
  10  norm          2.2353        5.6527         .0000        .13421E-01
  11  Prefactor     .10001E-03    1.4512         .0000    ** at limit **
  12  norm          9.8796        2.8747         .0000       -.53138E-02
  13  norm          8.9277        2.6558         .0000        .19940E-02
  14  Prefactor     .10000E-03    3.8243         .0000    ** at limit **
  15  Normalizat    1.0325        .60433E-01     .0000        .10833E-02
  16  Prefactor     .93872        .11171E-01     .0000       -.53107E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.3767
  Prefactor  = 1.09352
  Prefactor  = 0.0001
  Prefactor  = 7.93791
  norm       = 4.75796
  Prefactor  = 0.000100001
  norm       = 5.92457
  norm       = 2.23528
  Prefactor  = 0.000100008
  norm       = 9.87957
  norm       = 8.92772
  Prefactor  = 0.0001
  Normalizat = 1.03255
  Prefactor  = 0.938722
 **********
 **   18 **HESSE 
 **********

 FCN=   195058.1     FROM HESSE     STATUS=OK           213 CALLS     1500 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.9222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3767        .49392        .18087E-03   -1.5473    
   4  Prefactor     1.0935        .64584        .26673E-03   -1.5499    
   5  Prefactor     .10000E-03    3.2430        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.9379        10.761        .14232E-03   -1.5144    
   7  norm          4.7580        1.4020        .18446E-03   -1.5272    
   8  Prefactor     .10000E-03    5.6453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.9246        3.6103        .82490E-03   -1.5221    
  10  norm          2.2353        5.6335        .13740E-02   -1.5409    
  11  Prefactor     .10001E-03    1.4100        .17982       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.8796        2.8744        .12749E-03   -1.5079    
  13  norm          8.9277        2.6554        .13414E-03   -1.5110    
  14  Prefactor     .10000E-03    3.8395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.0325        .61578E-01    .61709E-03   -.91948    
  16  Prefactor     .93872        .11544E-01    .11969E-03   -.94801    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29806e-09
Minuit parameter uncertainties:
  1  6.43662e-05
  2  2.77929e-05
  3  0.49392
  4  0.645847
  5  3.17222e-05
  6  10.7631
  7  1.40205
  8  0.000155393
  9  3.61048
  10  5.63481
  11  0.000206225
  12  2.87445
  13  2.65545
  14  3.48696e-05
  15  0.0615818
  16  0.0115436
Done.

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

Extracting fit parameters...

4FGL J2347.0+5141
   Spectrum: LogParabola
615         norm:  8.928e+00  2.655e+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:  9.387e-01  1.154e-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.033e+00  6.158e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 33.73
Ra Dec: 356.766 51.697
Photon Index (Fixed Index): 1.75 +/- 0.00
Photon Flux (Fixed Index): 1.81e-08 +/- 5.37e-09
Energy Flux (Fixed Index): 2.45e-05 +/- 7.30e-06

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) = 195058.031327
delta logL = 0.0194985539129

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 195058.030763
delta logL = 0.0200625736907

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.8581       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6981       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0337       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93871       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=   195058.0     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      247 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.8581        2.6890        .13467E-03    .16208E-03
   2  alpha         1.6981        .23997        .27729E-01    .59551E-04
   3  Normalizat    1.0337        .60544E-01    .61680E-03    .20820E-03
   4  Prefactor     .93871        .11316E-01    .11969E-03    .79636E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.85815
  alpha      = 1.69807
  Normalizat = 1.03366
  Prefactor  = 0.938711
 **********
 **   18 **HESSE 
 **********

 FCN=   195058.0     FROM HESSE     STATUS=OK            23 CALLS      270 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.8581        2.7157        .53869E-05   -1.5113    
   2  alpha         1.6981        .24252        .11091E-02   -.32655    
   3  Normalizat    1.0337        .60533E-01    .24672E-04   -.91911    
   4  Prefactor     .93871        .11318E-01    .47876E-05   -.94801    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45893e-11
Minuit parameter uncertainties:
  1  2.71569
  2  0.242941
  3  0.0605371
  4  0.0113179
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/837558': 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) = 195058.030763
delta logL = 0.0200625736907

Extracting fit parameters...

4FGL J2347.0+5141
   Spectrum: LogParabola
615         norm:  8.858e+00  2.716e+00  1.000e-04  1.000e+04 ( 1.000e-13)
616        alpha:  1.698e+00  2.429e-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:  9.387e-01  1.132e-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.034e+00  6.054e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 33.75
Ra Dec: 356.766 51.697
Photon Index (Free Index): 1.70 +/- 0.24
Photon Flux (Free Index): 1.66e-08 +/- 8.60e-09
Energy Flux (Free Index): 2.59e-05 +/- 1.07e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -3.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  3.330e+00 [aplpy.core]
Saving /scratch/kocevski/837558/cmap_HighResolution_462499201_465091201_4FGL_J2347.0+5141_monthly_bin87.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.81e-08', energy_flux2='2.59e-05', photon_flux_error='5.37e-09', dlogl='2.01e-02', energy_flux='2.45e-05', photon_flux2='1.66e-08', job_status='DONE', time_completed='2021-11-08 21:53:42.208693', photon_index_error2='0.24', photon_index2='1.70', ts='33.73', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.07e-05', EG='1.03', time_epoch_completed='1636437222.21', return_code='0', job_id='837558', GAL2='0.94', EG2='1.03', return_code2='0', energy_flux_error='7.30e-06', photon_flux_error2='8.60e-09', ts2='33.75', photon_index='1.75' WHERE bin_id='87' AND source_name='4FGL J2347.0+5141' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Mon Nov  8 21:53:42 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 837558: <4FGL_J2347.0+5141_monthly_bin87> in cluster <slac> Done

Job <4FGL_J2347.0+5141_monthly_bin87> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Nov  8 19:05:12 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Nov  8 19:05:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Nov  8 19:05:14 2021
Terminated at Mon Nov  8 21:53:45 2021
Results reported at Mon Nov  8 21:53:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.0+5141_monthly_bin87 356.766 51.6966 462499201 465091201 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 :                                   8517.00 sec.
    Max Memory :                                 661 MB
    Average Memory :                             529.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   10109 sec.
    Turnaround time :                            10113 sec.

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

