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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin897
RA = 357.356, Dec = 5.579
tmin = 471830401, tmax = 472089601
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='153386', job_status='RUN', time_executed='2021-09-30 06:53:37.396953', time_epoch_executed='1633010017.4' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='897'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153386

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153386/ft1_4FGL_J2349.4+0534_daily_bin897.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153386/ft2_4FGL_J2349.4+0534_daily_bin897.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153386/ft1_4FGL_J2349.4+0534_daily_bin897.fits outfile=/scratch/kocevski/153386/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin897.fits ra=357.356 dec=5.579 rad=12.0 tmin=471830401.0 tmax=472089601.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.09
user 3.85
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/153386/ft1_filtered_4FGL_J2349.4+0534_daily_bin897.fits" evtable="EVENTS" scfile=/scratch/kocevski/153386/ft2_4FGL_J2349.4+0534_daily_bin897.fits sctable="SC_DATA" outfile=/scratch/kocevski/153386/ltcube_471830401_472089601_4FGL_J2349.4+0534_daily_bin897.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/153386/ft2_4FGL_J2349.4+0534_daily_bin897.fits
.....................!
real 13.58
user 13.20
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153386/ft1_filtered_4FGL_J2349.4+0534_daily_bin897.fits evtable="EVENTS" scfile=/scratch/kocevski/153386/ft2_4FGL_J2349.4+0534_daily_bin897.fits sctable="SC_DATA" expcube=/scratch/kocevski/153386/ltcube_471830401_472089601_4FGL_J2349.4+0534_daily_bin897.fits outfile=/scratch/kocevski/153386/expmap_471830401_472089601_4FGL_J2349.4+0534_daily_bin897.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/153386/ltcube_471830401_472089601_4FGL_J2349.4+0534_daily_bin897.fits
.....................!
real 221.85
user 215.56
sys 5.90

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/153386/ft1_filtered_4FGL_J2349.4+0534_daily_bin897.fits scfile=/scratch/kocevski/153386/ft2_4FGL_J2349.4+0534_daily_bin897.fits outfile=/scratch/kocevski/153386/cmap_471830401_472089601_4FGL_J2349.4+0534_daily_bin897.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.60
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153386/ft1_filtered_4FGL_J2349.4+0534_daily_bin897.fits scfile=/scratch/kocevski/153386/ft2_4FGL_J2349.4+0534_daily_bin897.fits outfile=/scratch/kocevski/153386/cmap_HighResolution_471830401_472089601_4FGL_J2349.4+0534_daily_bin897.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.63
user 0.46
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.6205       1.0000         .10000E-03   10000.    
     3 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.9800       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.8281       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9508       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .72211       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10150E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .59037       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.692       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.784       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3942       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .73213       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=   5722.007     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2176 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3577        .20489E-05** at limit **
   2  norm          2.6205        2.6277       -.10236E-06   -.21280E-03
   3  norm          .10000E-03    2.7732        .41450E-07** at limit **
   4  Prefactor     .10000E-03    5.4285       -.61739E-07** at limit **
   5  Prefactor     .10000E-03    14.483       -.29201E-06** at limit **
   6  Prefactor     4.9710        15.907       -.40868E-05   -.38235E-04
   7  Prefactor     .10000E-03    9.2062        .78517E-06** at limit **
   8  norm          4.8271        1.7585       -.61022E-07   -.61765E-03
   9  Prefactor     .10000E-03    2.3587        .64768E-07** at limit **
  10  Prefactor     .10000E-03    26.865        .19103E-05** at limit **
  11  norm          1.9514        1.8941        .12859E-05   -.12047E-02
  12  Prefactor     .10000E-03    3.1496        .26278E-06** at limit **
  13  Prefactor     .10000E-03    125.27        .12008E-04** at limit **
  14  Prefactor     .75842        98.308       -.45589E-04    .37580E-03
  15  Prefactor     .10000E-03    7.6444       -.26979E-05** at limit **
  16  norm          .10000E-03    3.6167        .25281E-07** at limit **
  17  norm          .10000E-03    12.122        .73605E-06** at limit **
  18  Prefactor     .58126        9.3106        .12306E-04    .14464E-02
  19  Prefactor     .10000E-03    13.438       -.14779E-05** at limit **
  20  Prefactor     16.691        17.981       -.25787E-06    .17497E-04
  21  Prefactor     16.786        16.875        .39039E-06    .46373E-04
  22  Normalizat    1.3944        .21306        .13082E-05   -.14049E-05
  23  Prefactor     .73202        .13986       -.11983E-05   -.13363E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.62047
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.97097
  Prefactor  = 0.0001
  norm       = 4.82708
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.95145
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.758424
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.581257
  Prefactor  = 0.0001
  Prefactor  = 16.6915
  Prefactor  = 16.7864
  Normalizat = 1.39436
  Prefactor  = 0.732022
 **********
 **   18 **HESSE 
 **********

 FCN=   5722.007     FROM HESSE     STATUS=OK           370 CALLS     2546 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.6205        2.6264        .11802E-03   -1.5384    
   3  norm          .10000E-03    2.7932        .12297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.4399        .17211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.9710        15.869        .18021E-03   -1.5262    
   7  Prefactor     .10000E-03    9.2259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.8271        1.7595        .55486E-04   -1.5269    
   9  Prefactor     .10000E-03    2.3608        .11346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9514        5.4749        .14313E-02   -1.5429    
  12  Prefactor     .10000E-03    3.1738        .13111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    125.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .75842        131.18        .49223E-02   -1.5534    
  15  Prefactor     .10000E-03    7.6446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.6178        .14050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .58126        18.368        .24721E-02   -1.5555    
  19  Prefactor     .10000E-03    13.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.691        17.988        .98030E-04   -1.4891    
  21  Prefactor     16.786        16.883        .97761E-04   -1.4888    
  22  Normalizat    1.3944        .24853        .25821E-03   -.80792    
  23  Prefactor     .73202        .16265        .23216E-03   -1.0228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28828e-08
