/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 15 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 = 7472
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2349.4+0534_daily_bin208
RA = 357.356, Dec = 5.579
tmin = 293241601, tmax = 293500801
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='149231', job_status='RUN', time_executed='2021-09-30 06:35:58.912613', time_epoch_executed='1633008958.91' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='208'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149231

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149231/ft1_4FGL_J2349.4+0534_daily_bin208.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149231/ft2_4FGL_J2349.4+0534_daily_bin208.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149231/ft1_4FGL_J2349.4+0534_daily_bin208.fits outfile=/scratch/kocevski/149231/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin208.fits ra=357.356 dec=5.579 rad=12.0 tmin=293241601.0 tmax=293500801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.57
user 3.37
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/149231/ft2_4FGL_J2349.4+0534_daily_bin208.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/149231/ft2_4FGL_J2349.4+0534_daily_bin208.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/149231/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin208.fits evtable="EVENTS" outfile="/scratch/kocevski/149231/ft1_filtered_4FGL_J2349.4+0534_daily_bin208.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.52
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149231/ft1_filtered_4FGL_J2349.4+0534_daily_bin208.fits" evtable="EVENTS" scfile=/scratch/kocevski/149231/ft2_4FGL_J2349.4+0534_daily_bin208.fits sctable="SC_DATA" outfile=/scratch/kocevski/149231/ltcube_293241601_293500801_4FGL_J2349.4+0534_daily_bin208.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/149231/ft2_4FGL_J2349.4+0534_daily_bin208.fits
.....................!
real 11.86
user 11.49
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149231/ft1_filtered_4FGL_J2349.4+0534_daily_bin208.fits evtable="EVENTS" scfile=/scratch/kocevski/149231/ft2_4FGL_J2349.4+0534_daily_bin208.fits sctable="SC_DATA" expcube=/scratch/kocevski/149231/ltcube_293241601_293500801_4FGL_J2349.4+0534_daily_bin208.fits outfile=/scratch/kocevski/149231/expmap_293241601_293500801_4FGL_J2349.4+0534_daily_bin208.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/149231/ltcube_293241601_293500801_4FGL_J2349.4+0534_daily_bin208.fits
.....................!
real 190.63
user 185.10
sys 4.81

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
Added 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J2349.4+0534 @ 357.356 5.579

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/149231/ft1_filtered_4FGL_J2349.4+0534_daily_bin208.fits scfile=/scratch/kocevski/149231/ft2_4FGL_J2349.4+0534_daily_bin208.fits outfile=/scratch/kocevski/149231/cmap_293241601_293500801_4FGL_J2349.4+0534_daily_bin208.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=357.356 yref=5.579 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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149231/ft1_filtered_4FGL_J2349.4+0534_daily_bin208.fits scfile=/scratch/kocevski/149231/ft2_4FGL_J2349.4+0534_daily_bin208.fits outfile=/scratch/kocevski/149231/cmap_HighResolution_293241601_293500801_4FGL_J2349.4+0534_daily_bin208.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=357.356 yref=5.579 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/149231/ft1_filtered_4FGL_J2349.4+0534_daily_bin208.fits evtable="EVENTS" scfile=/scratch/kocevski/149231/ft2_4FGL_J2349.4+0534_daily_bin208.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149231/Model_4FGL_J2349.4+0534_daily_bin208.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/149231/ft1_filtered_4FGL_J2349.4+0534_daily_bin208.fits.....................!
real 58.97
user 57.61
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/149231/ft1_filtered_4FGL_J2349.4+0534_daily_bin208.fits', '/scratch/kocevski/149231/ft2_4FGL_J2349.4+0534_daily_bin208.fits', expMap='/scratch/kocevski/149231/expmap_293241601_293500801_4FGL_J2349.4+0534_daily_bin208.fits', expCube='/scratch/kocevski/149231/ltcube_293241601_293500801_4FGL_J2349.4+0534_daily_bin208.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/149231/Model_4FGL_J2349.4+0534_daily_bin208.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2349.4+0534'

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  3.639e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.467e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
500        Scale:  9.996e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/149231/ft1_filtered_4FGL_J2349.4+0534_daily_bin208.fits
Spacecraft file(s): /scratch/kocevski/149231/ft2_4FGL_J2349.4+0534_daily_bin208.fits
Exposure map: /scratch/kocevski/149231/expmap_293241601_293500801_4FGL_J2349.4+0534_daily_bin208.fits
Exposure cube: /scratch/kocevski/149231/ltcube_293241601_293500801_4FGL_J2349.4+0534_daily_bin208.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/149231/Model_4FGL_J2349.4+0534_daily_bin208.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) = 5324.87022251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .45470E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.8161       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.1923       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.6638       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.809       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.2560       1.0000         .10000E-03   10000.    
     8 'norm      '    2.5360       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.4510       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.6399       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.256       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.9637       1.0000         .10000E-03   10000.    
    19 'Prefactor '    50.702       1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.252       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1852       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .75956       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5324.857     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2530 TOTAL
                     EDM=   .35E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.380         .0000    ** at limit **
   2  norm          .10000E-03    1.2978         .0000    ** at limit **
   3  norm          4.8166        3.8743         .0000       -.30585E-03
   4  Prefactor     8.1912        10.048         .0000       -.27194E-03
   5  Prefactor     8.6600        31.952         .0000        .25561E-03
   6  Prefactor     16.811        17.468         .0000        .36571E-03
   7  Prefactor     5.2559        12.443         .0000        .79405E-04
   8  norm          2.5359        1.3300         .0000        .34968E-02
   9  Prefactor     7.4541        7.9777         .0000        .57893E-03
  10  Prefactor     .10000E-03    34.148         .0000    ** at limit **
  11  norm          1.6321        9.2320         .0000        .14106E-01
  12  Prefactor     18.264        9.4433         .0000        .18735E-02
  13  Prefactor     .10000E-03    145.32         .0000    ** at limit **
  14  Prefactor     .10000E-03    11.123         .0000    ** at limit **
  15  Prefactor     .10000E-03    11.268         .0000    ** at limit **
  16  norm          .10000E-03    8.1818         .0000    ** at limit **
  17  norm          .10000E-03    24.522         .0000    ** at limit **
  18  Prefactor     6.9639        4.7936         .0000        .44659E-03
  19  Prefactor     50.706        39.124         .0000       -.10757E-02
  20  Prefactor     22.255        21.618         .0000        .47352E-03
  21  Prefactor     .10000E-03    4.3751         .0000    ** at limit **
  22  Normalizat    1.1849        .21843         .0000        .22988E-03
  23  Prefactor     .75969        .14562         .0000        .49072E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100003
  norm       = 4.81659
  Prefactor  = 8.19119
  Prefactor  = 8.66003
  Prefactor  = 16.811
  Prefactor  = 5.25588
  norm       = 2.53588
  Prefactor  = 7.45415
  Prefactor  = 0.0001
  norm       = 1.63206
  Prefactor  = 18.2644
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 6.96391
  Prefactor  = 50.7064
  Prefactor  = 22.2546
  Prefactor  = 0.0001
  Normalizat = 1.18493
  Prefactor  = 0.759693
 **********
 **   18 **HESSE 
 **********

 FCN=   5324.857     FROM HESSE     STATUS=OK           358 CALLS     2888 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    9.0384        .15991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.8166        3.8740        .12411E-03   -1.5269    
   4  Prefactor     8.1912        10.073        .14007E-03   -1.5135    
   5  Prefactor     8.6600        31.962        .13618E-03   -1.5119    
   6  Prefactor     16.811        17.462        .97690E-04   -1.4888    
   7  Prefactor     5.2559        12.435        .17532E-03   -1.5249    
   8  norm          2.5359        1.3257        .58693E-04   -1.5389    
   9  Prefactor     7.4541        7.9512        .14693E-03   -1.5162    
  10  Prefactor     .10000E-03    34.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.6321        8.8707        .16499E-02   -1.5452    
  12  Prefactor     18.264        9.3191        .93738E-04   -1.4853    
  13  Prefactor     .10000E-03    145.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.2488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    24.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.9639        4.7969        .12687E-03   -1.5180    
  19  Prefactor     50.706        39.182        .56321E-04   -1.4283    
  20  Prefactor     22.255        21.624        .84912E-04   -1.4764    
  21  Prefactor     .10000E-03    4.3767        .14907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1849        .25457        .26779E-03   -.87070    
  23  Prefactor     .75969        .17028        .22424E-03   -1.0123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.5562e-09
