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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin501
RA = 357.356, Dec = 5.579
tmin = 369187201, tmax = 369446401
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='150695', job_status='RUN', time_executed='2021-09-30 06:43:02.221964', time_epoch_executed='1633009382.22' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='501'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150695

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150695/ft1_4FGL_J2349.4+0534_daily_bin501.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150695/ft2_4FGL_J2349.4+0534_daily_bin501.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150695/ft1_4FGL_J2349.4+0534_daily_bin501.fits outfile=/scratch/kocevski/150695/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin501.fits ra=357.356 dec=5.579 rad=12.0 tmin=369187201.0 tmax=369446401.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.47
user 3.25
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/150695/ft1_filtered_4FGL_J2349.4+0534_daily_bin501.fits" evtable="EVENTS" scfile=/scratch/kocevski/150695/ft2_4FGL_J2349.4+0534_daily_bin501.fits sctable="SC_DATA" outfile=/scratch/kocevski/150695/ltcube_369187201_369446401_4FGL_J2349.4+0534_daily_bin501.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/150695/ft2_4FGL_J2349.4+0534_daily_bin501.fits
.....................!
real 11.98
user 11.56
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150695/ft1_filtered_4FGL_J2349.4+0534_daily_bin501.fits evtable="EVENTS" scfile=/scratch/kocevski/150695/ft2_4FGL_J2349.4+0534_daily_bin501.fits sctable="SC_DATA" expcube=/scratch/kocevski/150695/ltcube_369187201_369446401_4FGL_J2349.4+0534_daily_bin501.fits outfile=/scratch/kocevski/150695/expmap_369187201_369446401_4FGL_J2349.4+0534_daily_bin501.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/150695/ltcube_369187201_369446401_4FGL_J2349.4+0534_daily_bin501.fits
.....................!
real 190.49
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/150695/ft1_filtered_4FGL_J2349.4+0534_daily_bin501.fits scfile=/scratch/kocevski/150695/ft2_4FGL_J2349.4+0534_daily_bin501.fits outfile=/scratch/kocevski/150695/cmap_369187201_369446401_4FGL_J2349.4+0534_daily_bin501.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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/150695/ft1_filtered_4FGL_J2349.4+0534_daily_bin501.fits scfile=/scratch/kocevski/150695/ft2_4FGL_J2349.4+0534_daily_bin501.fits outfile=/scratch/kocevski/150695/cmap_HighResolution_369187201_369446401_4FGL_J2349.4+0534_daily_bin501.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.2258       1.0000         .10000E-03   10000.    
     3 'norm      '    7.4875       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    86.879       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.9914       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12424E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.873       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    22.732       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .33275E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.5349       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .51584       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1819       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.

 FCN=   6952.634     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2908 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    28.798        .90712E-02** at limit **
   2  norm          3.2260        2.4251        .56386E-02    .44899E-03
   3  norm          7.4888        4.7883        .36641E-02    .14852E-03
   4  Prefactor     .10000E-03    8.8010        .90712E-02** at limit **
   5  Prefactor     86.877        49.175        .10776E-02    .16816E-02
   6  Prefactor     .10000E-03    4.6791        .90712E-02** at limit **
   7  Prefactor     .10001E-03    31.060        .90712E-02** at limit **
   8  norm          2.9915        .95762        .58678E-02    .61278E-03
   9  Prefactor     .10002E-03    5.9635        .10306    ** at limit **
  10  Prefactor     .10000E-03    13.774        .90712E-02** at limit **
  11  norm          .10000E-03    4.1540        .90712E-02** at limit **
  12  Prefactor     .10000E-03    6.0514        .90712E-02** at limit **
  13  Prefactor     .10006E-03    63.783        .90712E-02** at limit **
  14  Prefactor     14.880        13.458        .25964E-02    .72325E-03
  15  Prefactor     .10000E-03    4.4996        .90712E-02** at limit **
  16  norm          .10000E-03    5.9746        .90712E-02** at limit **
  17  norm          22.736        29.551        .21003E-02   -.41391E-03
  18  Prefactor     .10000E-03    1.6356        .90712E-02** at limit **
  19  Prefactor     .10433E-03    18.262        .13048    ** at limit **
  20  Prefactor     .10001E-03    22.814        .90712E-02** at limit **
  21  Prefactor     9.5368        11.131        .32445E-02    .61775E-04
  22  Normalizat    .51586        .19330        .83078E-01    .76776E-04
  23  Prefactor     1.1818        .13326        .35074E-01    .69908E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100043
  norm       = 3.22601
  norm       = 7.48876
  Prefactor  = 0.0001
  Prefactor  = 86.8771
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 2.99148
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100059
  Prefactor  = 14.8796
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 22.736
  Prefactor  = 0.0001
  Prefactor  = 0.000104328
  Prefactor  = 0.000100008
  Prefactor  = 9.53679
  Normalizat = 0.515865
  Prefactor  = 1.18178
 **********
 **   18 **HESSE 
 **********

 FCN=   6952.634     FROM HESSE     STATUS=OK           366 CALLS     3274 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    29.262        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.2260        2.4079        .10471E-03   -1.5349    
   3  norm          7.4888        4.7770        .13962E-03   -1.5161    
   4  Prefactor     .10000E-03    8.9343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     86.877        49.072        .43103E-04   -1.3841    
   6  Prefactor     .10000E-03    4.6856        .17615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    32.235        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.9915        .95684        .44469E-04   -1.5362    
   9  Prefactor     .10002E-03    84.236        .38472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.1788        .16582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.2182        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10006E-03    63.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.880        13.564        .10386E-03   -1.4936    
  15  Prefactor     .10000E-03    4.5012        .17273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.9899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          22.736        29.785        .84013E-04   -1.4754    
  18  Prefactor     .10000E-03    1.6628        .10385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10433E-03    146.20        .68269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    23.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.5368        11.120        .12978E-03   -1.5090    
  22  Normalizat    .51586        .20855        .36799E-03   -1.1169    
  23  Prefactor     1.1818        .14654        .18313E-03   -.86894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09639e-08
