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


Performing analysis on: 4FGL_J2347.0+5141_daily_bin735
RA = 356.766, Dec = 51.6966
tmin = 429840001, tmax = 430099201
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='107785', job_status='RUN', time_executed='2021-09-30 04:23:25.781119', time_epoch_executed='1633001005.78' WHERE source_name='4FGL J2347.0+5141' and cadence='daily' and bin_id='735'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107785

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107785/ft1_4FGL_J2347.0+5141_daily_bin735.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107785/ft2_4FGL_J2347.0+5141_daily_bin735.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107785/ft1_4FGL_J2347.0+5141_daily_bin735.fits outfile=/scratch/kocevski/107785/ft1_filteredMKT_4FGL_J2347.0+5141_daily_bin735.fits ra=356.766 dec=51.6966 rad=12.0 tmin=429840001.0 tmax=430099201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.87
user 5.60
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/107785/ft1_filtered_4FGL_J2347.0+5141_daily_bin735.fits" evtable="EVENTS" scfile=/scratch/kocevski/107785/ft2_4FGL_J2347.0+5141_daily_bin735.fits sctable="SC_DATA" outfile=/scratch/kocevski/107785/ltcube_429840001_430099201_4FGL_J2347.0+5141_daily_bin735.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/107785/ft2_4FGL_J2347.0+5141_daily_bin735.fits
.....................!
real 12.00
user 11.63
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107785/ft1_filtered_4FGL_J2347.0+5141_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/107785/ft2_4FGL_J2347.0+5141_daily_bin735.fits sctable="SC_DATA" expcube=/scratch/kocevski/107785/ltcube_429840001_430099201_4FGL_J2347.0+5141_daily_bin735.fits outfile=/scratch/kocevski/107785/expmap_429840001_430099201_4FGL_J2347.0+5141_daily_bin735.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/107785/ltcube_429840001_430099201_4FGL_J2347.0+5141_daily_bin735.fits
.....................!
real 190.90
user 185.04
sys 5.55

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/107785/ft1_filtered_4FGL_J2347.0+5141_daily_bin735.fits scfile=/scratch/kocevski/107785/ft2_4FGL_J2347.0+5141_daily_bin735.fits outfile=/scratch/kocevski/107785/cmap_429840001_430099201_4FGL_J2347.0+5141_daily_bin735.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107785/ft1_filtered_4FGL_J2347.0+5141_daily_bin735.fits scfile=/scratch/kocevski/107785/ft2_4FGL_J2347.0+5141_daily_bin735.fits outfile=/scratch/kocevski/107785/cmap_HighResolution_429840001_430099201_4FGL_J2347.0+5141_daily_bin735.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10773E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2031       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1824       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    94.564       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.3173       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.282       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    89.398       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.1353       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .91817       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=   9241.208     FROM MIGRAD    STATUS=CONVERGED    290 CALLS     1423 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.727        .76362E-05** at limit **
   2  Prefactor     .10000E-03    38.146        .54462E-05** at limit **
   3  norm          1.2028        3.1332       -.15442E-05   -.15634E-02
   4  Prefactor     1.1815        3.2667       -.14551E-05   -.12386E-02
   5  Prefactor     .10000E-03    42.609       -.21202E-04** at limit **
   6  Prefactor     94.565        56.378        .25248E-06   -.91232E-05
   7  norm          .10000E-03    2.4793        .16796E-07** at limit **
   8  Prefactor     .10000E-03    20.876       -.17505E-04** at limit **
   9  norm          9.3178        24.620       -.16813E-06   -.26991E-04
  10  norm          .10000E-03    19.072        .10774E-04** at limit **
  11  Prefactor     .10000E-03    35.214        .13922E-04** at limit **
  12  norm          10.276        23.574       -.68372E-05   -.10733E-04
  13  norm          .10000E-03    7.2270       -.12897E-06** at limit **
  14  Prefactor     89.363        99.156       -.34977E-04    .79683E-05
  15  Normalizat    1.1355        .29163        .10141E-04   -.14307E-04
  16  Prefactor     .91814        .51147E-01   -.63561E-06    .40933E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 1.20283
  Prefactor  = 1.1815
  Prefactor  = 0.0001
  Prefactor  = 94.5646
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.31779
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.2763
  norm       = 0.0001
  Prefactor  = 89.3631
  Normalizat = 1.13553
  Prefactor  = 0.918137
 **********
 **   18 **HESSE 
 **********

 FCN=   9241.208     FROM HESSE     STATUS=OK           197 CALLS     1620 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    38.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2028        3.1596        .26791E-03   -1.5489    
   4  Prefactor     1.1815        3.2698        .27726E-03   -1.5491    
   5  Prefactor     .10000E-03    43.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     94.565        56.392        .41330E-04   -1.3760    
   7  norm          .10000E-03    2.4822        .14783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.3178        24.626        .13129E-03   -1.5097    
  10  norm          .10000E-03    19.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    35.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.276        23.593        .12496E-03   -1.5067    
  13  norm          .10000E-03    7.2333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     89.363        98.975        .21248E-03   -1.3814    
  15  Normalizat    1.1355        .30062        .60480E-03   -.88619    
  16  Prefactor     .91814        .53047E-01    .12239E-03   -.95510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53397e-09
