/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 38 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 = 7391
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2349.4+0534_daily_bin123
RA = 357.356, Dec = 5.579
tmin = 271209601, tmax = 271468801
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='149075', job_status='RUN', time_executed='2021-09-30 06:36:06.389431', time_epoch_executed='1633008966.39' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='123'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149075

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149075/ft1_4FGL_J2349.4+0534_daily_bin123.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149075/ft2_4FGL_J2349.4+0534_daily_bin123.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149075/ft1_4FGL_J2349.4+0534_daily_bin123.fits outfile=/scratch/kocevski/149075/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin123.fits ra=357.356 dec=5.579 rad=12.0 tmin=271209601.0 tmax=271468801.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 1.62
user 1.43
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/149075/ft2_4FGL_J2349.4+0534_daily_bin123.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/149075/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin123.fits evtable="EVENTS" outfile="/scratch/kocevski/149075/ft1_filtered_4FGL_J2349.4+0534_daily_bin123.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.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149075/ft1_filtered_4FGL_J2349.4+0534_daily_bin123.fits" evtable="EVENTS" scfile=/scratch/kocevski/149075/ft2_4FGL_J2349.4+0534_daily_bin123.fits sctable="SC_DATA" outfile=/scratch/kocevski/149075/ltcube_271209601_271468801_4FGL_J2349.4+0534_daily_bin123.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/149075/ft2_4FGL_J2349.4+0534_daily_bin123.fits
.....................!
real 12.25
user 11.90
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149075/ft1_filtered_4FGL_J2349.4+0534_daily_bin123.fits evtable="EVENTS" scfile=/scratch/kocevski/149075/ft2_4FGL_J2349.4+0534_daily_bin123.fits sctable="SC_DATA" expcube=/scratch/kocevski/149075/ltcube_271209601_271468801_4FGL_J2349.4+0534_daily_bin123.fits outfile=/scratch/kocevski/149075/expmap_271209601_271468801_4FGL_J2349.4+0534_daily_bin123.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/149075/ltcube_271209601_271468801_4FGL_J2349.4+0534_daily_bin123.fits
.....................!
real 189.69
user 184.67
sys 4.61

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.7143       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.626       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.5307       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.8487       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14540E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13851E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.6666       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.210       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.601       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.155       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.397       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .98469       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .74269       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=   7130.705     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2235 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.8245       -.56659E-06** at limit **
   2  norm          3.7144        2.0866       -.42293E-07    .16428E-04
   3  norm          .10000E-03    1.3212       -.94607E-08** at limit **
   4  Prefactor     .10000E-03    11.623        .13332E-05** at limit **
   5  Prefactor     .10000E-03    68.062       -.95569E-05** at limit **
   6  Prefactor     21.625        14.321        .17822E-06    .48966E-04
   7  Prefactor     9.5307        10.947        .38092E-07    .17699E-04
   8  norm          .10000E-03    .38288        .29859E-07** at limit **
   9  Prefactor     9.8479        8.3078        .23809E-06    .76791E-04
  10  Prefactor     .10000E-03    13.060       -.80035E-06** at limit **
  11  norm          .10000E-03    4.7510        .10738E-06** at limit **
  12  Prefactor     .10000E-03    42.350        .11749E-04** at limit **
  13  Prefactor     .10000E-03    56.672        .84359E-05** at limit **
  14  Prefactor     .10000E-03    4.9808        .20821E-06** at limit **
  15  Prefactor     .10000E-03    23.471       -.11334E-05** at limit **
  16  norm          5.6660        10.137       -.17719E-05    .12276E-05
  17  norm          .10000E-03    7.7046        .21875E-06** at limit **
  18  Prefactor     14.210        5.1882       -.41120E-06   -.23100E-03
  19  Prefactor     19.602        23.554        .10708E-06    .49527E-05
  20  Prefactor     19.155        15.564       -.13160E-07    .14189E-04
  21  Prefactor     10.397        11.640       -.36516E-07   -.52612E-07
  22  Normalizat    .98469        .17406        .44466E-07    .74467E-04
  23  Prefactor     .74267        .11346        .58488E-06    .17551E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.71437
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.6249
  Prefactor  = 9.53066
  norm       = 0.0001
  Prefactor  = 9.84791
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.66601
  norm       = 0.0001
  Prefactor  = 14.2101
  Prefactor  = 19.6019
  Prefactor  = 19.1554
  Prefactor  = 10.3972
  Normalizat = 0.984688
  Prefactor  = 0.742672
 **********
 **   18 **HESSE 
 **********

 FCN=   7130.705     FROM HESSE     STATUS=OK           372 CALLS     2607 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.8979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.7144        2.0840        .87490E-04   -1.5322    
   3  norm          .10000E-03    1.3336        .94769E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    68.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.625        14.306        .86130E-04   -1.4778    
   7  Prefactor     9.5307        10.946        .12981E-03   -1.5090    
   8  norm          .10000E-03    .84169        .10057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.8479        8.2542        .12769E-03   -1.5080    
  10  Prefactor     .10000E-03    13.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.7975        .17929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    41.550        .28247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    56.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.9974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.150        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.6660        10.142        .84373E-03   -1.5232    
  17  norm          .10000E-03    7.7127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.210        5.2068        .10625E-03   -1.4954    
  19  Prefactor     19.602        23.562        .90468E-04   -1.4822    
  20  Prefactor     19.155        15.571        .91512E-04   -1.4832    
  21  Prefactor     10.397        11.649        .12426E-03   -1.5063    
  22  Normalizat    .98469        .19791        .26200E-03   -.93545    
  23  Prefactor     .74267        .13023        .20403E-03   -1.0188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00797e-10
