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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin140
RA = 357.356, Dec = 5.579
tmin = 275616001, tmax = 275875201
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='149101', job_status='RUN', time_executed='2021-09-30 06:38:44.749112', time_epoch_executed='1633009124.75' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='140'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149101

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149101/ft1_4FGL_J2349.4+0534_daily_bin140.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149101/ft2_4FGL_J2349.4+0534_daily_bin140.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149101/ft1_4FGL_J2349.4+0534_daily_bin140.fits outfile=/scratch/kocevski/149101/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin140.fits ra=357.356 dec=5.579 rad=12.0 tmin=275616001.0 tmax=275875201.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.32
user 3.94
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/149101/ft2_4FGL_J2349.4+0534_daily_bin140.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/149101/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin140.fits evtable="EVENTS" outfile="/scratch/kocevski/149101/ft1_filtered_4FGL_J2349.4+0534_daily_bin140.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149101/ft1_filtered_4FGL_J2349.4+0534_daily_bin140.fits evtable="EVENTS" scfile=/scratch/kocevski/149101/ft2_4FGL_J2349.4+0534_daily_bin140.fits sctable="SC_DATA" expcube=/scratch/kocevski/149101/ltcube_275616001_275875201_4FGL_J2349.4+0534_daily_bin140.fits outfile=/scratch/kocevski/149101/expmap_275616001_275875201_4FGL_J2349.4+0534_daily_bin140.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/149101/ltcube_275616001_275875201_4FGL_J2349.4+0534_daily_bin140.fits
.....................!
real 190.00
user 184.69
sys 4.48

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/149101/ft1_filtered_4FGL_J2349.4+0534_daily_bin140.fits scfile=/scratch/kocevski/149101/ft2_4FGL_J2349.4+0534_daily_bin140.fits outfile=/scratch/kocevski/149101/cmap_275616001_275875201_4FGL_J2349.4+0534_daily_bin140.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149101/ft1_filtered_4FGL_J2349.4+0534_daily_bin140.fits scfile=/scratch/kocevski/149101/ft2_4FGL_J2349.4+0534_daily_bin140.fits outfile=/scratch/kocevski/149101/cmap_HighResolution_275616001_275875201_4FGL_J2349.4+0534_daily_bin140.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/149101/ft1_filtered_4FGL_J2349.4+0534_daily_bin140.fits evtable="EVENTS" scfile=/scratch/kocevski/149101/ft2_4FGL_J2349.4+0534_daily_bin140.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149101/Model_4FGL_J2349.4+0534_daily_bin140.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/149101/ft1_filtered_4FGL_J2349.4+0534_daily_bin140.fits.....................!
real 58.89
user 57.26
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .99880       1.0000         .10000E-03   10000.    
     3 'norm      '    .95391       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.718       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.748       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.943       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .21600       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .12099E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8945       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.660       1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.807       1.0000         .10000E-03   10000.    
    16 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.5210       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.2670       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.571       1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.432       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .79147       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97429       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=   5266.671     FROM MIGRAD    STATUS=CONVERGED    928 CALLS     3482 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.6328        .18142E-02** at limit **
   2  norm          .99842        2.3540        .16600E-03   -.13676E-03
   3  norm          .95386        5.0513        .30504E-03   -.24262E-04
   4  Prefactor     19.714        14.304        .90197E-04    .24301E-03
   5  Prefactor     22.763        28.620        .83983E-04    .35737E-04
   6  Prefactor     .10000E-03    18.952        .18142E-02** at limit **
   7  Prefactor     21.942        23.445        .85507E-04    .26591E-05
   8  norm          .10000E-03    .25940        .35797E-03** at limit **
   9  Prefactor     .29969E-01    23.995        .64459E-01    .10309E-03
  10  Prefactor     .10000E-03    141.65        .18142E-02** at limit **
  11  norm          .10000E-03    22.751        .36285E-03** at limit **
  12  Prefactor     1.9141        9.8919        .15113E-02    .42684E-03
  13  Prefactor     .10000E-03    136.54        .18142E-02** at limit **
  14  Prefactor     15.663        14.000        .10121E-03    .18624E-03
  15  Prefactor     37.027        36.999        .66060E-04   -.10178E-03
  16  norm          .10000E-03    22.240        .18142E-02** at limit **
  17  norm          7.4621        30.530        .14624E-03   -.58384E-04
  18  Prefactor     6.2649        5.7495        .14783E-03    .17934E-03
  19  Prefactor     27.566        28.601        .76296E-04    .35672E-04
  20  Prefactor     22.419        21.562        .84572E-04   -.29305E-04
  21  Prefactor     .10000E-03    35.854        .36285E-03** at limit **
  22  Normalizat    .79134        .24642        .31371E-03    .81829E-04
  23  Prefactor     .97456        .16299        .19843E-03    .21198E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.998419
  norm       = 0.953864
  Prefactor  = 19.7139
  Prefactor  = 22.7632
  Prefactor  = 0.0001
  Prefactor  = 21.9419
  norm       = 0.0001
  Prefactor  = 0.029969
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 1.91415
  Prefactor  = 0.0001
  Prefactor  = 15.6628
  Prefactor  = 37.0266
  norm       = 0.0001
  norm       = 7.46212
  Prefactor  = 6.26491
  Prefactor  = 27.5659
  Prefactor  = 22.4191
  Prefactor  = 0.000100001
  Normalizat = 0.791344
  Prefactor  = 0.974557
 **********
 **   18 **HESSE 
 **********

 FCN=   5266.671     FROM HESSE     STATUS=OK           358 CALLS     3840 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6333        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .99842        2.3535        .66402E-05   -1.5508    
   3  norm          .95386        5.0466        .12202E-04   -1.5513    
   4  Prefactor     19.714        14.300        .36079E-05   -1.4820    
   5  Prefactor     22.763        28.616        .33593E-05   -1.4753    
   6  Prefactor     .10000E-03    18.967        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.942        23.443        .34203E-05   -1.4771    
   8  norm          .10000E-03    .25941        .71594E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .29969E-01    17.934        .76465E-01   -1.5673    
  10  Prefactor     .10000E-03    141.72        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    22.751        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.9141        9.8256        .30225E-03   -1.5431    
  13  Prefactor     .10000E-03    136.54        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.663        13.997        .40484E-05   -1.4916    
  15  Prefactor     37.027        36.806        .13212E-04   -1.4490    
  16  norm          .10000E-03    22.250        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.4621        30.516        .58494E-05   -1.5162    
  18  Prefactor     6.2649        5.7483        .59132E-05   -1.5207    
  19  Prefactor     27.566        28.601        .15259E-04   -1.4657    
  20  Prefactor     22.419        21.559        .33829E-05   -1.4761    
  21  Prefactor     .10000E-03    35.855        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .79134        .24645        .12548E-04   -1.0039    
  23  Prefactor     .97456        .16302        .39687E-04   -.93582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67446e-10
