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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin561
RA = 357.356, Dec = 5.579
tmin = 384739201, tmax = 384998401
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='151922', job_status='RUN', time_executed='2021-09-30 06:47:21.136771', time_epoch_executed='1633009641.14' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='561'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/151922

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/151922/ft1_4FGL_J2349.4+0534_daily_bin561.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/151922/ft2_4FGL_J2349.4+0534_daily_bin561.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/151922/ft1_4FGL_J2349.4+0534_daily_bin561.fits outfile=/scratch/kocevski/151922/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin561.fits ra=357.356 dec=5.579 rad=12.0 tmin=384739201.0 tmax=384998401.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 4.56
user 4.32
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/151922/ft2_4FGL_J2349.4+0534_daily_bin561.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/151922/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin561.fits evtable="EVENTS" outfile="/scratch/kocevski/151922/ft1_filtered_4FGL_J2349.4+0534_daily_bin561.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.50
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/151922/ft1_filtered_4FGL_J2349.4+0534_daily_bin561.fits" evtable="EVENTS" scfile=/scratch/kocevski/151922/ft2_4FGL_J2349.4+0534_daily_bin561.fits sctable="SC_DATA" outfile=/scratch/kocevski/151922/ltcube_384739201_384998401_4FGL_J2349.4+0534_daily_bin561.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/151922/ft2_4FGL_J2349.4+0534_daily_bin561.fits
.....................!
real 11.54
user 11.16
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/151922/ft1_filtered_4FGL_J2349.4+0534_daily_bin561.fits evtable="EVENTS" scfile=/scratch/kocevski/151922/ft2_4FGL_J2349.4+0534_daily_bin561.fits sctable="SC_DATA" expcube=/scratch/kocevski/151922/ltcube_384739201_384998401_4FGL_J2349.4+0534_daily_bin561.fits outfile=/scratch/kocevski/151922/expmap_384739201_384998401_4FGL_J2349.4+0534_daily_bin561.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/151922/ltcube_384739201_384998401_4FGL_J2349.4+0534_daily_bin561.fits
.....................!
real 190.48
user 184.87
sys 5.23

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/151922/ft1_filtered_4FGL_J2349.4+0534_daily_bin561.fits scfile=/scratch/kocevski/151922/ft2_4FGL_J2349.4+0534_daily_bin561.fits outfile=/scratch/kocevski/151922/cmap_384739201_384998401_4FGL_J2349.4+0534_daily_bin561.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.52
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/151922/ft1_filtered_4FGL_J2349.4+0534_daily_bin561.fits scfile=/scratch/kocevski/151922/ft2_4FGL_J2349.4+0534_daily_bin561.fits outfile=/scratch/kocevski/151922/cmap_HighResolution_384739201_384998401_4FGL_J2349.4+0534_daily_bin561.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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/151922/ft1_filtered_4FGL_J2349.4+0534_daily_bin561.fits evtable="EVENTS" scfile=/scratch/kocevski/151922/ft2_4FGL_J2349.4+0534_daily_bin561.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/151922/Model_4FGL_J2349.4+0534_daily_bin561.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/151922/ft1_filtered_4FGL_J2349.4+0534_daily_bin561.fits.....................!
real 75.89
user 74.43
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/151922/ft1_filtered_4FGL_J2349.4+0534_daily_bin561.fits', '/scratch/kocevski/151922/ft2_4FGL_J2349.4+0534_daily_bin561.fits', expMap='/scratch/kocevski/151922/expmap_384739201_384998401_4FGL_J2349.4+0534_daily_bin561.fits', expCube='/scratch/kocevski/151922/ltcube_384739201_384998401_4FGL_J2349.4+0534_daily_bin561.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/151922/Model_4FGL_J2349.4+0534_daily_bin561.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/151922/ft1_filtered_4FGL_J2349.4+0534_daily_bin561.fits
Spacecraft file(s): /scratch/kocevski/151922/ft2_4FGL_J2349.4+0534_daily_bin561.fits
Exposure map: /scratch/kocevski/151922/expmap_384739201_384998401_4FGL_J2349.4+0534_daily_bin561.fits
Exposure cube: /scratch/kocevski/151922/ltcube_384739201_384998401_4FGL_J2349.4+0534_daily_bin561.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/151922/Model_4FGL_J2349.4+0534_daily_bin561.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) = 7152.55918369

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.6652       1.0000         .10000E-03   10000.    
     3 'norm      '    12.163       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.8561       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.347       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.2384       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.0573       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .27299E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9883       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    39.126       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.237       1.0000         .10000E-03   10000.    
    19 'Prefactor '    202.89       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.518       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6313       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97023       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.

 FCN=   7152.548     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2496 TOTAL
                     EDM=   .39E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.935        .73009E-06** at limit **
   2  norm          6.6645        4.1066        .43986E-07   -.72292E-04
   3  norm          12.162        6.6474       -.19454E-07   -.35326E-04
   4  Prefactor     .10000E-03    13.969        .58210E-06** at limit **
   5  Prefactor     7.8463        48.507        .30614E-05    .51324E-07
   6  Prefactor     14.347        12.266       -.43758E-07   -.27522E-05
   7  Prefactor     .10000E-03    14.924        .95311E-07** at limit **
   8  norm          4.2382        1.8611       -.13947E-07   -.15630E-03
   9  Prefactor     .10000E-03    4.5749        .32486E-07** at limit **
  10  Prefactor     .10000E-03    26.543        .15283E-05** at limit **
  11  norm          4.0581        7.4688        .21384E-05   -.24715E-05
  12  Prefactor     .10000E-03    4.6075        .33099E-06** at limit **
  13  Prefactor     .10000E-03    6355.6        .26123E-04** at limit **
  14  Prefactor     .10000E-03    11.321       -.75463E-06** at limit **
  15  Prefactor     2.9946        51.302       -.28246E-05   -.29493E-05
  16  norm          .10000E-03    20.157       -.21014E-05** at limit **
  17  norm          39.123        30.665        .29398E-06   -.11905E-04
  18  Prefactor     17.236        8.9161       -.93932E-07   -.76204E-04
  19  Prefactor     202.88        70.026        .50410E-06   -.26455E-07
  20  Prefactor     .10000E-03    11.723       -.69575E-07** at limit **
  21  Prefactor     14.520        19.753       -.66984E-07   -.44855E-05
  22  Normalizat    1.6315        .25484       -.12957E-06   -.35712E-05
  23  Prefactor     .97013        .16569       -.30591E-06   -.12656E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.66446
  norm       = 12.1622
  Prefactor  = 0.0001
  Prefactor  = 7.8463
  Prefactor  = 14.3472
  Prefactor  = 0.0001
  norm       = 4.23824
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.05811
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.99457
  norm       = 0.0001
  norm       = 39.1231
  Prefactor  = 17.2357
  Prefactor  = 202.884
  Prefactor  = 0.0001
  Prefactor  = 14.5198
  Normalizat = 1.63149
  Prefactor  = 0.970135
 **********
 **   18 **HESSE 
 **********

 FCN=   7152.548     FROM HESSE     STATUS=OK           368 CALLS     2864 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.6645        4.1280        .12729E-03   -1.5192    
   3  norm          12.162        6.6705        .11486E-03   -1.5010    
   4  Prefactor     .10000E-03    14.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.8463        48.554        .14306E-03   -1.5148    
   6  Prefactor     14.347        12.266        .10574E-03   -1.4950    
   7  Prefactor     .10000E-03    14.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.2382        1.8593        .72494E-04   -1.5296    
   9  Prefactor     .10000E-03    4.5892        .17664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.0581        7.4782        .10009E-02   -1.5305    
  12  Prefactor     .10000E-03    4.6643        .17735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6359.8        .21429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9946        51.301        .23484E-03   -1.5362    
  16  norm          .10000E-03    20.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          39.123        30.671        .64079E-04   -1.4456    
  18  Prefactor     17.236        8.9429        .96468E-04   -1.4877    
  19  Prefactor     202.88        70.263        .28371E-04   -1.2849    
  20  Prefactor     .10000E-03    11.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.520        19.755        .10512E-03   -1.4946    
  22  Normalizat    1.6315        .30146        .31592E-03   -.74148    
  23  Prefactor     .97013        .19412        .26526E-03   -.93732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.37918e-11
