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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin854
RA = 357.356, Dec = 5.579
tmin = 460684801, tmax = 460944001
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='153322', job_status='RUN', time_executed='2021-09-30 06:52:36.631762', time_epoch_executed='1633009956.63' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153322

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153322/ft1_4FGL_J2349.4+0534_daily_bin854.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153322/ft2_4FGL_J2349.4+0534_daily_bin854.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153322/ft1_4FGL_J2349.4+0534_daily_bin854.fits outfile=/scratch/kocevski/153322/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin854.fits ra=357.356 dec=5.579 rad=12.0 tmin=460684801.0 tmax=460944001.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.36
user 3.10
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/153322/ft2_4FGL_J2349.4+0534_daily_bin854.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/153322/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin854.fits evtable="EVENTS" outfile="/scratch/kocevski/153322/ft1_filtered_4FGL_J2349.4+0534_daily_bin854.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/153322/ft1_filtered_4FGL_J2349.4+0534_daily_bin854.fits" evtable="EVENTS" scfile=/scratch/kocevski/153322/ft2_4FGL_J2349.4+0534_daily_bin854.fits sctable="SC_DATA" outfile=/scratch/kocevski/153322/ltcube_460684801_460944001_4FGL_J2349.4+0534_daily_bin854.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/153322/ft2_4FGL_J2349.4+0534_daily_bin854.fits
.....................!
real 13.06
user 12.66
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153322/ft1_filtered_4FGL_J2349.4+0534_daily_bin854.fits evtable="EVENTS" scfile=/scratch/kocevski/153322/ft2_4FGL_J2349.4+0534_daily_bin854.fits sctable="SC_DATA" expcube=/scratch/kocevski/153322/ltcube_460684801_460944001_4FGL_J2349.4+0534_daily_bin854.fits outfile=/scratch/kocevski/153322/expmap_460684801_460944001_4FGL_J2349.4+0534_daily_bin854.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/153322/ltcube_460684801_460944001_4FGL_J2349.4+0534_daily_bin854.fits
.....................!
real 190.70
user 185.66
sys 4.68

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/153322/ft1_filtered_4FGL_J2349.4+0534_daily_bin854.fits scfile=/scratch/kocevski/153322/ft2_4FGL_J2349.4+0534_daily_bin854.fits outfile=/scratch/kocevski/153322/cmap_460684801_460944001_4FGL_J2349.4+0534_daily_bin854.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=357.356 yref=5.579 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153322/ft1_filtered_4FGL_J2349.4+0534_daily_bin854.fits scfile=/scratch/kocevski/153322/ft2_4FGL_J2349.4+0534_daily_bin854.fits outfile=/scratch/kocevski/153322/cmap_HighResolution_460684801_460944001_4FGL_J2349.4+0534_daily_bin854.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    1.8800       1.0000         .10000E-03   10000.    
     3 'norm      '    .17235E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.274       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7439       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8330       1.0000         .10000E-03   10000.    
     8 'norm      '    2.9945       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6947       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.028       1.0000         .10000E-03   10000.    
    11 'norm      '    19.215       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6066       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1362       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .51290       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1649       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=   7547.202     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2545 TOTAL
                     EDM=   .92E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.1415       -.35426E-06** at limit **
   2  norm          1.8801        2.0874        .79656E-08   -.66081E-04
   3  norm          .10002E-03    1.4008        .20447E-06** at limit **
   4  Prefactor     .10000E-03    6.3503        .36634E-06** at limit **
   5  Prefactor     35.275        35.457        .45222E-06    .11415E-05
   6  Prefactor     8.7445        12.391       -.20021E-07   -.11711E-03
   7  Prefactor     2.8330        9.9527       -.20665E-07   -.29100E-03
   8  norm          2.9945        .97285        .23314E-08   -.12594E-04
   9  Prefactor     3.6892        7.2398        .24594E-06   -.45535E-03
  10  Prefactor     10.027        21.019       -.33407E-06   -.39261E-05
  11  norm          19.220        12.011       -.15035E-06    .15443E-04
  12  Prefactor     6.6041        8.3912       -.12978E-07   -.36135E-05
  13  Prefactor     .10000E-03    49.023       -.26915E-05** at limit **
  14  Prefactor     .10000E-03    3.5795       -.19275E-07** at limit **
  15  Prefactor     3.1361        48.036       -.11779E-05    .15155E-05
  16  norm          .10000E-03    2.7909       -.36119E-07** at limit **
  17  norm          .10000E-03    5.6782        .12936E-06** at limit **
  18  Prefactor     .10000E-03    1.1863        .71395E-07** at limit **
  19  Prefactor     .10000E-03    28.942        .73330E-05** at limit **
  20  Prefactor     .10000E-03    23.226       -.77773E-05** at limit **
  21  Prefactor     .10000E-03    10.893       -.21851E-06** at limit **
  22  Normalizat    .51292        .17484        .25232E-06    .41075E-05
  23  Prefactor     1.1649        .12383        .17508E-07    .22485E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.88015
  norm       = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 35.2753
  Prefactor  = 8.74447
  Prefactor  = 2.83303
  norm       = 2.99448
  Prefactor  = 3.68924
  Prefactor  = 10.027
  norm       = 19.2205
  Prefactor  = 6.60406
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.13614
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.512925
  Prefactor  = 1.16487
 **********
 **   18 **HESSE 
 **********

 FCN=   7547.202     FROM HESSE     STATUS=OK           374 CALLS     2919 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.1631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8801        2.0740        .12331E-03   -1.5434    
   3  norm          .10002E-03    17.359        .19851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.4425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     35.275        35.474        .67475E-04   -1.4519    
   6  Prefactor     8.7445        12.523        .67777E-03   -1.5116    
   7  Prefactor     2.8330        14.673        .12080E-02   -1.5371    
   8  norm          2.9945        .97177        .47289E-04   -1.5362    
   9  Prefactor     3.6892        10.017        .10506E-02   -1.5324    
  10  Prefactor     10.027        21.015        .12654E-03   -1.5075    
  11  norm          19.220        12.350        .91370E-04   -1.4831    
  12  Prefactor     6.6041        8.3666        .15613E-03   -1.5194    
  13  Prefactor     .10000E-03    49.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.6003        .16048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.1361        46.900        .22892E-03   -1.5354    
  16  norm          .10000E-03    2.7914        .14174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.6886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.1969        .92337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    29.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .51292        .18967        .35993E-03   -1.1182    
  23  Prefactor     1.1649        .13719        .18109E-03   -.87419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07262e-09