Minuit parameter uncertainties:
  1  3.72148e-05
  2  0.000305028
  3  3.87416
  4  10.0748
  5  32.0257
  6  17.4669
  7  12.441
  8  1.32575
  9  7.95236
  10  0.000109312
  11  7.61139
  12  9.31987
  13  0.000858022
  14  0.000141798
  15  0.0001358
  16  1.15774e-05
  17  0.00031223
  18  4.7972
  19  39.2019
  20  21.6319
  21  1.48911e-05
  22  0.254838
  23  0.1704
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  2.225e+01  2.163e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.467e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
500        Scale:  9.996e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  7.597e-01  1.704e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.185e+00  2.548e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.44
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 4.44e-08 +/- 4.31e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 1.30e-05

TS (Fixed Index): 1.44
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 1.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149231/likelihoodResults_293241601_293500801_4FGL_J2349.4+0534_daily_bin208.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) = 5324.85517546
delta logL = 0.00225106892776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5324.85325475
delta logL = 0.00417177801319

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.958       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3859       1.0000          .0000       10.000    
     3 'Normalizat'    1.1883       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75811       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+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=   5324.853     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      274 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.959        30.929        .81837E-04   -.90713E-04
   2  Index         2.3856        .92403        .89799E-02   -.14094E-04
   3  Normalizat    1.1886        .24721        .26744E-03   -.23465E-04
   4  Prefactor     .75787        .16893        .22447E-03    .15903E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.9586
  Index      = 2.38562
  Normalizat = 1.18864
  Prefactor  = 0.757866
 **********
 **   18 **HESSE 
 **********

 FCN=   5324.853     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.959        28.980        .32735E-05   -1.4729    
   2  Index         2.3856        .86610        .35920E-03   -.55022    
   3  Normalizat    1.1886        .24689        .10698E-04   -.86955    
   4  Prefactor     .75787        .16880        .89788E-05   -1.0130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84859e-11