Minuit parameter uncertainties:
  1  0.00224468
  2  2.40801
  3  4.77729
  4  2.6414e-05
  5  49.095
  6  4.23802e-06
  7  0.000926885
  8  0.95684
  9  0.00267175
  10  0.000103368
  11  5.3534e-06
  12  1.7515e-05
  13  0.00388341
  14  13.5667
  15  8.85701e-06
  16  3.06354e-05
  17  29.8041
  18  4.98405e-06
  19  0.0504323
  20  0.000857267
  21  11.1222
  22  0.208868
  23  0.146595
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  8.573e-04  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.182e+00  1.466e-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:  5.159e-01  2.089e-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: 6.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/150695/likelihoodResults_369187201_369446401_4FGL_J2349.4+0534_daily_bin501.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) = 6952.63448523
delta logL = -0.000204990174097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6952.63427912
delta logL = 1.11861572805e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17510E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3375       1.0000          .0000       10.000    
     3 'Normalizat'    .51586       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1818       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=   6952.230     FROM MIGRAD    STATUS=CONVERGED    132 CALLS      299 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.083        16.819         .0000        .35786E-02
   2  Index         1.4076        .53416         .0000       -.62998E-04
   3  Normalizat    .52685        .17969         .0000        .56556E-04
   4  Prefactor     1.1689        .13199         .0000       -.16272E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0833
  Index      = 1.40764
  Normalizat = 0.526855
  Prefactor  = 1.16894
 **********
 **   18 **HESSE 
 **********

 FCN=   6952.230     FROM HESSE     STATUS=OK            33 CALLS      332 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.083        16.956        .18142E-02   -1.5042    
   2  Index         1.4076        .63438        .11635E-01   -.80160    
   3  Normalizat    .52685        .19691        .36433E-03   -1.1119    
   4  Prefactor     1.1689        .14511        .18389E-03   -.87292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3216e-09
Minuit parameter uncertainties:
  1  16.9633
  2  0.63795
  3  0.197168
  4  0.145159
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150695': 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) = 6952.23047539
delta logL = 0.403804856507

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.108e+01  1.696e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  1.408e+00  6.379e-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:  1.169e+00  1.452e-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:  5.269e-01  1.972e-01  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/150695/cmap_HighResolution_369187201_369446401_4FGL_J2349.4+0534_daily_bin501.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.33e-03', job_status='DONE', photon_flux_upper_limit='6.87e-08', time_completed='2021-09-30 06:54:50.374753', job_id='150695', GAL2='1.17', fit_tolerance='1e-08', EG2='0.53', EG='0.52', time_epoch_completed='1633010090.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='4.04e-01', ts2='0.81', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='501' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:54:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 150695: <4FGL_J2349.4+0534_daily_bin501> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin501 357.356 5.579 369187201 369446401 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 :                                   706.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            865 sec.

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

