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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1559
RA = 357.356, Dec = 5.579
tmin = 643420801, tmax = 643680001
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='155391', job_status='RUN', time_executed='2021-09-30 06:58:23.641636', time_epoch_executed='1633010303.64' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1559'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/155391

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/155391/ft1_4FGL_J2349.4+0534_daily_bin1559.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/155391/ft2_4FGL_J2349.4+0534_daily_bin1559.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/155391/ft1_4FGL_J2349.4+0534_daily_bin1559.fits outfile=/scratch/kocevski/155391/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1559.fits ra=357.356 dec=5.579 rad=12.0 tmin=643420801.0 tmax=643680001.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.46
user 3.22
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/155391/ft1_filtered_4FGL_J2349.4+0534_daily_bin1559.fits" evtable="EVENTS" scfile=/scratch/kocevski/155391/ft2_4FGL_J2349.4+0534_daily_bin1559.fits sctable="SC_DATA" outfile=/scratch/kocevski/155391/ltcube_643420801_643680001_4FGL_J2349.4+0534_daily_bin1559.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/155391/ft2_4FGL_J2349.4+0534_daily_bin1559.fits
.....................!
real 11.94
user 11.57
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/155391/ft1_filtered_4FGL_J2349.4+0534_daily_bin1559.fits evtable="EVENTS" scfile=/scratch/kocevski/155391/ft2_4FGL_J2349.4+0534_daily_bin1559.fits sctable="SC_DATA" expcube=/scratch/kocevski/155391/ltcube_643420801_643680001_4FGL_J2349.4+0534_daily_bin1559.fits outfile=/scratch/kocevski/155391/expmap_643420801_643680001_4FGL_J2349.4+0534_daily_bin1559.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/155391/ltcube_643420801_643680001_4FGL_J2349.4+0534_daily_bin1559.fits
.....................!
real 190.08
user 185.02
sys 4.69

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/155391/ft1_filtered_4FGL_J2349.4+0534_daily_bin1559.fits scfile=/scratch/kocevski/155391/ft2_4FGL_J2349.4+0534_daily_bin1559.fits outfile=/scratch/kocevski/155391/cmap_643420801_643680001_4FGL_J2349.4+0534_daily_bin1559.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/155391/ft1_filtered_4FGL_J2349.4+0534_daily_bin1559.fits scfile=/scratch/kocevski/155391/ft2_4FGL_J2349.4+0534_daily_bin1559.fits outfile=/scratch/kocevski/155391/cmap_HighResolution_643420801_643680001_4FGL_J2349.4+0534_daily_bin1559.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 1.46
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0856       1.0000         .10000E-03   10000.    
     2 'norm      '    .17306       1.0000         .10000E-03   10000.    
     3 'norm      '    10.648       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .53226E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    54.515       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.368       1.0000         .10000E-03   10000.    
     8 'norm      '    .53716       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1108       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    15.985       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    400.75       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10505E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.924       1.0000         .10000E-03   10000.    
    16 'norm      '    8.8588       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.062       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.9908       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .72405       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89033       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=   7521.732     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2575 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0885        8.6902       -.11161E-06    .80411E-04
   2  norm          .16616        1.0172       -.22993E-07   -.11522E-03
   3  norm          10.643        4.6807       -.89878E-07    .25301E-03
   4  Prefactor     .10000E-03    6.2457       -.22902E-06** at limit **
   5  Prefactor     54.511        31.902       -.13928E-06    .39213E-04
   6  Prefactor     .10000E-03    8.8437        .22559E-07** at limit **
   7  Prefactor     16.368        12.409        .91805E-07    .55250E-04
   8  norm          .53716        .70383       -.94114E-06   -.11872E-02
   9  Prefactor     1.1165        21.057        .10105E-04   -.45501E-05
  10  Prefactor     .10000E-03    20.463       -.10423E-06** at limit **
  11  norm          15.979        8.6734       -.92496E-06    .11336E-04
  12  Prefactor     .10000E-03    2.6258        .15040E-06** at limit **
  13  Prefactor     400.93        185.61        .22095E-05   -.18467E-04
  14  Prefactor     .10000E-03    15.197       -.38344E-05** at limit **
  15  Prefactor     23.914        23.809       -.81918E-06    .10676E-03
  16  norm          8.8580        13.636       -.13016E-06    .74881E-06
  17  norm          .10000E-03    5.4660       -.45274E-06** at limit **
  18  Prefactor     .10000E-03    2.0501       -.15656E-05** at limit **
  19  Prefactor     35.061        30.167        .38116E-06    .11147E-03
  20  Prefactor     7.9869        15.410       -.55440E-07    .45543E-04
  21  Prefactor     .10000E-03    14.365       -.12059E-06** at limit **
  22  Normalizat    .72441        .16609        .23395E-05    .35157E-03
  23  Prefactor     .89014        .11333       -.74212E-06    .64232E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.08851
  norm       = 0.16616
  norm       = 10.6433
  Prefactor  = 0.0001
  Prefactor  = 54.5114
  Prefactor  = 0.0001
  Prefactor  = 16.368
  norm       = 0.537161
  Prefactor  = 1.11654
  Prefactor  = 0.0001
  norm       = 15.9791
  Prefactor  = 0.0001
  Prefactor  = 400.934
  Prefactor  = 0.000100003
  Prefactor  = 23.9137
  norm       = 8.85803
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.0612
  Prefactor  = 7.98687
  Prefactor  = 0.0001
  Normalizat = 0.724413
  Prefactor  = 0.890136
 **********
 **   18 **HESSE 
 **********

 FCN=   7521.732     FROM HESSE     STATUS=OK           374 CALLS     2949 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0885        8.7681        .17829E-03   -1.5257    
   2  norm          .16616        5.8068        .15703E-02   -1.5626    
   3  norm          10.643        4.6231        .11768E-03   -1.5055    
   4  Prefactor     .10000E-03    22.300        .40863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     54.511        31.906        .54326E-04   -1.4230    
   6  Prefactor     .10000E-03    8.9220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.368        12.408        .98996E-04   -1.4899    
   8  norm          .53716        .68831        .83040E-03   -1.5561    
   9  Prefactor     1.1165        21.457        .22404E-02   -1.5497    
  10  Prefactor     .10000E-03    20.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          15.979        8.7179        .10018E-03   -1.4908    
  12  Prefactor     .10000E-03    2.6399        .13701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     400.93        185.70        .10197E-03   -1.1676    
  14  Prefactor     .10000E-03    15.216        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     23.914        23.832        .81895E-04   -1.4730    
  16  norm          8.8580        13.642        .13467E-03   -1.5113    
  17  norm          .10000E-03    5.4661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.0449        .23792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     35.061        30.226        .67679E-04   -1.4523    
  20  Prefactor     7.9869        15.402        .14184E-03   -1.5143    
  21  Prefactor     .10000E-03    14.778        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .72441        .19170        .29583E-03   -1.0294    
  23  Prefactor     .89014        .13149        .19263E-03   -.96487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27304e-08
