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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1163
RA = 357.356, Dec = 5.579
tmin = 540777601, tmax = 541036801
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='153767', job_status='RUN', time_executed='2021-09-30 06:53:42.832673', time_epoch_executed='1633010022.83' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1163'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153767

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153767/ft1_4FGL_J2349.4+0534_daily_bin1163.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153767/ft2_4FGL_J2349.4+0534_daily_bin1163.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153767/ft1_4FGL_J2349.4+0534_daily_bin1163.fits outfile=/scratch/kocevski/153767/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1163.fits ra=357.356 dec=5.579 rad=12.0 tmin=540777601.0 tmax=541036801.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.62
user 3.42
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/153767/ft2_4FGL_J2349.4+0534_daily_bin1163.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/153767/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1163.fits evtable="EVENTS" outfile="/scratch/kocevski/153767/ft1_filtered_4FGL_J2349.4+0534_daily_bin1163.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153767/ft1_filtered_4FGL_J2349.4+0534_daily_bin1163.fits evtable="EVENTS" scfile=/scratch/kocevski/153767/ft2_4FGL_J2349.4+0534_daily_bin1163.fits sctable="SC_DATA" expcube=/scratch/kocevski/153767/ltcube_540777601_541036801_4FGL_J2349.4+0534_daily_bin1163.fits outfile=/scratch/kocevski/153767/expmap_540777601_541036801_4FGL_J2349.4+0534_daily_bin1163.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/153767/ltcube_540777601_541036801_4FGL_J2349.4+0534_daily_bin1163.fits
.....................!
real 192.33
user 187.02
sys 4.99

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/153767/ft1_filtered_4FGL_J2349.4+0534_daily_bin1163.fits scfile=/scratch/kocevski/153767/ft2_4FGL_J2349.4+0534_daily_bin1163.fits outfile=/scratch/kocevski/153767/cmap_540777601_541036801_4FGL_J2349.4+0534_daily_bin1163.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.60
user 0.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .27399E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.2323       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.883       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .31489       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9466       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.567       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.860       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.635       1.0000         .10000E-03   10000.    
    17 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    51.259       1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.461       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.4672       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5457       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .70999       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=   5405.442     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2912 TOTAL
                     EDM=   .51E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.085        .13088E-06** at limit **
   2  norm          .10000E-03    1.4067        .71146E-07** at limit **
   3  norm          5.2319        4.9989        .76122E-07   -.44475E-05
   4  Prefactor     .10000E-03    6.0129       -.41006E-07** at limit **
   5  Prefactor     14.833        39.403        .20376E-05   -.13007E-05
   6  Prefactor     .10000E-03    7.9434        .68606E-07** at limit **
   7  Prefactor     .10000E-03    46.287       -.62983E-06** at limit **
   8  norm          .31481        1.0976       -.19560E-06   -.77747E-04
   9  Prefactor     .10000E-03    10.243        .28820E-06** at limit **
  10  Prefactor     .10000E-03    18.258       -.32573E-07** at limit **
  11  norm          .10000E-03    3.1761        .44047E-06** at limit **
  12  Prefactor     2.9469        6.5625        .11007E-05   -.85175E-05
  13  Prefactor     20.096        427.93        .23154E-04   -.27148E-05
  14  Prefactor     12.868        17.127       -.71209E-06    .96550E-05
  15  Prefactor     .10000E-03    8.8268       -.71118E-08** at limit **
  16  norm          10.633        10.381        .23656E-07   -.25165E-05
  17  norm          .10000E-03    16.641       -.16726E-06** at limit **
  18  Prefactor     .10000E-03    3.9839       -.18463E-06** at limit **
  19  Prefactor     51.242        42.785        .47084E-06   -.96351E-06
  20  Prefactor     27.451        26.133        .21940E-06   -.40242E-05
  21  Prefactor     9.4757        20.746        .21289E-06   -.41870E-05
  22  Normalizat    1.5457        .22948       -.57230E-06    .65092E-05
  23  Prefactor     .71005        .14849        .19679E-06   -.24347E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 5.2319
  Prefactor  = 0.0001
  Prefactor  = 14.8328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.314813
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.94693
  Prefactor  = 20.0959
  Prefactor  = 12.8685
  Prefactor  = 0.0001
  norm       = 10.6328
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.2419
  Prefactor  = 27.451
  Prefactor  = 9.47566
  Normalizat = 1.54572
  Prefactor  = 0.710053
 **********
 **   18 **HESSE 
 **********

 FCN=   5405.442     FROM HESSE     STATUS=OK           372 CALLS     3284 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    26.076        .16590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.2319        4.9972        .15446E-03   -1.5250    
   4  Prefactor     .10000E-03    6.0389        .17605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.833        39.447        .10382E-03   -1.4938    
   6  Prefactor     .10000E-03    7.9663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    47.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .31481        1.0828        .13292E-03   -1.5596    
   9  Prefactor     .10000E-03    10.546        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.1908        .12800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.9469        6.5652        .11830E-02   -1.5365    
  13  Prefactor     20.096        430.47        .44159E-03   -1.4811    
  14  Prefactor     12.868        16.891        .11170E-03   -1.4990    
  15  Prefactor     .10000E-03    8.8380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.633        10.382        .12286E-03   -1.5056    
  17  norm          .10000E-03    16.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.0299        .14266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     51.242        42.808        .56016E-04   -1.4275    
  20  Prefactor     27.451        26.139        .76449E-04   -1.4660    
  21  Prefactor     9.4757        20.831        .13025E-03   -1.5092    
  22  Normalizat    1.5457        .26248        .25404E-03   -.76502    
  23  Prefactor     .71005        .17076        .24303E-03   -1.0313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11621e-10
