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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1007
RA = 357.356, Dec = 5.579
tmin = 500342401, tmax = 500601601
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='153543', job_status='RUN', time_executed='2021-09-30 06:52:29.945295', time_epoch_executed='1633009949.95' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1007'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153543

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153543/ft1_4FGL_J2349.4+0534_daily_bin1007.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153543/ft2_4FGL_J2349.4+0534_daily_bin1007.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153543/ft1_4FGL_J2349.4+0534_daily_bin1007.fits outfile=/scratch/kocevski/153543/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1007.fits ra=357.356 dec=5.579 rad=12.0 tmin=500342401.0 tmax=500601601.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.64
user 4.38
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/153543/ft1_filtered_4FGL_J2349.4+0534_daily_bin1007.fits" evtable="EVENTS" scfile=/scratch/kocevski/153543/ft2_4FGL_J2349.4+0534_daily_bin1007.fits sctable="SC_DATA" outfile=/scratch/kocevski/153543/ltcube_500342401_500601601_4FGL_J2349.4+0534_daily_bin1007.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/153543/ft2_4FGL_J2349.4+0534_daily_bin1007.fits
.....................!
real 14.32
user 13.95
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153543/ft1_filtered_4FGL_J2349.4+0534_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/153543/ft2_4FGL_J2349.4+0534_daily_bin1007.fits sctable="SC_DATA" expcube=/scratch/kocevski/153543/ltcube_500342401_500601601_4FGL_J2349.4+0534_daily_bin1007.fits outfile=/scratch/kocevski/153543/expmap_500342401_500601601_4FGL_J2349.4+0534_daily_bin1007.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/153543/ltcube_500342401_500601601_4FGL_J2349.4+0534_daily_bin1007.fits
.....................!
real 191.23
user 186.10
sys 4.81

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/153543/ft1_filtered_4FGL_J2349.4+0534_daily_bin1007.fits scfile=/scratch/kocevski/153543/ft2_4FGL_J2349.4+0534_daily_bin1007.fits outfile=/scratch/kocevski/153543/cmap_500342401_500601601_4FGL_J2349.4+0534_daily_bin1007.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153543/ft1_filtered_4FGL_J2349.4+0534_daily_bin1007.fits scfile=/scratch/kocevski/153543/ft2_4FGL_J2349.4+0534_daily_bin1007.fits outfile=/scratch/kocevski/153543/cmap_HighResolution_500342401_500601601_4FGL_J2349.4+0534_daily_bin1007.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.9757       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.439       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.3196       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.7637       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.7698       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .12541E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.541       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.209       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.038       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.377       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4500       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89731       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4278.256     FROM MIGRAD    STATUS=CONVERGED    883 CALLS     2895 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.459        .18142E-02** at limit **
   2  norm          2.9767        4.6612        .16130E-03   -.11700E-03
   3  norm          .10000E-03    1.1950        .69773E-03** at limit **
   4  Prefactor     .10000E-03    3.9147        .12635E-02** at limit **
   5  Prefactor     25.390        58.729        .79424E-04   -.38648E-05
   6  Prefactor     .10000E-03    24.155        .18142E-02** at limit **
   7  Prefactor     .10000E-03    8.2364        .18142E-02** at limit **
   8  norm          2.3195        1.5153        .63108E-04    .96019E-04
   9  Prefactor     .10000E-03    3.3221        .11640E-02** at limit **
  10  Prefactor     .10000E-03    21.645        .18142E-02** at limit **
  11  norm          9.7675        9.5441        .12824E-03    .16170E-03
  12  Prefactor     .10000E-03    13.533        .36285E-03** at limit **
  13  Prefactor     .10000E-03    186.38        .18142E-02** at limit **
  14  Prefactor     9.7743        14.187        .12820E-03   -.57285E-04
  15  Prefactor     .10000E-03    18.545        .18142E-02** at limit **
  16  norm          .10000E-03    228.85        .46743E-02** at limit **
  17  norm          .10000E-03    37.757        .18142E-02** at limit **
  18  Prefactor     14.539        9.5434        .10503E-03   -.23596E-04
  19  Prefactor     15.197        47.567        .10270E-03    .13283E-05
  20  Prefactor     15.035        33.654        .10329E-03    .49532E-05
  21  Prefactor     12.374        23.201        .11386E-03    .10085E-04
  22  Normalizat    1.4502        .33394        .27927E-03    .36448E-03
  23  Prefactor     .89724        .21067        .23480E-03    .81442E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 2.97672
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.3896
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.31945
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.76748
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.77431
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 14.5387
  Prefactor  = 15.1969
  Prefactor  = 15.035
  Prefactor  = 12.3736
  Normalizat = 1.45019
  Prefactor  = 0.897244
 **********
 **   18 **HESSE 
 **********

 FCN=   4278.256     FROM HESSE     STATUS=OK           346 CALLS     3241 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.464        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.9767        4.6604        .64519E-05   -1.5363    
   3  norm          .10000E-03    1.1950        .13955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.9147        .25270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     25.390        58.730        .31770E-05   -1.4700    
   6  Prefactor     .10000E-03    24.162        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.2366        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.3195        1.5153        .25243E-05   -1.5403    
   9  Prefactor     .10000E-03    3.3222        .23281E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.645        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.7675        9.5440        .51298E-05   -1.5083    
  12  Prefactor     .10000E-03    13.534        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    186.38        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.7743        14.186        .51282E-05   -1.5083    
  15  Prefactor     .10000E-03    18.548        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    236.38        .18697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    37.758        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.539        9.5433        .42014E-05   -1.4945    
  19  Prefactor     15.197        47.566        .41081E-05   -1.4928    
  20  Prefactor     15.035        33.658        .41314E-05   -1.4932    
  21  Prefactor     12.374        23.202        .45544E-05   -1.5004    
  22  Normalizat    1.4502        .33421        .55855E-04   -.79188    
  23  Prefactor     .89724        .21084        .93918E-05   -.96237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01606e-09