Minuit parameter uncertainties:
  1  2.02687e-05
  2  2.6265
  3  2.31329e-06
  4  1.46409e-06
  5  2.58405e-05
  6  15.8827
  7  1.56364e-05
  8  1.75951
  9  7.83851e-06
  10  6.31653e-05
  11  5.47629
  12  2.35266e-05
  13  0.000770815
  14  19.9922
  15  1.45555e-05
  16  1.78882e-06
  17  4.32746e-05
  18  6.53659
  19  7.77429e-06
  20  17.9935
  21  16.8875
  22  0.248741
  23  0.162752
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.669e+01  1.799e+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:  7.320e-01  1.628e-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.394e+00  2.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.73
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 3.33e-08 +/- 3.59e-08
Energy Flux (Fixed Index): 1.00e-05 +/- 1.08e-05

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

Saving results to:
/scratch/kocevski/153386/likelihoodResults_471830401_472089601_4FGL_J2349.4+0534_daily_bin897.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) = 5721.83013698
delta logL = 0.176828728964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5721.82988214
delta logL = 0.177083571565

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.121       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0060       1.0000          .0000       10.000    
     3 'Normalizat'    1.4077       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72600       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=   5721.830     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      265 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.097        1002.8        .20826E-02    .73969E-05
   2  Index         2.0050        5.3768        .25754        .19595E-04
   3  Normalizat    1.4077        .12474        .58154E-01   -.43199E-05
   4  Prefactor     .72604        .62339E-01    .42746E-01   -.17873E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.0969
  Index      = 2.00501
  Normalizat = 1.40767
  Prefactor  = 0.726037
 **********
 **   18 **HESSE 
 **********

 FCN=   5721.830     FROM HESSE     STATUS=OK            33 CALLS      298 TOTAL
                     EDM=   .56E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.097        25.083        .83303E-04   -1.4746    
   2  Index         2.0050        .71954        .96435E-02   -.64225    
   3  Normalizat    1.4077        .23835        .25717E-03   -.80407    
   4  Prefactor     .72604        .16158        .23299E-03   -1.0252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.64727e-12
Minuit parameter uncertainties:
  1  25.0944
  2  0.723474
  3  0.238541
  4  0.161684
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153386': 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) = 5721.82988042
delta logL = 0.177085291009

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  2.310e+01  2.509e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.005e+00  7.235e-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:  7.260e-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:  1.408e+00  2.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.08
Ra Dec: 357.356 5.579
Photon Index (Free Index): 2.01 +/- 0.72
Photon Flux (Free Index): 2.32e-08 +/- 3.09e-08
Energy Flux (Free Index): 1.59e-05 +/- 2.31e-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/153386/cmap_HighResolution_471830401_472089601_4FGL_J2349.4+0534_daily_bin897.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.74e-03', comment='SUCCESS', photon_flux='3.33e-08', energy_flux2='1.59e-05', photon_flux_error='3.59e-08', dlogl='1.77e-01', energy_flux='1.00e-05', photon_flux2='2.32e-08', job_status='DONE', time_completed='2021-09-30 07:05:27.704781', photon_index_error2='0.72', photon_index2='2.01', ts='1.73', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='2.31e-05', EG='1.39', time_epoch_completed='1633010727.7', return_code='0', job_id='153386', GAL2='0.73', EG2='1.41', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='3.09e-08', ts2='2.08', photon_index='2.47' WHERE bin_id='897' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:05:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0164>
Subject: Job 153386: <4FGL_J2349.4+0534_daily_bin897> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin897> 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) <bullet0164>, 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:05:28 2021
Results reported at Thu Sep 30 07:05:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin897 357.356 5.579 471830401 472089601 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 :                                   698.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            902 sec.

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

