/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 7 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7431
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2347.0+5141_daily_bin78
RA = 356.766, Dec = 51.6966
tmin = 259545601, tmax = 259804801
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='104521', job_status='RUN', time_executed='2021-09-30 04:10:54.396185', time_epoch_executed='1633000254.4' WHERE source_name='4FGL J2347.0+5141' and cadence='daily' and bin_id='78'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/104521

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/104521/ft1_4FGL_J2347.0+5141_daily_bin78.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/104521/ft2_4FGL_J2347.0+5141_daily_bin78.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/104521/ft1_4FGL_J2347.0+5141_daily_bin78.fits outfile=/scratch/kocevski/104521/ft1_filteredMKT_4FGL_J2347.0+5141_daily_bin78.fits ra=356.766 dec=51.6966 rad=12.0 tmin=259545601.0 tmax=259804801.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 1.31
user 1.13
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/104521/ft1_filtered_4FGL_J2347.0+5141_daily_bin78.fits" evtable="EVENTS" scfile=/scratch/kocevski/104521/ft2_4FGL_J2347.0+5141_daily_bin78.fits sctable="SC_DATA" outfile=/scratch/kocevski/104521/ltcube_259545601_259804801_4FGL_J2347.0+5141_daily_bin78.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/104521/ft2_4FGL_J2347.0+5141_daily_bin78.fits
.....................!
real 9.58
user 9.23
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/104521/ft1_filtered_4FGL_J2347.0+5141_daily_bin78.fits evtable="EVENTS" scfile=/scratch/kocevski/104521/ft2_4FGL_J2347.0+5141_daily_bin78.fits sctable="SC_DATA" expcube=/scratch/kocevski/104521/ltcube_259545601_259804801_4FGL_J2347.0+5141_daily_bin78.fits outfile=/scratch/kocevski/104521/expmap_259545601_259804801_4FGL_J2347.0+5141_daily_bin78.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/104521/ltcube_259545601_259804801_4FGL_J2347.0+5141_daily_bin78.fits
.....................!
real 146.00
user 141.72
sys 4.03

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/104521/ft1_filtered_4FGL_J2347.0+5141_daily_bin78.fits scfile=/scratch/kocevski/104521/ft2_4FGL_J2347.0+5141_daily_bin78.fits outfile=/scratch/kocevski/104521/cmap_259545601_259804801_4FGL_J2347.0+5141_daily_bin78.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.44
user 0.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/104521/ft1_filtered_4FGL_J2347.0+5141_daily_bin78.fits scfile=/scratch/kocevski/104521/ft2_4FGL_J2347.0+5141_daily_bin78.fits outfile=/scratch/kocevski/104521/cmap_HighResolution_259545601_259804801_4FGL_J2347.0+5141_daily_bin78.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.45
user 0.28
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8937       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.3742       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11277E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.8907       1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.491       1.0000         .10000E-03   10000.    
     7 'norm      '    4.0292       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    13.744       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13857E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.496       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.1689       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .85440       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=   20108.24     FROM MIGRAD    STATUS=CONVERGED    321 CALLS     1510 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8789        21.033        .62910E-05    .12853E-05
   2  Prefactor     .10000E-03    6.0765       -.24938E-06** at limit **
   3  norm          2.3742        1.5315       -.41420E-07    .26117E-03
   4  Prefactor     .10000E-03    1.3336       -.12230E-05** at limit **
   5  Prefactor     7.8731        15.646        .92544E-05    .24154E-03
   6  Prefactor     26.422        35.698       -.49944E-04    .72116E-05
   7  norm          4.0282        4.5553        .21591E-05   -.12280E-03
   8  Prefactor     .10000E-03    18.323        .96454E-06** at limit **
   9  norm          13.744        14.223        .14223E-05    .13093E-04
  10  norm          .10000E-03    27.715       -.24820E-05** at limit **
  11  Prefactor     .10000E-03    122.47        .20141E-04** at limit **
  12  norm          .10000E-03    7.1530       -.15405E-06** at limit **
  13  norm          12.496        7.5695       -.21467E-07    .32335E-04
  14  Prefactor     .10000E-03    12.675       -.48760E-06** at limit **
  15  Normalizat    1.1686        .18366       -.17599E-05    .34318E-03
  16  Prefactor     .85444        .32690E-01    .10236E-05   -.47773E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.87885
  Prefactor  = 0.0001
  norm       = 2.37417
  Prefactor  = 0.000100002
  Prefactor  = 7.87307
  Prefactor  = 26.4216
  norm       = 4.02819
  Prefactor  = 0.0001
  norm       = 13.7435
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 12.4964
  Prefactor  = 0.0001
  Normalizat = 1.16865
  Prefactor  = 0.854444
 **********
 **   18 **HESSE 
 **********

 FCN=   20108.24     FROM HESSE     STATUS=OK           205 CALLS     1715 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8789        21.029        .14272E-03   -1.5147    
   2  Prefactor     .10000E-03    6.0827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.3742        1.5357        .13695E-03   -1.5400    
   4  Prefactor     .10000E-03    4.1233        .30413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.8731        15.321        .14274E-03   -1.5147    
   6  Prefactor     26.422        35.643        .77833E-04   -1.4679    
   7  norm          4.0282        4.5466        .20089E-03   -1.5307    
   8  Prefactor     .10000E-03    18.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          13.744        14.223        .10804E-03   -1.4966    
  10  norm          .10000E-03    27.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    124.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    7.3934        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.496        7.5698        .11332E-03   -1.5001    
  14  Prefactor     .10000E-03    12.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.1686        .18912        .56213E-03   -.87577    
  16  Prefactor     .85444        .33983E-01    .11863E-03   -.97752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24058e-09