Minuit parameter uncertainties:
  1  2.7024e-05
  2  2.35372
  3  4.38839
  4  14.3025
  5  28.6333
  6  1.69825e-05
  7  23.4527
  8  8.52563e-07
  9  1.46424
  10  0.000694832
  11  0.000300157
  12  8.67557
  13  0.000265146
  14  13.9995
  15  36.8288
  16  8.42664e-05
  17  30.2071
  18  5.74882
  19  28.6147
  20  21.5661
  21  0.000296226
  22  0.246797
  23  0.163099
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  2.242e+01  2.157e+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:  9.746e-01  1.631e-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.913e-01  2.468e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.80
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 4.48e-08 +/- 4.30e-08
Energy Flux (Fixed Index): 1.35e-05 +/- 1.30e-05

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

Saving results to:
/scratch/kocevski/149101/likelihoodResults_275616001_275875201_4FGL_J2349.4+0534_daily_bin140.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) = 5266.62009611
delta logL = 0.0508333820508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5266.61728558
delta logL = 0.0536439143189

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.658       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7258       1.0000          .0000       10.000    
     3 'Normalizat'    .78216       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97799       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=   5266.617     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      294 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.649        24.986        .95313E-04    .16699E-03
   2  Index         2.7252        .87826        .74711E-02    .29215E-04
   3  Normalizat    .78238        .23284        .31534E-03    .10563E-03
   4  Prefactor     .97799        .16164        .19811E-03    .12082E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.6489
  Index      = 2.72516
  Normalizat = 0.782379
  Prefactor  = 0.977985
 **********
 **   18 **HESSE 
 **********

 FCN=   5266.617     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.649        23.069        .38125E-05   -1.4868    
   2  Index         2.7252        .81078        .29885E-03   -.47234    
   3  Normalizat    .78238        .23272        .12614E-04   -1.0073    
   4  Prefactor     .97799        .16161        .39622E-04   -.93467    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.15088e-11
Minuit parameter uncertainties:
  1  23.0805
  2  0.815329
  3  0.233013
  4  0.161686
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149101': 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) = 5266.61728354
delta logL = 0.0536459495797

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.765e+01  2.308e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.725e+00  8.153e-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:  9.780e-01  1.617e-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.824e-01  2.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.91
Ra Dec: 357.356 5.579
Photon Index (Free Index): 2.73 +/- 0.82
Photon Flux (Free Index): 5.43e-08 +/- 5.64e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.20e-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/149101/cmap_HighResolution_275616001_275875201_4FGL_J2349.4+0534_daily_bin140.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', photon_flux='4.48e-08', energy_flux2='1.28e-05', photon_flux_error='4.30e-08', dlogl='5.36e-02', energy_flux='1.35e-05', photon_flux2='5.43e-08', job_status='DONE', time_completed='2021-09-30 06:49:29.781975', photon_index_error2='0.82', photon_index2='2.73', ts='1.80', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='1.20e-05', EG='0.79', time_epoch_completed='1633009769.78', return_code='0', job_id='149101', GAL2='0.98', EG2='0.78', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='5.64e-08', ts2='1.91', photon_index='2.47' WHERE bin_id='140' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:49:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 149101: <4FGL_J2349.4+0534_daily_bin140> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin140> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 06:35:22 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:35:23 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:23 2021
Terminated at Thu Sep 30 06:49:30 2021
Results reported at Thu Sep 30 06:49:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin140 357.356 5.579 275616001 275875201 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 :                                   641.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            848 sec.

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