Minuit parameter uncertainties:
  1  1.69618e-06
  2  0.000263966
  3  4.9976
  4  4.4092e-07
  5  39.5162
  6  1.6416e-06
  7  2.87449e-06
  8  1.08285
  9  1.01193e-05
  10  1.85171e-06
  11  3.50782e-06
  12  6.56684
  13  187.573
  14  16.8968
  15  2.0691e-06
  16  10.384
  17  3.13907e-06
  18  5.14601e-06
  19  42.8339
  20  26.1499
  21  20.8467
  22  0.262708
  23  0.170883
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  2.745e+01  2.615e+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.101e-01  1.709e-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.546e+00  2.627e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.52
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 5.48e-08 +/- 5.22e-08
Energy Flux (Fixed Index): 1.65e-05 +/- 1.57e-05

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

Saving results to:
/scratch/kocevski/153767/likelihoodResults_540777601_541036801_4FGL_J2349.4+0534_daily_bin1163.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) = 5405.44030295
delta logL = 0.00200697792661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5405.43898829
delta logL = 0.00332164142583

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.089       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4087       1.0000          .0000       10.000    
     3 'Normalizat'    1.5481       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70895       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=   5405.439     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      272 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.089        35.218        .74284E-04   -.65043E-04
   2  Index         2.4086        .73570        .78807E-02   -.15267E-04
   3  Normalizat    1.5483        .24973        .25387E-03    .25391E-04
   4  Prefactor     .70882        .16938        .24321E-03    .43238E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.089
  Index      = 2.40863
  Normalizat = 1.54825
  Prefactor  = 0.708821
 **********
 **   18 **HESSE 
 **********

 FCN=   5405.439     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.089        33.580        .29714E-05   -1.4629    
   2  Index         2.4086        .70112        .31523E-03   -.54483    
   3  Normalizat    1.5483        .24969        .10155E-04   -.76431    
   4  Prefactor     .70882        .16937        .97285E-05   -1.0318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02546e-11
Minuit parameter uncertainties:
  1  33.6016
  2  0.704302
  3  0.24989
  4  0.169488
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153767': 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) = 5405.438988
delta logL = 0.00332193015402

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  2.909e+01  3.360e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.409e+00  7.043e-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.088e-01  1.695e-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.548e+00  2.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.52
Ra Dec: 357.356 5.579
Photon Index (Free Index): 2.41 +/- 0.70
Photon Flux (Free Index): 5.29e-08 +/- 5.57e-08
Energy Flux (Free Index): 1.71e-05 +/- 1.80e-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/153767/cmap_HighResolution_540777601_541036801_4FGL_J2349.4+0534_daily_bin1163.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', comment='SUCCESS', photon_flux='5.48e-08', energy_flux2='1.71e-05', photon_flux_error='5.22e-08', dlogl='3.32e-03', energy_flux='1.65e-05', photon_flux2='5.29e-08', job_status='DONE', time_completed='2021-09-30 07:05:00.044614', photon_index_error2='0.70', photon_index2='2.41', ts='1.52', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='1.66e-07', energy_flux_error2='1.80e-05', EG='1.55', time_epoch_completed='1633010700.04', return_code='0', job_id='153767', GAL2='0.71', EG2='1.55', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='5.57e-08', ts2='1.52', photon_index='2.47' WHERE bin_id='1163' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:05:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 153767: <4FGL_J2349.4+0534_daily_bin1163> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1163 357.356 5.579 540777601 541036801 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 :                                   631.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            844 sec.

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

