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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin903
RA = 357.356, Dec = 5.579
tmin = 473385601, tmax = 473644801
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='153395', job_status='RUN', time_executed='2021-09-30 06:54:36.755079', time_epoch_executed='1633010076.76' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='903'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153395

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153395/ft1_4FGL_J2349.4+0534_daily_bin903.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153395/ft2_4FGL_J2349.4+0534_daily_bin903.fits


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

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

Done.
real 3.57
user 3.35
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153395/ft1_filtered_4FGL_J2349.4+0534_daily_bin903.fits evtable="EVENTS" scfile=/scratch/kocevski/153395/ft2_4FGL_J2349.4+0534_daily_bin903.fits sctable="SC_DATA" expcube=/scratch/kocevski/153395/ltcube_473385601_473644801_4FGL_J2349.4+0534_daily_bin903.fits outfile=/scratch/kocevski/153395/expmap_473385601_473644801_4FGL_J2349.4+0534_daily_bin903.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/153395/ltcube_473385601_473644801_4FGL_J2349.4+0534_daily_bin903.fits
.....................!
real 189.82
user 185.16
sys 4.09

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/153395/ft1_filtered_4FGL_J2349.4+0534_daily_bin903.fits scfile=/scratch/kocevski/153395/ft2_4FGL_J2349.4+0534_daily_bin903.fits outfile=/scratch/kocevski/153395/cmap_473385601_473644801_4FGL_J2349.4+0534_daily_bin903.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.55
user 0.40
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .83251       1.0000         .10000E-03   10000.    
     3 'norm      '    4.7935       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .46861E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.178       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10330E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5139       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.441       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.6482       1.0000         .10000E-03   10000.    
    13 'Prefactor '    163.94       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    31.821       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.1007       1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.102       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.658       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3121       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .68358       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=   5876.175     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2483 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.7539       -.20833E-05** at limit **
   2  norm          .83214        2.6128       -.21159E-06   -.22636E-03
   3  norm          4.7941        4.7868       -.71227E-06   -.28237E-04
   4  Prefactor     .10003E-03    8.4501       -.45526E-06** at limit **
   5  Prefactor     34.173        36.253       -.47601E-05   -.52317E-04
   6  Prefactor     .10000E-03    6.9586       -.32482E-06** at limit **
   7  Prefactor     .10000E-03    33.289       -.18674E-05** at limit **
   8  norm          1.5139        1.0631        .12926E-07   -.44185E-04
   9  Prefactor     12.442        11.337        .74571E-08    .47152E-04
  10  Prefactor     .10000E-03    13.807       -.63674E-05** at limit **
  11  norm          .10000E-03    7.6764       -.22788E-05** at limit **
  12  Prefactor     5.6504        7.7075        .77154E-07   -.87066E-03
  13  Prefactor     163.93        202.32       -.82023E-05   -.15350E-04
  14  Prefactor     .10000E-03    5.0795       -.22211E-06** at limit **
  15  Prefactor     .10000E-03    9.3844        .49460E-05** at limit **
  16  norm          31.820        20.459       -.84020E-06   -.17409E-04
  17  norm          .10000E-03    6.7790        .18650E-05** at limit **
  18  Prefactor     4.0989        3.2363        .61264E-06   -.27475E-02
  19  Prefactor     24.099        35.836       -.33195E-05   -.25747E-04
  20  Prefactor     17.658        13.789       -.14605E-07    .52764E-05
  21  Prefactor     .10000E-03    18.486        .55903E-05** at limit **
  22  Normalizat    1.3122        .20829        .80363E-06    .32669E-04
  23  Prefactor     .68349        .13385        .12949E-06    .83108E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.83214
  norm       = 4.79412
  Prefactor  = 0.000100032
  Prefactor  = 34.1728
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.51394
  Prefactor  = 12.442
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.65043
  Prefactor  = 163.926
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 31.8201
  norm       = 0.0001
  Prefactor  = 4.0989
  Prefactor  = 24.099
  Prefactor  = 17.6577
  Prefactor  = 0.0001
  Normalizat = 1.31222
  Prefactor  = 0.683485
 **********
 **   18 **HESSE 
 **********

 FCN=   5876.175     FROM HESSE     STATUS=OK           370 CALLS     2853 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.7616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .83214        2.6181        .20610E-03   -1.5526    
   3  norm          4.7941        4.7230        .15876E-03   -1.5270    
   4  Prefactor     .10003E-03    48.996        .41576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     34.173        36.321        .68545E-04   -1.4538    
   6  Prefactor     .10000E-03    6.9814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    33.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5139        1.0508        .63096E-04   -1.5462    
   9  Prefactor     12.442        11.317        .11357E-03   -1.5002    
  10  Prefactor     .10000E-03    13.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.7163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.6504        8.3530        .84513E-03   -1.5233    
  13  Prefactor     163.93        205.27        .15750E-03   -1.3140    
  14  Prefactor     .10000E-03    5.0934        .16866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.4186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          31.820        20.456        .71031E-04   -1.4579    
  17  norm          .10000E-03    6.7890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.0989        5.8083        .99312E-03   -1.5303    
  19  Prefactor     24.099        35.858        .81593E-04   -1.4726    
  20  Prefactor     17.658        13.793        .95313E-04   -1.4867    
  21  Prefactor     .10000E-03    18.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3122        .24381        .26199E-03   -.83202    
  23  Prefactor     .68349        .15422        .23360E-03   -1.0418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.10414e-09
