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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin993
RA = 357.356, Dec = 5.579
tmin = 496713601, tmax = 496972801
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='153524', job_status='RUN', time_executed='2021-09-30 06:52:40.064346', time_epoch_executed='1633009960.06' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='993'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153524

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153524/ft1_4FGL_J2349.4+0534_daily_bin993.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153524/ft2_4FGL_J2349.4+0534_daily_bin993.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153524/ft1_4FGL_J2349.4+0534_daily_bin993.fits outfile=/scratch/kocevski/153524/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin993.fits ra=357.356 dec=5.579 rad=12.0 tmin=496713601.0 tmax=496972801.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.92
user 4.68
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/153524/ft2_4FGL_J2349.4+0534_daily_bin993.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/153524/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin993.fits evtable="EVENTS" outfile="/scratch/kocevski/153524/ft1_filtered_4FGL_J2349.4+0534_daily_bin993.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.57
user 0.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153524/ft1_filtered_4FGL_J2349.4+0534_daily_bin993.fits evtable="EVENTS" scfile=/scratch/kocevski/153524/ft2_4FGL_J2349.4+0534_daily_bin993.fits sctable="SC_DATA" expcube=/scratch/kocevski/153524/ltcube_496713601_496972801_4FGL_J2349.4+0534_daily_bin993.fits outfile=/scratch/kocevski/153524/expmap_496713601_496972801_4FGL_J2349.4+0534_daily_bin993.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/153524/ltcube_496713601_496972801_4FGL_J2349.4+0534_daily_bin993.fits
.....................!
real 190.30
user 184.75
sys 5.19

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/153524/ft1_filtered_4FGL_J2349.4+0534_daily_bin993.fits scfile=/scratch/kocevski/153524/ft2_4FGL_J2349.4+0534_daily_bin993.fits outfile=/scratch/kocevski/153524/cmap_496713601_496972801_4FGL_J2349.4+0534_daily_bin993.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153524/ft1_filtered_4FGL_J2349.4+0534_daily_bin993.fits scfile=/scratch/kocevski/153524/ft2_4FGL_J2349.4+0534_daily_bin993.fits outfile=/scratch/kocevski/153524/cmap_HighResolution_496713601_496972801_4FGL_J2349.4+0534_daily_bin993.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11100E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.5599       1.0000         .10000E-03   10000.    
     3 'norm      '    5.0224       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5650       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.083       1.0000         .10000E-03   10000.    
     8 'norm      '    .46135       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    82.386       1.0000         .10000E-03   10000.    
    11 'norm      '    4.8328       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.109       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.067       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    38.150       1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.665       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .76865       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95854       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=   4933.139     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2537 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.746       -.36888E-06** at limit **
   2  norm          4.5607        3.4441        .16199E-05   -.65766E-03
   3  norm          5.0217        5.0129        .14483E-06   -.32002E-04
   4  Prefactor     7.5637        14.177       -.23688E-06   -.15554E-04
   5  Prefactor     .10000E-03    28.445       -.45404E-06** at limit **
   6  Prefactor     .10000E-03    8.6468       -.41894E-07** at limit **
   7  Prefactor     14.078        25.581        .42141E-05    .23726E-03
   8  norm          .46125        .50194       -.66223E-08   -.49474E-04
   9  Prefactor     .10000E-03    7.4509       -.33093E-06** at limit **
  10  Prefactor     82.263        59.698       -.11033E-05   -.67722E-04
  11  norm          4.8264        9.2459        .85596E-07   -.99953E-04
  12  Prefactor     .10000E-03    3.0442       -.21690E-06** at limit **
  13  Prefactor     .10000E-03    54.359       -.28892E-06** at limit **
  14  Prefactor     14.009        24.196       -.79271E-07   -.19295E-04
  15  Prefactor     .10000E-03    32.594       -.31671E-06** at limit **
  16  norm          .10000E-03    10.597       -.54635E-08** at limit **
  17  norm          10.263        65.366        .46959E-06   -.23015E-05
  18  Prefactor     .10000E-03    2.5258       -.62741E-08** at limit **
  19  Prefactor     38.175        47.791        .90112E-06    .18405E-04
  20  Prefactor     31.665        30.905       -.29357E-06   -.68604E-04
  21  Prefactor     .10000E-03    11.536       -.15809E-06** at limit **
  22  Normalizat    .76890        .22981       -.17341E-05    .23302E-04
  23  Prefactor     .95841        .14594        .43840E-07   -.25144E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.56067
  norm       = 5.02165
  Prefactor  = 7.56375
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0779
  norm       = 0.461245
  Prefactor  = 0.0001
  Prefactor  = 82.2627
  norm       = 4.82635
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0091
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.263
  Prefactor  = 0.0001
  Prefactor  = 38.1745
  Prefactor  = 31.6652
  Prefactor  = 0.0001
  Normalizat = 0.7689
  Prefactor  = 0.958409
 **********
 **   18 **HESSE 
 **********

 FCN=   4933.139     FROM HESSE     STATUS=OK           370 CALLS     2907 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.5607        3.5258        .53107E-03   -1.5281    
   3  norm          5.0217        4.9965        .14706E-03   -1.5260    
   4  Prefactor     7.5637        14.171        .14581E-03   -1.5158    
   5  Prefactor     .10000E-03    28.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.6733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.078        26.733        .10673E-03   -1.4957    
   8  norm          .46125        .49986        .50572E-04   -1.5572    
   9  Prefactor     .10000E-03    7.4824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     82.263        60.109        .22126E-03   -1.3891    
  11  norm          4.8264        9.2568        .18299E-03   -1.5269    
  12  Prefactor     .10000E-03    3.0509        .11949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    54.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.009        24.185        .10663E-03   -1.4959    
  15  Prefactor     .10000E-03    32.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.263        65.210        .12629E-03   -1.5067    
  18  Prefactor     .10000E-03    2.5586        .10883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     38.175        47.863        .64891E-04   -1.4471    
  20  Prefactor     31.665        31.039        .71205E-04   -1.4582    
  21  Prefactor     .10000E-03    11.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .76890        .26746        .31475E-03   -1.0123    
  23  Prefactor     .95841        .17090        .19716E-03   -.94129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.01496e-10
