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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin485
RA = 357.356, Dec = 5.579
tmin = 365040001, tmax = 365299201
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='150670', job_status='RUN', time_executed='2021-09-30 06:43:13.459846', time_epoch_executed='1633009393.46' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='485'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150670

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150670/ft1_4FGL_J2349.4+0534_daily_bin485.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150670/ft2_4FGL_J2349.4+0534_daily_bin485.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150670/ft1_4FGL_J2349.4+0534_daily_bin485.fits outfile=/scratch/kocevski/150670/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin485.fits ra=357.356 dec=5.579 rad=12.0 tmin=365040001.0 tmax=365299201.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.67
user 3.44
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/150670/ft1_filtered_4FGL_J2349.4+0534_daily_bin485.fits" evtable="EVENTS" scfile=/scratch/kocevski/150670/ft2_4FGL_J2349.4+0534_daily_bin485.fits sctable="SC_DATA" outfile=/scratch/kocevski/150670/ltcube_365040001_365299201_4FGL_J2349.4+0534_daily_bin485.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/150670/ft2_4FGL_J2349.4+0534_daily_bin485.fits
.....................!
real 12.04
user 11.66
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150670/ft1_filtered_4FGL_J2349.4+0534_daily_bin485.fits evtable="EVENTS" scfile=/scratch/kocevski/150670/ft2_4FGL_J2349.4+0534_daily_bin485.fits sctable="SC_DATA" expcube=/scratch/kocevski/150670/ltcube_365040001_365299201_4FGL_J2349.4+0534_daily_bin485.fits outfile=/scratch/kocevski/150670/expmap_365040001_365299201_4FGL_J2349.4+0534_daily_bin485.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/150670/ltcube_365040001_365299201_4FGL_J2349.4+0534_daily_bin485.fits
.....................!
real 189.38
user 184.34
sys 4.73

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/150670/ft1_filtered_4FGL_J2349.4+0534_daily_bin485.fits scfile=/scratch/kocevski/150670/ft2_4FGL_J2349.4+0534_daily_bin485.fits outfile=/scratch/kocevski/150670/cmap_365040001_365299201_4FGL_J2349.4+0534_daily_bin485.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/150670/ft1_filtered_4FGL_J2349.4+0534_daily_bin485.fits scfile=/scratch/kocevski/150670/ft2_4FGL_J2349.4+0534_daily_bin485.fits outfile=/scratch/kocevski/150670/cmap_HighResolution_365040001_365299201_4FGL_J2349.4+0534_daily_bin485.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4992       1.0000         .10000E-03   10000.    
     2 'norm      '    2.3197       1.0000         .10000E-03   10000.    
     3 'norm      '    2.3419       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    65.909       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11063E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5223       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.673       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10543E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6394       1.0000         .10000E-03   10000.    
    16 'norm      '    .47623       1.0000         .10000E-03   10000.    
    17 'norm      '    4.0791       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .35780E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .64763E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .71777       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0425       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=   7566.395     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2938 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4752        19.971       -.25860E-04   -.20307E-03
   2  norm          2.3236        3.1382        .30291E-05    .20509E-03
   3  norm          2.3419        3.2012       -.76403E-07   -.61728E-03
   4  Prefactor     .10000E-03    3.5730        .24415E-06** at limit **
   5  Prefactor     65.920        37.501        .50101E-06    .16264E-05
   6  Prefactor     .10000E-03    6.9624        .43765E-06** at limit **
   7  Prefactor     .10000E-03    18.231        .70942E-06** at limit **
   8  norm          1.5223        .88938       -.36247E-07   -.49892E-03
   9  Prefactor     .10000E-03    6.0224       -.53431E-06** at limit **
  10  Prefactor     .10000E-03    23.429        .19016E-06** at limit **
  11  norm          .10000E-03    2.4375       -.28475E-06** at limit **
  12  Prefactor     17.672        6.9229        .39159E-05    .13103E-03
  13  Prefactor     .10000E-03    72.101        .72166E-05** at limit **
  14  Prefactor     .10000E-03    5.0684        .34121E-06** at limit **
  15  Prefactor     2.6341        30.472       -.21316E-06   -.85589E-04
  16  norm          .47095        9.3872       -.17106E-05   -.95177E-04
  17  norm          4.0733        11.846       -.35470E-05   -.13505E-03
  18  Prefactor     .10000E-03    1.5943        .38440E-06** at limit **
  19  Prefactor     .10120E-03    25.751       -.14636E-05** at limit **
  20  Prefactor     .10000E-03    4.2311       -.15493E-06** at limit **
  21  Prefactor     .10000E-03    3.4676       -.33861E-07** at limit **
  22  Normalizat    .71783        .17393        .13130E-06    .12084E-03
  23  Prefactor     1.0425        .12014       -.14995E-06    .31010E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.4752
  norm       = 2.32365
  norm       = 2.34185
  Prefactor  = 0.0001
  Prefactor  = 65.9202
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.52227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.6719
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.63414
  norm       = 0.470948
  norm       = 4.07333
  Prefactor  = 0.0001
  Prefactor  = 0.000101199
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.717834
  Prefactor  = 1.04249
 **********
 **   18 **HESSE 
 **********

 FCN=   7566.395     FROM HESSE     STATUS=OK           378 CALLS     3316 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4752        19.717        .21614E-03   -1.5335    
   2  norm          2.3236        3.0536        .14339E-03   -1.5403    
   3  norm          2.3419        3.1885        .17566E-03   -1.5402    
   4  Prefactor     .10000E-03    3.5831        .16056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     65.920        37.500        .49435E-04   -1.4082    
   6  Prefactor     .10000E-03    7.0765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5223        .88510        .60011E-04   -1.5461    
   9  Prefactor     .10000E-03    6.1799        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.4484        .13262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.672        6.8684        .95273E-04   -1.4867    
  13  Prefactor     .10000E-03    72.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.1006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.6341        30.443        .25097E-03   -1.5383    
  16  norm          .47095        100.76        .51086E-02   -1.5571    
  17  norm          4.0733        11.709        .19962E-03   -1.5304    
  18  Prefactor     .10000E-03    4.4797        .20959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10120E-03    27.888        .11686       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.2349        .17474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.4705        .15818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .71783        .19905        .31271E-03   -1.0319    
  23  Prefactor     1.0425        .13959        .18956E-03   -.91326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59158e-09