Minuit parameter uncertainties:
  1  2.09417e-06
  2  2.07408
  3  0.00114174
  4  5.19437e-06
  5  35.4949
  6  12.5272
  7  12.8997
  8  0.971773
  9  10.0217
  10  21.0305
  11  12.3519
  12  8.36807
  13  1.75112e-05
  14  1.11716e-06
  15  24.2782
  16  6.82832e-08
  17  4.25024e-07
  18  4.87591e-07
  19  7.75354e-06
  20  6.67093e-06
  21  4.49053e-06
  22  0.189909
  23  0.13723
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  6.671e-06  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.165e+00  1.372e-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.129e-01  1.899e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 8.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153322/likelihoodResults_460684801_460944001_4FGL_J2349.4+0534_daily_bin854.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): 102
logL (Free Index) = 7547.20197401
delta logL = -0.000204281242077

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7547.11706985
delta logL = 0.0846998783272

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36765       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3380       1.0000          .0000       10.000    
     3 'Normalizat'    .48648       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1744       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=   7547.117     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      287 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37227        6.0242        .26302E-01   -.15106E-03
   2  Index         4.3332        2.2014        .20325       -.37965E-04
   3  Normalizat    .48636        .17472E-01    .83384E-01   -.13202E-03
   4  Prefactor     1.1744        .12911E-01    .35266E-01   -.61543E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.372268
  Index      = 4.33319
  Normalizat = 0.486361
  Prefactor  = 1.17438
 **********
 **   18 **HESSE 
 **********

 FCN=   7547.117     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      320 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37227        91.344        .10059E-02   -1.5586    
   2  Index         4.3332        5.3108        .94325E-02   -.13376    
   3  Normalizat    .48636        .11183        .36938E-03   -1.1305    
   4  Prefactor     1.1744        .82192E-01    .18046E-03   -.87123    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.77951e-10
Minuit parameter uncertainties:
  1  11.6792
  2  14.86
  3  0.111886
  4  0.0822011
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153322': 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) = 7547.11706777
delta logL = 0.0847019618213

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  3.723e-01  1.168e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  4.333e+00  1.486e+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.174e+00  8.220e-02  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:  4.864e-01  1.119e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 357.356 5.579

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/153322/cmap_HighResolution_460684801_460944001_4FGL_J2349.4+0534_daily_bin854.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.80e-03', job_status='DONE', photon_flux_upper_limit='8.76e-08', time_completed='2021-09-30 07:04:51.611577', job_id='153322', GAL2='1.17', fit_tolerance='1e-08', EG2='0.49', EG='0.51', time_epoch_completed='1633010691.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='8.47e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='854' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:04:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 153322: <4FGL_J2349.4+0534_daily_bin854> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin854> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 06:50:22 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:50:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 06:50:23 2021
Terminated at Thu Sep 30 07:04:52 2021
Results reported at Thu Sep 30 07:04:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin854 357.356 5.579 460684801 460944001 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 :                                   710.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            870 sec.

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