Minuit parameter uncertainties:
  1  8.77031
  2  1.96417
  3  4.62324
  4  4.53503e-05
  5  31.9163
  6  1.9383e-05
  7  12.4102
  8  0.688317
  9  9.79304
  10  1.70633e-06
  11  8.71864
  12  8.43624e-06
  13  185.975
  14  0.000398843
  15  23.8417
  16  13.647
  17  2.59563e-05
  18  4.59675e-05
  19  30.2388
  20  15.4092
  21  4.44022e-05
  22  0.191874
  23  0.131538
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  7.987e+00  1.541e+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.901e-01  1.315e-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.244e-01  1.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/155391/likelihoodResults_643420801_643680001_4FGL_J2349.4+0534_daily_bin1559.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) = 7520.92041114
delta logL = 0.811264368215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7520.82801432
delta logL = 0.903661191258

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58806E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.9377       1.0000          .0000       10.000    
     3 'Normalizat'    .63983       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93443       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=   7520.828     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      419 TOTAL
                     EDM=   .89E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .56555E-03    .62929E-02    .36057E-03** at limit **
   2  Index         7.9569        2.1424        .15584        .21183E-04
   3  Normalizat    .63990        .35422E-01    .70765E-01    .12289E-03
   4  Prefactor     .93450        .25531E-01    .45442E-01    .29440E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000565553
  Index      = 7.95687
  Normalizat = 0.639897
  Prefactor  = 0.934499
 **********
 **   18 **HESSE 
 **********

 FCN=   7520.828     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      452 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .56555E-03    .18330E-01    .16532E-04   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.9569        7.7595        .58376E-02    .63276    
   3  Normalizat    .63990        .13666        .31321E-03   -1.0632    
   4  Prefactor     .93450        .96526E-01    .18847E-03   -.94946    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.94112e-10
Minuit parameter uncertainties:
  1  0.00584249
  2  4.72061
  3  0.136737
  4  0.0965436
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/155391': 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) = 7520.82799413
delta logL = 0.903681384613

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  5.656e-04  5.842e-03  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  7.957e+00  4.721e+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.345e-01  9.654e-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:  6.399e-01  1.367e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.40
Ra Dec: 357.356 5.579
Photon Index (Free Index): 7.96 +/- 4.72
Photon Flux (Free Index): 7.48e-08 +/- 5.24e-08
Energy Flux (Free Index): 8.69e-06 +/- 6.36e-06

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/155391/cmap_HighResolution_643420801_643680001_4FGL_J2349.4+0534_daily_bin1559.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.17e-03', comment='SUCCESS', energy_flux2='8.69e-06', dlogl='9.04e-01', photon_flux2='7.48e-08', job_status='DONE', time_completed='2021-09-30 07:10:33.859324', photon_index_error2='4.72', photon_index2='7.96', ts='0.37', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='9.24e-08', energy_flux_error2='6.36e-06', EG='0.72', time_epoch_completed='1633011033.86', return_code='0', job_id='155391', GAL2='0.93', EG2='0.64', return_code2='102', photon_flux_error2='5.24e-08', ts2='2.40', photon_index='2.47' WHERE bin_id='1559' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:10:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 155391: <4FGL_J2349.4+0534_daily_bin1559> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin1559> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 06:55:55 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:55:57 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:55:57 2021
Terminated at Thu Sep 30 07:10:34 2021
Results reported at Thu Sep 30 07:10:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1559 357.356 5.579 643420801 643680001 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 :                                   725.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            879 sec.

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

