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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1048
RA = 357.356, Dec = 5.579
tmin = 510969601, tmax = 511228801
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='153603', job_status='RUN', time_executed='2021-09-30 06:53:32.731700', time_epoch_executed='1633010012.73' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1048'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153603

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153603/ft1_4FGL_J2349.4+0534_daily_bin1048.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153603/ft2_4FGL_J2349.4+0534_daily_bin1048.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153603/ft1_4FGL_J2349.4+0534_daily_bin1048.fits outfile=/scratch/kocevski/153603/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1048.fits ra=357.356 dec=5.579 rad=12.0 tmin=510969601.0 tmax=511228801.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.45
user 3.24
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/153603/ft2_4FGL_J2349.4+0534_daily_bin1048.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/153603/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1048.fits evtable="EVENTS" outfile="/scratch/kocevski/153603/ft1_filtered_4FGL_J2349.4+0534_daily_bin1048.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/153603/ft1_filtered_4FGL_J2349.4+0534_daily_bin1048.fits" evtable="EVENTS" scfile=/scratch/kocevski/153603/ft2_4FGL_J2349.4+0534_daily_bin1048.fits sctable="SC_DATA" outfile=/scratch/kocevski/153603/ltcube_510969601_511228801_4FGL_J2349.4+0534_daily_bin1048.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/153603/ft2_4FGL_J2349.4+0534_daily_bin1048.fits
.....................!
real 11.83
user 11.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153603/ft1_filtered_4FGL_J2349.4+0534_daily_bin1048.fits evtable="EVENTS" scfile=/scratch/kocevski/153603/ft2_4FGL_J2349.4+0534_daily_bin1048.fits sctable="SC_DATA" expcube=/scratch/kocevski/153603/ltcube_510969601_511228801_4FGL_J2349.4+0534_daily_bin1048.fits outfile=/scratch/kocevski/153603/expmap_510969601_511228801_4FGL_J2349.4+0534_daily_bin1048.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/153603/ltcube_510969601_511228801_4FGL_J2349.4+0534_daily_bin1048.fits
.....................!
real 189.89
user 185.21
sys 4.32

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/153603/ft1_filtered_4FGL_J2349.4+0534_daily_bin1048.fits scfile=/scratch/kocevski/153603/ft2_4FGL_J2349.4+0534_daily_bin1048.fits outfile=/scratch/kocevski/153603/cmap_510969601_511228801_4FGL_J2349.4+0534_daily_bin1048.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153603/ft1_filtered_4FGL_J2349.4+0534_daily_bin1048.fits scfile=/scratch/kocevski/153603/ft2_4FGL_J2349.4+0534_daily_bin1048.fits outfile=/scratch/kocevski/153603/cmap_HighResolution_510969601_511228801_4FGL_J2349.4+0534_daily_bin1048.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.56
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0029       1.0000         .10000E-03   10000.    
     2 'norm      '    4.4443       1.0000         .10000E-03   10000.    
     3 'norm      '    3.9220       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .36518E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.577       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4029       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.7059       1.0000         .10000E-03   10000.    
     8 'norm      '    3.7218       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.9081       1.0000         .10000E-03   10000.    
    10 'Prefactor '    80.931       1.0000         .10000E-03   10000.    
    11 'norm      '    21.319       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.367       1.0000         .10000E-03   10000.    
    13 'Prefactor '    799.09       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.027       1.0000         .10000E-03   10000.    
    16 'norm      '    .10258E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    57.814       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.495       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.7400       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.666       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .59029       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2176       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=   8221.490     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2534 TOTAL
                     EDM=   .86E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0024        12.842       -.44548E-06   -.16719E-04
   2  norm          4.4440        2.5190       -.74854E-07   -.98421E-04
   3  norm          3.9212        3.7363       -.58392E-06   -.78739E-04
   4  Prefactor     .10000E-03    36.458       -.22555E-05** at limit **
   5  Prefactor     34.576        39.476        .38662E-06    .94338E-05
   6  Prefactor     4.4033        11.015       -.11334E-05    .11481E-04
   7  Prefactor     9.7068        12.181       -.80797E-07    .46464E-05
   8  norm          3.7221        1.2428       -.54974E-07    .17521E-05
   9  Prefactor     8.9051        14.177       -.47474E-06    .29981E-04
  10  Prefactor     80.933        57.488       -.61928E-07   -.60765E-05
  11  norm          21.322        14.702        .16822E-06   -.30302E-05
  12  Prefactor     12.365        11.169       -.49988E-06    .41264E-04
  13  Prefactor     799.06        348.07        .17724E-05    .97721E-05
  14  Prefactor     .10000E-03    5.9973        .74774E-06** at limit **
  15  Prefactor     25.029        21.379       -.41379E-07   -.94122E-05
  16  norm          .10000E-03    29.068       -.47675E-05** at limit **
  17  norm          57.814        31.232       -.10146E-06   -.89376E-05
  18  Prefactor     20.495        6.5359        .71511E-08    .39776E-04
  19  Prefactor     6.7391        31.588       -.55599E-06    .41942E-05
  20  Prefactor     16.667        17.242       -.21359E-07   -.16410E-05
  21  Prefactor     .10000E-03    3.6932       -.44260E-07** at limit **
  22  Normalizat    .59030        .21762       -.11397E-05   -.20494E-04
  23  Prefactor     1.2176        .14805        .50652E-06   -.53657E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.00239
  norm       = 4.44403
  norm       = 3.92119
  Prefactor  = 0.0001
  Prefactor  = 34.5762
  Prefactor  = 4.40335
  Prefactor  = 9.70676
  norm       = 3.72211
  Prefactor  = 8.90514
  Prefactor  = 80.9328
  norm       = 21.322
  Prefactor  = 12.3649
  Prefactor  = 799.057
  Prefactor  = 0.0001
  Prefactor  = 25.0294
  norm       = 0.0001
  norm       = 57.8141
  Prefactor  = 20.4953
  Prefactor  = 6.7391
  Prefactor  = 16.6666
  Prefactor  = 0.0001
  Normalizat = 0.590297
  Prefactor  = 1.21757
 **********
 **   18 **HESSE 
 **********

 FCN=   8221.490     FROM HESSE     STATUS=OK           378 CALLS     2912 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0024        12.811        .15160E-03   -1.5179    
   2  norm          4.4440        2.5147        .97207E-04   -1.5286    
   3  norm          3.9212        3.7272        .16414E-03   -1.5312    
   4  Prefactor     .10000E-03    35.949        .40408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     34.576        39.476        .68149E-04   -1.4531    
   6  Prefactor     4.4033        10.995        .19193E-03   -1.5288    
   7  Prefactor     9.7068        12.173        .12863E-03   -1.5085    
   8  norm          3.7221        1.2419        .54988E-04   -1.5322    
   9  Prefactor     8.9051        14.155        .13429E-03   -1.5111    
  10  Prefactor     80.933        57.431        .44645E-04   -1.3906    
  11  norm          21.322        14.675        .86748E-04   -1.4784    
  12  Prefactor     12.365        11.109        .11391E-03   -1.5005    
  13  Prefactor     799.06        349.14        .73759E-04   -.99763    
  14  Prefactor     .10000E-03    6.0120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.029        21.375        .80073E-04   -1.4707    
  16  norm          .10000E-03    29.332        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          57.814        31.243        .52762E-04   -1.4186    
  18  Prefactor     20.495        6.5402        .88474E-04   -1.4802    
  19  Prefactor     6.7391        31.470        .15456E-03   -1.5189    
  20  Prefactor     16.667        17.234        .98108E-04   -1.4891    
  21  Prefactor     .10000E-03    3.6999        .17017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .59030        .22818        .40987E-03   -1.0840    
  23  Prefactor     1.2176        .15995        .21207E-03   -.85792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44384e-11
