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


Performing analysis on: 4FGL_J2347.0+5141_monthly_bin72
RA = 356.766, Dec = 51.6966
tmin = 423619201, tmax = 426211201
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='836190', job_status='RUN', time_executed='2021-11-08 19:04:31.709452', time_epoch_executed='1636427071.71' WHERE source_name='4FGL J2347.0+5141' and cadence='monthly' and bin_id='72'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/836190

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

Retrieving the FT1 file...

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

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

Retrieving 446 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/836190/ft1_4FGL_J2347.0+5141_monthly_bin72.fits


Retrieving the FT1 file...

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

Retrieving 446 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/836190/ft2_4FGL_J2347.0+5141_monthly_bin72.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/836190/ft1_4FGL_J2347.0+5141_monthly_bin72.fits outfile=/scratch/kocevski/836190/ft1_filteredMKT_4FGL_J2347.0+5141_monthly_bin72.fits ra=356.766 dec=51.6966 rad=12.0 tmin=423619201.0 tmax=426211201.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 39.82
user 38.98
sys 0.76

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/836190/ft2_4FGL_J2347.0+5141_monthly_bin72.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/836190/ft1_filteredMKT_4FGL_J2347.0+5141_monthly_bin72.fits evtable="EVENTS" outfile="/scratch/kocevski/836190/ft1_filtered_4FGL_J2347.0+5141_monthly_bin72.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.87
user 0.65
sys 0.21

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/836190/ft1_filtered_4FGL_J2347.0+5141_monthly_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/836190/ft2_4FGL_J2347.0+5141_monthly_bin72.fits sctable="SC_DATA" expcube=/scratch/kocevski/836190/ltcube_423619201_426211201_4FGL_J2347.0+5141_monthly_bin72.fits outfile=/scratch/kocevski/836190/expmap_423619201_426211201_4FGL_J2347.0+5141_monthly_bin72.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/836190/ltcube_423619201_426211201_4FGL_J2347.0+5141_monthly_bin72.fits
.....................!
real 191.39
user 185.09
sys 5.94

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/836190/ft1_filtered_4FGL_J2347.0+5141_monthly_bin72.fits scfile=/scratch/kocevski/836190/ft2_4FGL_J2347.0+5141_monthly_bin72.fits outfile=/scratch/kocevski/836190/cmap_423619201_426211201_4FGL_J2347.0+5141_monthly_bin72.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.82
user 0.63
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1199       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1387       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .60139       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.337       1.0000         .10000E-03   10000.    
     7 'norm      '    8.8595       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.1824       1.0000         .10000E-03   10000.    
     9 'norm      '    .30655E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.1356       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.056       1.0000         .10000E-03   10000.    
    12 'norm      '    8.1120       1.0000         .10000E-03   10000.    
    13 'norm      '    6.6225       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.3035       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .90354       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=   199728.9     FROM MIGRAD    STATUS=CONVERGED    319 CALLS     1351 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1195        5.5420         .0000       -.22618E-02
   2  Prefactor     .10000E-03    3.4648         .0000    ** at limit **
   3  norm          1.1387        .42992         .0000        .66625E-02
   4  Prefactor     .60179        .76426         .0000        .47950E-01
   5  Prefactor     .10000E-03    1.6663         .0000    ** at limit **
   6  Prefactor     15.337        10.887         .0000        .21471E-03
   7  norm          8.8595        1.7098         .0000       -.11465E-03
   8  Prefactor     8.1822        8.2487         .0000        .43954E-03
   9  norm          .10000E-03    .47246         .0000    ** at limit **
  10  norm          9.1356        5.8340         .0000       -.68040E-04
  11  Prefactor     13.057        9.9045         .0000        .19599E-03
  12  norm          8.1120        2.7015         .0000        .61384E-03
  13  norm          6.6225        2.3838         .0000        .64910E-02
  14  Prefactor     .10000E-03    25.183         .0000    ** at limit **
  15  Normalizat    1.3035        .61850E-01     .0000        .49703E-03
  16  Prefactor     .90354        .10934E-01     .0000       -.31442E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.11949
  Prefactor  = 0.0001
  norm       = 1.13875
  Prefactor  = 0.601785
  Prefactor  = 0.0001
  Prefactor  = 15.3371
  norm       = 8.85947
  Prefactor  = 8.18224
  norm       = 0.000100001
  norm       = 9.13564
  Prefactor  = 13.0565
  norm       = 8.11198
  norm       = 6.62251
  Prefactor  = 0.0001
  Normalizat = 1.30352
  Prefactor  = 0.903541
 **********
 **   18 **HESSE 
 **********

 FCN=   199728.9     FROM HESSE     STATUS=OK           221 CALLS     1572 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1195        5.5362        .19860E-03   -1.5302    
   2  Prefactor     .10000E-03    3.5595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1387        .42699        .17496E-03   -1.5495    
   4  Prefactor     .60179        .76021        .41504E-03   -1.5553    
   5  Prefactor     .10000E-03    1.6860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.337        10.891        .10227E-03   -1.4925    
   7  norm          8.8595        1.7098        .13466E-03   -1.5113    
   8  Prefactor     8.1822        8.2437        .70078E-03   -1.5136    
   9  norm          .10000E-03    .63422        .11893       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.1356        5.8346        .13260E-03   -1.5103    
  11  Prefactor     13.057        9.9116        .11085E-03   -1.4985    
  12  norm          8.1120        2.7013        .14077E-03   -1.5138    
  13  norm          6.6225        2.3834        .77968E-03   -1.5193    
  14  Prefactor     .10000E-03    26.259        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.3035        .63627E-01    .57701E-03   -.83461    
  16  Prefactor     .90354        .11426E-01    .12195E-03   -.96017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.20627e-09
