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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1110
RA = 357.356, Dec = 5.579
tmin = 527040001, tmax = 527299201
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='153692', job_status='RUN', time_executed='2021-09-30 06:51:05.900184', time_epoch_executed='1633009865.9' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153692

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153692/ft1_4FGL_J2349.4+0534_daily_bin1110.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153692/ft2_4FGL_J2349.4+0534_daily_bin1110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153692/ft1_4FGL_J2349.4+0534_daily_bin1110.fits outfile=/scratch/kocevski/153692/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1110.fits ra=357.356 dec=5.579 rad=12.0 tmin=527040001.0 tmax=527299201.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 6.00
user 5.75
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/153692/ft2_4FGL_J2349.4+0534_daily_bin1110.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/153692/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1110.fits evtable="EVENTS" outfile="/scratch/kocevski/153692/ft1_filtered_4FGL_J2349.4+0534_daily_bin1110.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/153692/ft1_filtered_4FGL_J2349.4+0534_daily_bin1110.fits" evtable="EVENTS" scfile=/scratch/kocevski/153692/ft2_4FGL_J2349.4+0534_daily_bin1110.fits sctable="SC_DATA" outfile=/scratch/kocevski/153692/ltcube_527040001_527299201_4FGL_J2349.4+0534_daily_bin1110.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/153692/ft2_4FGL_J2349.4+0534_daily_bin1110.fits
.....................!
real 11.99
user 11.65
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153692/ft1_filtered_4FGL_J2349.4+0534_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/153692/ft2_4FGL_J2349.4+0534_daily_bin1110.fits sctable="SC_DATA" expcube=/scratch/kocevski/153692/ltcube_527040001_527299201_4FGL_J2349.4+0534_daily_bin1110.fits outfile=/scratch/kocevski/153692/expmap_527040001_527299201_4FGL_J2349.4+0534_daily_bin1110.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/153692/ltcube_527040001_527299201_4FGL_J2349.4+0534_daily_bin1110.fits
.....................!
real 191.02
user 185.55
sys 5.05

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/153692/ft1_filtered_4FGL_J2349.4+0534_daily_bin1110.fits scfile=/scratch/kocevski/153692/ft2_4FGL_J2349.4+0534_daily_bin1110.fits outfile=/scratch/kocevski/153692/cmap_527040001_527299201_4FGL_J2349.4+0534_daily_bin1110.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153692/ft1_filtered_4FGL_J2349.4+0534_daily_bin1110.fits scfile=/scratch/kocevski/153692/ft2_4FGL_J2349.4+0534_daily_bin1110.fits outfile=/scratch/kocevski/153692/cmap_HighResolution_527040001_527299201_4FGL_J2349.4+0534_daily_bin1110.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/153692/ft1_filtered_4FGL_J2349.4+0534_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/153692/ft2_4FGL_J2349.4+0534_daily_bin1110.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/153692/Model_4FGL_J2349.4+0534_daily_bin1110.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/153692/ft1_filtered_4FGL_J2349.4+0534_daily_bin1110.fits.......................!
real 32.23
user 30.77
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24220E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .48170       1.0000         .10000E-03   10000.    
     3 'norm      '    6.7380       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.4519       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.658       1.0000         .10000E-03   10000.    
     8 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    13.079       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11676E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    29.370       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    90.548       1.0000         .10000E-03   10000.    
    20 'Prefactor '    54.644       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .89721       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80753       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=   2039.599     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2623 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    133.27        .36541E-04** at limit **
   2  norm          .48076        6.4048        .62394E-06   -.77886E-03
   3  norm          6.7390        6.3595        .46412E-06   -.75731E-04
   4  Prefactor     .10000E-03    11.864        .19712E-05** at limit **
   5  Prefactor     6.4466        33.071        .44905E-06   -.11568E-04
   6  Prefactor     .10000E-03    5.8892        .40795E-07** at limit **
   7  Prefactor     14.644        39.954       -.94272E-05   -.14181E-04
   8  norm          .10000E-03    1.2769        .24553E-07** at limit **
   9  Prefactor     .10000E-03    6.2610       -.37299E-07** at limit **
  10  Prefactor     .10000E-03    81.731       -.24277E-06** at limit **
  11  norm          13.079        12.076        .18490E-06    .10100E-04
  12  Prefactor     .10000E-03    11.062       -.83584E-06** at limit **
  13  Prefactor     .10000E-03    161.57       -.42462E-04** at limit **
  14  Prefactor     .10000E-03    12.016       -.10920E-05** at limit **
  15  Prefactor     .10000E-03    19.516       -.37719E-05** at limit **
  16  norm          29.365        30.754       -.59444E-06   -.29695E-06
  17  norm          .10000E-03    24.870        .17016E-04** at limit **
  18  Prefactor     .10000E-03    5.0407       -.25063E-06** at limit **
  19  Prefactor     90.609        110.80        .55396E-04   -.26729E-04
  20  Prefactor     54.643        59.667       -.58110E-05   -.37195E-04
  21  Prefactor     .10000E-03    26.822       -.15210E-04** at limit **
  22  Normalizat    .89640        .34469       -.10574E-04   -.16603E-04
  23  Prefactor     .80809        .22133        .21225E-05   -.26915E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.48076
  norm       = 6.73896
  Prefactor  = 0.0001
  Prefactor  = 6.44663
  Prefactor  = 0.0001
  Prefactor  = 14.6444
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.0788
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 29.3648
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 90.609
  Prefactor  = 54.6432
  Prefactor  = 0.0001
  Normalizat = 0.896403
  Prefactor  = 0.808094
 **********
 **   18 **HESSE 
 **********

 FCN=   2039.599     FROM HESSE     STATUS=OK           364 CALLS     2987 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    134.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .48076        11.939        .20823E-02   -1.5569    
   3  norm          6.7390        6.3637        .10742E-03   -1.5189    
   4  Prefactor     .10000E-03    11.890        .15194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.4466        33.075        .15801E-03   -1.5200    
   6  Prefactor     .10000E-03    5.8905        .10705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.644        40.055        .10462E-03   -1.4942    
   8  norm          .10000E-03    1.3354        .99524E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.2635        .11037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    81.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.079        12.070        .11076E-03   -1.4985    
  12  Prefactor     .10000E-03    11.168        .14657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    161.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.042        .15294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          29.365        30.770        .73928E-04   -1.4624    
  17  norm          .10000E-03    24.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.0661        .99011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     90.609        110.58        .21114E-03   -1.3801    
  20  Prefactor     54.643        59.783        .54262E-04   -1.4228    
  21  Prefactor     .10000E-03    26.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .89640        .40822        .28377E-03   -.96587    
  23  Prefactor     .80809        .26502        .20078E-03   -.99431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62991e-09