Minuit parameter uncertainties:
  1  3.78217e-06
  2  4.12815
  3  6.67091
  4  3.65679e-07
  5  39.0838
  6  12.2682
  7  7.29344e-06
  8  1.85933
  9  2.88386e-06
  10  1.23426e-07
  11  7.47995
  12  3.3757e-06
  13  0.000426142
  14  1.11157e-05
  15  24.8136
  16  2.62761e-05
  17  30.6833
  18  8.94359
  19  70.2917
  20  4.78501e-07
  21  19.7635
  22  0.301793
  23  0.194257
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  4.785e-07  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:  9.701e-01  1.943e-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.631e+00  3.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 9.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/151922/likelihoodResults_384739201_384998401_4FGL_J2349.4+0534_daily_bin561.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): 102
logL (Free Index) = 7152.54882009
delta logL = -0.000405595345001

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7152.5484145
delta logL = -2.73394107353e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4567       1.0000          .0000       10.000    
     3 'Normalizat'    1.6315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97015       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=   7152.548     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      243 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10148E-03    400.45        .18142E-02** at limit **
   2  Index         2.3473        6.9586        .50000        .50536E-05
   3  Normalizat    1.6315        .37543E-01    .31592E-03   -.43543E-05
   4  Prefactor     .97013        .25341E-01    .26526E-03   -.78002E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101484
  Index      = 2.34729
  Normalizat = 1.63149
  Prefactor  = 0.970135
 **********
 **   18 **HESSE 
 **********

 FCN=   7152.548     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10148E-03    1461.6        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3473        8.4655        .50000       -.55924    
   3  Normalizat    1.6315        .85173E-01    .12637E-04   -.74148    
   4  Prefactor     .97013        .57457E-01    .10610E-04   -.93732    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.91269e-08
Minuit parameter uncertainties:
  1  0.0955688
  2  3104.38
  3  0.0851807
  4  0.0574606
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/151922': 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): 102
logL (Free Index) = 7152.54841438
delta logL = 1.12457200885e-07

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.015e-04  9.557e-02  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.347e+00  3.104e+03  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:  9.701e-01  5.746e-02  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.631e+00  8.518e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 357.356 5.579

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/151922/cmap_HighResolution_384739201_384998401_4FGL_J2349.4+0534_daily_bin561.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.33e-03', job_status='DONE', photon_flux_upper_limit='9.45e-08', time_completed='2021-09-30 06:59:07.558264', job_id='151922', GAL2='0.97', fit_tolerance='1e-08', EG2='1.63', EG='1.63', time_epoch_completed='1633010347.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.12e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='561' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:59:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 151922: <4FGL_J2349.4+0534_daily_bin561> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin561> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 06:45:18 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:45:20 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:45:20 2021
Terminated at Thu Sep 30 06:59:07 2021
Results reported at Thu Sep 30 06:59:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin561 357.356 5.579 384739201 384998401 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 :                                   705.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            829 sec.

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