Minuit parameter uncertainties:
  1  5.53691
  2  4.28812e-07
  3  0.426993
  4  0.76022
  5  9.95526e-07
  6  10.8926
  7  1.70977
  8  8.2448
  9  4.06547e-05
  10  5.83495
  11  9.91286
  12  2.70139
  13  2.38345
  14  3.0154e-05
  15  0.0636313
  16  0.0114261
Done.

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

Extracting fit parameters...

4FGL J2347.0+5141
   Spectrum: LogParabola
615         norm:  6.623e+00  2.383e+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.035e-01  1.143e-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.304e+00  6.363e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.50
Ra Dec: 356.766 51.697
Photon Index (Fixed Index): 1.75 +/- 0.00
Photon Flux (Fixed Index): 1.34e-08 +/- 4.82e-09
Energy Flux (Fixed Index): 1.82e-05 +/- 6.55e-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) = 199728.595805
delta logL = 0.289709548262

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 199728.594623
delta logL = 0.290891798883

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5230       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9494       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2990       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90366       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=   199728.6     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      275 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5228        2.3817        .15713E-03    .96082E-03
   2  alpha         1.9491        .27248        .26378E-01    .14557E-03
   3  Normalizat    1.2990        .62021E-01    .57784E-03    .15865E-03
   4  Prefactor     .90366        .11164E-01    .12194E-03   -.41766E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.52278
  alpha      = 1.94915
  Normalizat = 1.29898
  Prefactor  = 0.90366
 **********
 **   18 **HESSE 
 **********

 FCN=   199728.6     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5228        2.3200        .62853E-05   -1.5197    
   2  alpha         1.9491        .26555        .10551E-02   -.22216    
   3  Normalizat    1.2990        .61976E-01    .23114E-04   -.83597    
   4  Prefactor     .90366        .11165E-01    .48778E-05   -.96013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01352e-10
Minuit parameter uncertainties:
  1  2.32001
  2  0.266077
  3  0.0619794
  4  0.0111646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/836190': 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) = 199728.594622
delta logL = 0.290892302088

Extracting fit parameters...

4FGL J2347.0+5141
   Spectrum: LogParabola
615         norm:  6.523e+00  2.320e+00  1.000e-04  1.000e+04 ( 1.000e-13)
616        alpha:  1.949e+00  2.661e-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.037e-01  1.116e-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.299e+00  6.198e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.13
Ra Dec: 356.766 51.697
Photon Index (Free Index): 1.95 +/- 0.27
Photon Flux (Free Index): 1.87e-08 +/- 9.81e-09
Energy Flux (Free Index): 1.50e-05 +/- 6.24e-06

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/836190/cmap_HighResolution_423619201_426211201_4FGL_J2347.0+5141_monthly_bin72.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.34e-08', energy_flux2='1.50e-05', photon_flux_error='4.82e-09', dlogl='2.91e-01', energy_flux='1.82e-05', photon_flux2='1.87e-08', job_status='DONE', time_completed='2021-11-08 22:00:47.437300', photon_index_error2='0.27', photon_index2='1.95', ts='18.50', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='6.24e-06', EG='1.30', time_epoch_completed='1636437647.44', return_code='0', job_id='836190', GAL2='0.90', EG2='1.30', return_code2='0', energy_flux_error='6.55e-06', photon_flux_error2='9.81e-09', ts2='19.13', photon_index='1.75' WHERE bin_id='72' AND source_name='4FGL J2347.0+5141' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Mon Nov  8 22:00:47 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 836190: <4FGL_J2347.0+5141_monthly_bin72> in cluster <slac> Done

Job <4FGL_J2347.0+5141_monthly_bin72> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Nov  8 19:00:25 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Nov  8 19:00:26 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:00:26 2021
Terminated at Mon Nov  8 22:00:49 2021
Results reported at Mon Nov  8 22:00:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.0+5141_monthly_bin72 356.766 51.6966 423619201 426211201 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 :                                   9038.00 sec.
    Max Memory :                                 662 MB
    Average Memory :                             529.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10822 sec.
    Turnaround time :                            10824 sec.

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