Minuit parameter uncertainties:
  1  16.5635
  2  3.05379
  3  3.18871
  4  1.12846e-05
  5  37.513
  6  1.98204e-05
  7  1.15958e-05
  8  0.885108
  9  4.35348e-05
  10  8.65345e-06
  11  4.84053e-05
  12  6.8687
  13  2.17252e-05
  14  3.57389e-05
  15  17.921
  16  13.7995
  17  11.7153
  18  4.20797e-05
  19  0.0115699
  20  1.56897e-06
  21  8.15453e-06
  22  0.199252
  23  0.139642
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  1.569e-06  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:  1.042e+00  1.396e-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:  7.178e-01  1.993e-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: 4.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/150670/likelihoodResults_365040001_365299201_4FGL_J2349.4+0534_daily_bin485.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) = 7566.3961153
delta logL = -0.00112233235086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7566.3949958
delta logL = -2.83277222479e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4486       1.0000          .0000       10.000    
     3 'Normalizat'    .71776       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0424       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=   7566.395     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      238 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10221E-03    58.028        .17704E-02** at limit **
   2  Index         2.3630        6.1533        .50000        .30254E-04
   3  Normalizat    .71783        .15240E-01    .31271E-03   -.65513E-04
   4  Prefactor     1.0425        .11034E-01    .18956E-03   -.96138E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102205
  Index      = 2.36295
  Normalizat = 0.717834
  Prefactor  = 1.04249
 **********
 **   18 **HESSE 
 **********

 FCN=   7566.395     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10221E-03    235.69        .35407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3630        8.8146        .50000       -.55555    
   3  Normalizat    .71783        .32287E-01    .12508E-04   -1.0319    
   4  Prefactor     1.0425        .23376E-01    .37912E-04   -.91326    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.81139e-08
Minuit parameter uncertainties:
  1  0.045778
  2  711.396
  3  0.0322875
  4  0.023376
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150670': 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) = 7566.3949924
delta logL = 5.72375029151e-07

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.022e-04  4.578e-02  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.363e+00  7.114e+02  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:  1.042e+00  2.338e-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:  7.178e-01  3.229e-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/150670/cmap_HighResolution_365040001_365299201_4FGL_J2349.4+0534_daily_bin485.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.40e-03', job_status='DONE', photon_flux_upper_limit='4.39e-08', time_completed='2021-09-30 06:55:29.336830', job_id='150670', GAL2='1.04', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1633010129.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='5.72e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='485' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:55:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 150670: <4FGL_J2349.4+0534_daily_bin485> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin485> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 06:40:26 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:40:29 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:40:29 2021
Terminated at Thu Sep 30 06:55:30 2021
Results reported at Thu Sep 30 06:55:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin485 357.356 5.579 365040001 365299201 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 :                                   736.00 sec.
    Max Memory :                                 1146 MB
    Average Memory :                             277.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            904 sec.

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