Minuit parameter uncertainties:
  1  0.000230269
  2  4.661
  3  1.45528e-06
  4  2.77283e-06
  5  58.8646
  6  0.000174554
  7  1.72733e-05
  8  1.51532
  9  8.8147e-06
  10  7.42219e-07
  11  9.54548
  12  7.84212e-05
  13  0.000351324
  14  14.1906
  15  7.75491e-05
  16  0.000828537
  17  0.000109771
  18  9.54425
  19  47.6853
  20  33.7005
  21  23.219
  22  0.334719
  23  0.211035
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.503e+01  3.370e+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.972e-01  2.110e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.450e+00  3.347e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/153543/likelihoodResults_500342401_500601601_4FGL_J2349.4+0534_daily_bin1007.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) = 4277.57144443
delta logL = 0.685019482323

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4277.51986777
delta logL = 0.736596138503

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8177       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8808       1.0000          .0000       10.000    
     3 'Normalizat'    1.3743       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92487       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4277.520     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      295 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8220        140.90        .10534E-03    .50725E-05
   2  Index         3.8805        6.9268        .44878E-02    .17581E-04
   3  Normalizat    1.3742        .30065        .28529E-03   -.21798E-04
   4  Prefactor     .92492        .20631        .23149E-03    .28042E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.82199
  Index      = 3.88054
  Normalizat = 1.37424
  Prefactor  = 0.92492
 **********
 **   18 **HESSE 
 **********

 FCN=   4277.520     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8220        10.910        .42135E-05   -1.5317    
   2  Index         3.8805        1.3978        .17951E-03   -.22581    
   3  Normalizat    1.3742        .31015        .11412E-04   -.81377    
   4  Prefactor     .92492        .20808        .92597E-05   -.95276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50118e-11
Minuit parameter uncertainties:
  1  10.9161
  2  1.41774
  3  0.310569
  4  0.208259
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153543': 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) = 4277.51986739
delta logL = 0.736596514383

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  3.822e+00  1.092e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  3.881e+00  1.418e+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.249e-01  2.083e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.374e+00  3.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.77
Ra Dec: 357.356 5.579
Photon Index (Free Index): 3.88 +/- 1.42
Photon Flux (Free Index): 1.01e-07 +/- 8.91e-08
Energy Flux (Free Index): 1.54e-05 +/- 1.40e-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/153543/cmap_HighResolution_500342401_500601601_4FGL_J2349.4+0534_daily_bin1007.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.38e-02', comment='SUCCESS', energy_flux2='1.54e-05', dlogl='7.37e-01', photon_flux2='1.01e-07', job_status='DONE', time_completed='2021-09-30 07:02:21.090025', photon_index_error2='1.42', photon_index2='3.88', ts='0.24', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.78e-07', energy_flux_error2='1.40e-05', EG='1.45', time_epoch_completed='1633010541.09', return_code='0', job_id='153543', GAL2='0.92', EG2='1.37', return_code2='0', photon_flux_error2='8.91e-08', ts2='1.77', photon_index='2.47' WHERE bin_id='1007' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:02:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 153543: <4FGL_J2349.4+0534_daily_bin1007> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1007 357.356 5.579 500342401 500601601 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 :                                   572.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            704 sec.

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