Minuit parameter uncertainties:
  1  28.9972
  2  0.872173
  3  0.247128
  4  0.168911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149231': 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) = 5324.85325357
delta logL = 0.00417295521311

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  2.396e+01  2.900e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.386e+00  8.722e-01  0.000e+00  1.000e+01 (-1.000e+00)
500        Scale:  9.996e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  7.579e-01  1.689e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.189e+00  2.471e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.45
Ra Dec: 357.356 5.579
Photon Index (Free Index): 2.39 +/- 0.87
Photon Flux (Free Index): 4.20e-08 +/- 4.93e-08
Energy Flux (Free Index): 1.40e-05 +/- 1.55e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/149231/cmap_HighResolution_293241601_293500801_4FGL_J2349.4+0534_daily_bin208.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', comment='SUCCESS', photon_flux='4.44e-08', energy_flux2='1.40e-05', photon_flux_error='4.31e-08', dlogl='4.17e-03', energy_flux='1.34e-05', photon_flux2='4.20e-08', job_status='DONE', time_completed='2021-09-30 06:46:07.143889', photon_index_error2='0.87', photon_index2='2.39', ts='1.44', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='1.55e-05', EG='1.18', time_epoch_completed='1633009567.14', return_code='0', job_id='149231', GAL2='0.76', EG2='1.19', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='4.93e-08', ts2='1.45', photon_index='2.47' WHERE bin_id='208' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:46:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 149231: <4FGL_J2349.4+0534_daily_bin208> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin208> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 06:35:35 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:35:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 06:35:36 2021
Terminated at Thu Sep 30 06:46:07 2021
Results reported at Thu Sep 30 06:46:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin208 357.356 5.579 293241601 293500801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2349.4+0534 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   605.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   631 sec.
    Turnaround time :                            632 sec.

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