Minuit parameter uncertainties:
  1  7.26948e-08
  2  2.084
  3  1.55721e-06
  4  2.47561e-05
  5  7.67871e-05
  6  14.308
  7  10.9484
  8  2.0993e-05
  9  8.25515
  10  3.96228e-06
  11  5.07982e-06
  12  0.000124788
  13  0.000118702
  14  1.65853e-05
  15  2.56931e-06
  16  10.1453
  17  1.43253e-05
  18  5.20697
  19  23.5735
  20  15.5741
  21  11.6517
  22  0.198054
  23  0.130282
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.916e+01  1.557e+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.427e-01  1.303e-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:  9.847e-01  1.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.61
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 3.82e-08 +/- 3.11e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 9.37e-06

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

Saving results to:
/scratch/kocevski/149075/likelihoodResults_271209601_271468801_4FGL_J2349.4+0534_daily_bin123.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) = 7130.70268774
delta logL = 0.00188677557981

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7130.70196693
delta logL = 0.00260758658624

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.772       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4130       1.0000          .0000       10.000    
     3 'Normalizat'    .98672       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74202       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=   7130.702     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      234 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.772        470.66        .22519E-02    .14833E-03
   2  Index         2.4130        6.0291        .16984        .92782E-04
   3  Normalizat    .98676        .10182        .46000E-01    .14899E-04
   4  Prefactor     .74199        .47560E-01    .42958E-01    .12414E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.7717
  Index      = 2.41299
  Normalizat = 0.986764
  Prefactor  = 0.741991
 **********
 **   18 **HESSE 
 **********

 FCN=   7130.702     FROM HESSE     STATUS=OK            31 CALLS      265 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.772        18.720        .90076E-04   -1.4818    
   2  Index         2.4130        .76731        .94449E-02   -.54381    
   3  Normalizat    .98676        .18994        .26176E-03   -.93475    
   4  Prefactor     .74199        .12911        .20412E-03   -1.0190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12255e-09
Minuit parameter uncertainties:
  1  18.7252
  2  0.77148
  3  0.190065
  4  0.129159
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149075': 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) = 7130.7019669
delta logL = 0.00260761563823

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.977e+01  1.873e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.413e+00  7.715e-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.420e-01  1.292e-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:  9.868e-01  1.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.61
Ra Dec: 357.356 5.579
Photon Index (Free Index): 2.41 +/- 0.77
Photon Flux (Free Index): 3.62e-08 +/- 4.05e-08
Energy Flux (Free Index): 1.17e-05 +/- 9.98e-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/149075/cmap_HighResolution_271209601_271468801_4FGL_J2349.4+0534_daily_bin123.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.59e-03', comment='SUCCESS', photon_flux='3.82e-08', energy_flux2='1.17e-05', photon_flux_error='3.11e-08', dlogl='2.61e-03', energy_flux='1.15e-05', photon_flux2='3.62e-08', job_status='DONE', time_completed='2021-09-30 06:47:04.317588', photon_index_error2='0.77', photon_index2='2.41', ts='3.61', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='9.98e-06', EG='0.98', time_epoch_completed='1633009624.32', return_code='0', job_id='149075', GAL2='0.74', EG2='0.99', return_code2='0', energy_flux_error='9.37e-06', photon_flux_error2='4.05e-08', ts2='3.61', photon_index='2.47' WHERE bin_id='123' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:47:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 149075: <4FGL_J2349.4+0534_daily_bin123> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin123> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 06:35:19 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:35:20 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:35:20 2021
Terminated at Thu Sep 30 06:47:05 2021
Results reported at Thu Sep 30 06:47:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin123 357.356 5.579 271209601 271468801 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 :                                   655.22 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             319.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            706 sec.

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