Minuit parameter uncertainties:
  1  0.000142213
  2  0.000493026
  3  3.16001
  4  3.27031
  5  0.000249664
  6  56.4242
  7  1.03103e-06
  8  8.8734e-08
  9  24.6526
  10  1.91724e-06
  11  3.65006e-05
  12  23.6146
  13  3.50051e-06
  14  99.1579
  15  0.301077
  16  0.0530497
Done.

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

Extracting fit parameters...

4FGL J2347.0+5141
   Spectrum: LogParabola
615         norm:  1.000e-04  3.501e-06  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.181e-01  5.305e-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.136e+00  3.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 356.766 51.697
Photon Flux Upper Limit: 7.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.82e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/107785/likelihoodResults_429840001_430099201_4FGL_J2347.0+5141_daily_bin735.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) = 9241.20823629
delta logL = -0.000658832816043

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9241.20757775
delta logL = -2.91729520541e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10387E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7607       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1354       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91815       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=   9241.208     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      207 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.789        .90712E-02** at limit **
   2  alpha         1.7747        3.3850        .43694       -.90504E-05
   3  Normalizat    1.1355        .27067        .13617        .36822E-04
   4  Prefactor     .91814        .50231E-01    .27695E-01    .97572E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.77474
  Normalizat = 1.13553
  Prefactor  = 0.918136
 **********
 **   18 **HESSE 
 **********

 FCN=   9241.208     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.5376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7747        3.3447        .50000       -.29433    
   3  Normalizat    1.1355        .27823        .60479E-03   -.88619    
   4  Prefactor     .91814        .51915E-01    .12239E-03   -.95510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.2255e-11
Minuit parameter uncertainties:
  1  2.30561e-05
  2  2.42699
  3  0.278592
  4  0.0519176
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107785': 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) = 9241.20757735
delta logL = 1.06538209366e-07

Extracting fit parameters...

4FGL J2347.0+5141
   Spectrum: LogParabola
615         norm:  1.000e-04  2.306e-05  1.000e-04  1.000e+04 ( 1.000e-13)
616        alpha:  1.775e+00  2.427e+00  0.000e+00  5.000e+00 ( 1.000e+00)
617         beta:  3.654e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
618           Eb:  1.935e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  9.181e-01  5.192e-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.136e+00  2.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 356.766 51.697

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/107785/cmap_HighResolution_429840001_430099201_4FGL_J2347.0+5141_daily_bin735.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.82e-05', job_status='DONE', photon_flux_upper_limit='7.23e-08', time_completed='2021-09-30 04:36:30.389509', job_id='107785', GAL2='0.92', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1633001790.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.75' WHERE bin_id='735' AND source_name='4FGL J2347.0+5141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 04:36:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 107785: <4FGL_J2347.0+5141_daily_bin735> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2347.0+5141_daily_bin735 356.766 51.6966 429840001 430099201 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 :                                   781.11 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             330.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            951 sec.

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