Minuit parameter uncertainties:
  1  0.000669715
  2  4.79211
  3  6.36431
  4  1.42055e-05
  5  29.2295
  6  2.95004e-06
  7  40.1286
  8  4.40056e-06
  9  9.22907e-06
  10  0.000217485
  11  12.0725
  12  3.18899e-05
  13  6.07025e-05
  14  0.000115183
  15  8.64525e-05
  16  30.7865
  17  0.000147937
  18  5.62134e-05
  19  110.828
  20  59.8484
  21  5.57275e-05
  22  0.409635
  23  0.265436
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  5.464e+01  5.985e+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:  8.081e-01  2.654e-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:  8.964e-01  4.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.36
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.09e-07 +/- 1.19e-07
Energy Flux (Fixed Index): 3.29e-05 +/- 3.60e-05

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

Saving results to:
/scratch/kocevski/153692/likelihoodResults_527040001_527299201_4FGL_J2349.4+0534_daily_bin1110.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) = 2038.90532449
delta logL = 0.693459378331

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2038.81980021
delta logL = 0.778983664819

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .84672E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    6.1164       1.0000          .0000       10.000    
     3 'Normalizat'    .73686       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90472       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=   2038.820     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      353 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83519E-01    1.4170        .20081E-02    .69593E-03
   2  Index         6.1224        3.3206        .66463E-01    .60243E-04
   3  Normalizat    .73708        .12055        .69713E-01    .70777E-05
   4  Prefactor     .90462        .81888E-01    .45065E-01   -.42687E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0835189
  Index      = 6.12239
  Normalizat = 0.737081
  Prefactor  = 0.904624
 **********
 **   18 **HESSE 
 **********

 FCN=   2038.820     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      386 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83519E-01    2.1596        .89635E-05   -1.5650    
   2  Index         6.1224        4.0408        .28217E-02    .22641    
   3  Normalizat    .73708        .35238        .30850E-03   -1.0245    
   4  Prefactor     .90462        .23640        .19096E-03   -.95980    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.25162e-11
Minuit parameter uncertainties:
  1  0.848922
  2  4.76467
  3  0.353469
  4  0.236666
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153692': 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) = 2038.81979751
delta logL = 0.778986363836

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  8.352e-02  8.489e-01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  6.122e+00  4.765e+00  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.046e-01  2.367e-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.371e-01  3.535e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.20
Ra Dec: 357.356 5.579
Photon Index (Free Index): 6.12 +/- 4.76
Photon Flux (Free Index): 2.18e-07 +/- 1.55e-07
Energy Flux (Free Index): 2.70e-05 +/- 2.10e-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/153692/cmap_HighResolution_527040001_527299201_4FGL_J2349.4+0534_daily_bin1110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.86e-02', comment='SUCCESS', photon_flux='1.09e-07', energy_flux2='2.70e-05', photon_flux_error='1.19e-07', dlogl='7.79e-01', energy_flux='3.29e-05', photon_flux2='2.18e-07', job_status='DONE', time_completed='2021-09-30 06:58:35.315548', photon_index_error2='4.76', photon_index2='6.12', ts='1.36', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='3.68e-07', energy_flux_error2='2.10e-05', EG='0.90', time_epoch_completed='1633010315.32', return_code='0', job_id='153692', GAL2='0.90', EG2='0.74', return_code2='102', energy_flux_error='3.60e-05', photon_flux_error2='1.55e-07', ts2='3.20', photon_index='2.47' WHERE bin_id='1110' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:58:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 153692: <4FGL_J2349.4+0534_daily_bin1110> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin1110> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 06:50:50 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:50:52 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:52 2021
Terminated at Thu Sep 30 06:58:36 2021
Results reported at Thu Sep 30 06:58:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1110 357.356 5.579 527040001 527299201 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 :                                   438.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   463 sec.
    Turnaround time :                            466 sec.

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