Minuit parameter uncertainties:
  1  12.8156
  2  2.51472
  3  3.72739
  4  4.20548e-05
  5  39.5056
  6  10.9997
  7  12.1765
  8  1.2419
  9  14.1606
  10  57.4704
  11  14.6779
  12  11.111
  13  350.117
  14  1.78644e-06
  15  21.3816
  16  1.95871e-05
  17  31.2517
  18  6.54042
  19  29.1508
  20  17.2387
  21  1.04177e-06
  22  0.22854
  23  0.160019
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.667e+01  1.724e+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:  1.218e+00  1.600e-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.903e-01  2.285e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.70
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 3.33e-08 +/- 3.44e-08
Energy Flux (Fixed Index): 1.00e-05 +/- 1.04e-05

TS (Fixed Index): 1.70
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153603/likelihoodResults_510969601_511228801_4FGL_J2349.4+0534_daily_bin1048.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) = 8221.40652524
delta logL = 0.083605247466

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8221.4023615
delta logL = 0.0877689808858

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.862       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1536       1.0000          .0000       10.000    
     3 'Normalizat'    .59927       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2138       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=   8221.402     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      257 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.862        691.37        .21923E-02    .91840E-04
   2  Index         2.1535        5.9054        .24974        .33931E-04
   3  Normalizat    .59941        .92203E-01    .91829E-01    .40864E-04
   4  Prefactor     1.2137        .50355E-01    .34312E-01   -.31139E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.8624
  Index      = 2.1535
  Normalizat = 0.599412
  Prefactor  = 1.21372
 **********
 **   18 **HESSE 
 **********

 FCN=   8221.402     FROM HESSE     STATUS=OK            31 CALLS      288 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.862        22.228        .87691E-04   -1.4794    
   2  Index         2.1535        .72140        .10255E-01   -.60565    
   3  Normalizat    .59941        .21744        .40690E-03   -1.0801    
   4  Prefactor     1.2137        .15777        .21234E-03   -.85910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.45701e-10
Minuit parameter uncertainties:
  1  22.2372
  2  0.725153
  3  0.217748
  4  0.157835
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153603': 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) = 8221.40236128
delta logL = 0.0877692071499

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  2.086e+01  2.224e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.153e+00  7.252e-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.214e+00  1.578e-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.994e-01  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.87
Ra Dec: 357.356 5.579
Photon Index (Free Index): 2.15 +/- 0.73
Photon Flux (Free Index): 2.57e-08 +/- 3.27e-08
Energy Flux (Free Index): 1.26e-05 +/- 1.56e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/153603/cmap_HighResolution_510969601_511228801_4FGL_J2349.4+0534_daily_bin1048.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.98e-03', comment='SUCCESS', photon_flux='3.33e-08', energy_flux2='1.26e-05', photon_flux_error='3.44e-08', dlogl='8.78e-02', energy_flux='1.00e-05', photon_flux2='2.57e-08', job_status='DONE', time_completed='2021-09-30 07:07:22.135232', photon_index_error2='0.73', photon_index2='2.15', ts='1.70', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='1.56e-05', EG='0.59', time_epoch_completed='1633010842.14', return_code='0', job_id='153603', GAL2='1.21', EG2='0.60', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='3.27e-08', ts2='1.87', photon_index='2.47' WHERE bin_id='1048' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:07:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 153603: <4FGL_J2349.4+0534_daily_bin1048> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1048 357.356 5.579 510969601 511228801 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 :                                   749.30 sec.
    Max Memory :                                 1159 MB
    Average Memory :                             280.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   998 sec.
    Turnaround time :                            999 sec.

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