Minuit parameter uncertainties:
  1  21.0486
  2  2.72965e-05
  3  1.53569
  4  0.000196527
  5  15.3285
  6  35.6713
  7  4.54695
  8  1.21076e-05
  9  14.2261
  10  7.75741e-06
  11  0.00100905
  12  6.74893e-06
  13  7.57038
  14  9.70178e-06
  15  0.189232
  16  0.0339835
Done.

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

Extracting fit parameters...

4FGL J2347.0+5141
   Spectrum: LogParabola
615         norm:  1.250e+01  7.570e+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:  8.544e-01  3.398e-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  1.892e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.22
Ra Dec: 356.766 51.697
Photon Index (Fixed Index): 1.75 +/- 0.00
Photon Flux (Fixed Index): 2.53e-08 +/- 1.53e-08
Energy Flux (Fixed Index): 3.43e-05 +/- 2.08e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20108.1879957
delta logL = 0.052377114469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20108.187114
delta logL = 0.0532587502639

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   20108.19     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      250 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.775        7.8272        .11207E-03   -.71553E-03
   2  alpha         1.5982        .44667        .19711E-01   -.12662E-03
   3  Normalizat    1.1722        .17981        .56143E-03   -.48413E-03
   4  Prefactor     .85436        .33266E-01    .11863E-03    .86247E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.7749
  alpha      = 1.59823
  Normalizat = 1.17215
  Prefactor  = 0.854362
 **********
 **   18 **HESSE 
 **********

 FCN=   20108.19     FROM HESSE     STATUS=OK            23 CALLS      273 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.775        7.8235        .22414E-04   -1.4993    
   2  alpha         1.5982        .44657        .78845E-03   -.36903    
   3  Normalizat    1.1722        .17981        .22457E-04   -.87468    
   4  Prefactor     .85436        .33270E-01    .47454E-05   -.97755    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5328e-09
Minuit parameter uncertainties:
  1  7.82413
  2  0.44935
  3  0.179906
  4  0.0332713
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/104521': 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) = 20108.187114
delta logL = 0.0532587515008

Extracting fit parameters...

4FGL J2347.0+5141
   Spectrum: LogParabola
615         norm:  1.277e+01  7.824e+00  1.000e-04  1.000e+04 ( 1.000e-13)
616        alpha:  1.598e+00  4.494e-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.544e-01  3.327e-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.172e+00  1.799e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.32
Ra Dec: 356.766 51.697
Photon Index (Free Index): 1.60 +/- 0.45
Photon Flux (Free Index): 2.08e-08 +/- 1.79e-08
Energy Flux (Free Index): 4.36e-05 +/- 4.24e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/104521/cmap_HighResolution_259545601_259804801_4FGL_J2347.0+5141_daily_bin78.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.53e-08', energy_flux2='4.36e-05', photon_flux_error='1.53e-08', dlogl='5.33e-02', energy_flux='3.43e-05', photon_flux2='2.08e-08', job_status='DONE', time_completed='2021-09-30 04:25:47.216202', photon_index_error2='0.45', photon_index2='1.60', ts='9.22', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='4.24e-05', EG='1.17', time_epoch_completed='1633001147.22', return_code='0', job_id='104521', GAL2='0.85', EG2='1.17', return_code2='0', energy_flux_error='2.08e-05', photon_flux_error2='1.79e-08', ts2='9.32', photon_index='1.75' WHERE bin_id='78' AND source_name='4FGL J2347.0+5141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 04:25:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 104521: <4FGL_J2347.0+5141_daily_bin78> in cluster <slac> Done

Job <4FGL_J2347.0+5141_daily_bin78> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep 30 04:10:38 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 04:10:40 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:10:40 2021
Terminated at Thu Sep 30 04:25:48 2021
Results reported at Thu Sep 30 04:25:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.0+5141_daily_bin78 356.766 51.6966 259545601 259804801 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 :                                   886.48 sec.
    Max Memory :                                 1260 MB
    Average Memory :                             370.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            910 sec.

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