Minuit parameter uncertainties:
  1  0.000152869
  2  3.52591
  3  4.99692
  4  14.1776
  5  9.90477e-05
  6  3.56034e-06
  7  26.7552
  8  0.499865
  9  1.08293e-05
  10  60.153
  11  9.25956
  12  5.40652e-06
  13  6.69395e-05
  14  24.202
  15  7.78679e-05
  16  8.93119e-06
  17  51.8225
  18  7.32865e-07
  19  47.9113
  20  31.0548
  21  1.27973e-05
  22  0.267918
  23  0.170996
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  3.167e+01  3.105e+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:  9.584e-01  1.710e-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.689e-01  2.679e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.37
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 6.32e-08 +/- 6.19e-08
Energy Flux (Fixed Index): 1.91e-05 +/- 1.87e-05

TS (Fixed Index): 1.37
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 1.88e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.46e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153524/likelihoodResults_496713601_496972801_4FGL_J2349.4+0534_daily_bin993.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) = 4931.71809394
delta logL = 1.42094715403

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4931.51600265
delta logL = 1.62303845032

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38236       1.0000         .10000E-03   10000.    
     2 'Index     '    5.2690       1.0000          .0000       10.000    
     3 'Normalizat'    .62693       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0329       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=   4931.516     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      285 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38073        3.2297        .50498E-02   -.19344E-02
   2  Index         5.2710        2.4486        .78382E-01   -.24751E-04
   3  Normalizat    .62712        .71897E-01    .77990E-01   -.46159E-04
   4  Prefactor     1.0328        .49677E-01    .41039E-01   -.13253E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.380734
  Index      = 5.27099
  Normalizat = 0.627124
  Prefactor  = 1.03284
 **********
 **   18 **HESSE 
 **********

 FCN=   4931.516     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      316 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38073        5.4300        .22666E-04   -1.5585    
   2  Index         5.2710        3.3182        .32303E-02    .54224E-01
   3  Normalizat    .62712        .22678        .34533E-03   -1.0684    
   4  Prefactor     1.0328        .15543        .19065E-03   -.91643    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.21812e-10
Minuit parameter uncertainties:
  1  2.87563
  2  3.62962
  3  0.227114
  4  0.155495
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153524': 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) = 4931.51600144
delta logL = 1.62303966156

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  3.807e-01  2.876e+00  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  5.271e+00  3.630e+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:  1.033e+00  1.555e-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:  6.271e-01  2.271e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.09
Ra Dec: 357.356 5.579
Photon Index (Free Index): 5.27 +/- 3.63
Photon Flux (Free Index): 1.67e-07 +/- 9.11e-08
Energy Flux (Free Index): 2.18e-05 +/- 1.34e-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/153524/cmap_HighResolution_496713601_496972801_4FGL_J2349.4+0534_daily_bin993.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-02', comment='SUCCESS', photon_flux='6.32e-08', energy_flux2='2.18e-05', photon_flux_error='6.19e-08', dlogl='1.62e+00', energy_flux='1.91e-05', photon_flux2='1.67e-07', job_status='DONE', time_completed='2021-09-30 07:02:47.633993', photon_index_error2='3.63', photon_index2='5.27', ts='1.37', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.88e-07', energy_flux_error2='1.34e-05', EG='0.77', time_epoch_completed='1633010567.63', return_code='0', job_id='153524', GAL2='1.03', EG2='0.63', return_code2='102', energy_flux_error='1.87e-05', photon_flux_error2='9.11e-08', ts2='5.09', photon_index='2.47' WHERE bin_id='993' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:02:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 153524: <4FGL_J2349.4+0534_daily_bin993> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin993 357.356 5.579 496713601 496972801 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 :                                   574.00 sec.
    Max Memory :                                 1192 MB
    Average Memory :                             316.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            732 sec.

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