Minuit parameter uncertainties:
  1  2.4717e-05
  2  2.61846
  3  4.72336
  4  0.00252007
  5  36.3441
  6  3.6893e-06
  7  2.34705e-05
  8  1.05086
  9  11.3186
  10  0.000112447
  11  2.41451e-05
  12  8.35474
  13  206.177
  14  4.59199e-06
  15  7.35987e-05
  16  20.4607
  17  2.76041e-05
  18  5.80912
  19  35.8898
  20  13.7955
  21  8.24901e-05
  22  0.244021
  23  0.154315
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.766e+01  1.380e+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:  6.835e-01  1.543e-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.312e+00  2.440e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.40
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 3.53e-08 +/- 2.75e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 8.30e-06

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) = 5874.12031395
delta logL = 2.05460172876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5874.04321851
delta logL = 2.13169716492

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.217       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4192       1.0000          .0000       10.000    
     3 'Normalizat'    1.3323       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67537       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=   5874.043     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      212 TOTAL
                     EDM=   .16E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.221        21.718        .19283E-05   -.63407E-05
   2  Index         1.4192        .44082        .11170E-04    .39791E-07
   3  Normalizat    1.3323        .19778       -.27285E-07   -.48733E-04
   4  Prefactor     .67537        .13243       -.14484E-06   -.42426E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.2213
  Index      = 1.41919
  Normalizat = 1.3323
  Prefactor  = 0.675372
 **********
 **   18 **HESSE 
 **********

 FCN=   5874.043     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.221        21.399        .79771E-04   -1.4703    
   2  Index         1.4192        .43427        .76085E-02   -.79829    
   3  Normalizat    1.3323        .22729        .26017E-03   -.82607    
   4  Prefactor     .67537        .15219        .23476E-03   -1.0450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.62843e-10
Minuit parameter uncertainties:
  1  21.4054
  2  0.4354
  3  0.227459
  4  0.152285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153395': 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) = 5874.04321849
delta logL = 2.13169719167

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  2.522e+01  2.141e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  1.419e+00  4.354e-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:  6.754e-01  1.523e-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.332e+00  2.275e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.66
Ra Dec: 357.356 5.579
Photon Index (Free Index): 1.42 +/- 0.44
Photon Flux (Free Index): 1.49e-08 +/- 1.37e-08
Energy Flux (Free Index): 6.18e-05 +/- 7.34e-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/153395/cmap_HighResolution_473385601_473644801_4FGL_J2349.4+0534_daily_bin903.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.53e-08', energy_flux2='6.18e-05', photon_flux_error='2.75e-08', dlogl='2.13e+00', energy_flux='1.06e-05', photon_flux2='1.49e-08', job_status='DONE', time_completed='2021-09-30 07:03:55.300031', photon_index_error2='0.44', photon_index2='1.42', ts='4.40', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='7.34e-05', EG='1.31', time_epoch_completed='1633010635.3', return_code='0', job_id='153395', GAL2='0.68', EG2='1.33', return_code2='0', energy_flux_error='8.30e-06', photon_flux_error2='1.37e-08', ts2='8.66', photon_index='2.47' WHERE bin_id='903' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:03:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 153395: <4FGL_J2349.4+0534_daily_bin903> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin903> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 06:50:26 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:50:28 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:50:28 2021
Terminated at Thu Sep 30 07:03:56 2021
Results reported at Thu Sep 30 07:03:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin903 357.356 5.579 473385601 473644801 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 :                                   557.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             238.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            810 sec.

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

