/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 35 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 = 7479
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2349.4+0534_daily_bin145
RA = 357.356, Dec = 5.579
tmin = 276912001, tmax = 277171201
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='149110', job_status='RUN', time_executed='2021-09-30 06:36:09.695765', time_epoch_executed='1633008969.7' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='145'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149110

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149110/ft1_4FGL_J2349.4+0534_daily_bin145.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149110/ft2_4FGL_J2349.4+0534_daily_bin145.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149110/ft1_4FGL_J2349.4+0534_daily_bin145.fits outfile=/scratch/kocevski/149110/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin145.fits ra=357.356 dec=5.579 rad=12.0 tmin=276912001.0 tmax=277171201.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.49
user 3.24
sys 0.22

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149110/ft1_filtered_4FGL_J2349.4+0534_daily_bin145.fits evtable="EVENTS" scfile=/scratch/kocevski/149110/ft2_4FGL_J2349.4+0534_daily_bin145.fits sctable="SC_DATA" expcube=/scratch/kocevski/149110/ltcube_276912001_277171201_4FGL_J2349.4+0534_daily_bin145.fits outfile=/scratch/kocevski/149110/expmap_276912001_277171201_4FGL_J2349.4+0534_daily_bin145.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/149110/ltcube_276912001_277171201_4FGL_J2349.4+0534_daily_bin145.fits
.....................!
real 191.75
user 186.94
sys 4.43

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/149110/ft1_filtered_4FGL_J2349.4+0534_daily_bin145.fits scfile=/scratch/kocevski/149110/ft2_4FGL_J2349.4+0534_daily_bin145.fits outfile=/scratch/kocevski/149110/cmap_276912001_277171201_4FGL_J2349.4+0534_daily_bin145.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .12417       1.0000         .10000E-03   10000.    
     3 'norm      '    18.014       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.580       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .60961       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5637       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.982       1.0000         .10000E-03   10000.    
    11 'norm      '    27.388       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5577       1.0000         .10000E-03   10000.    
    13 'Prefactor '    35.195       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .85318E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    22.083       1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.2861       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.4119       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3926       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .78264       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=   7997.807     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2573 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5782        .55024E-07** at limit **
   2  norm          .12143        .87839       -.26539E-06    .22690E-03
   3  norm          18.011        6.1814        .99294E-07   -.86176E-04
   4  Prefactor     .10000E-03    5.1483        .10136E-06** at limit **
   5  Prefactor     .10000E-03    16.131       -.84920E-08** at limit **
   6  Prefactor     11.573        16.181        .36080E-06    .63781E-05
   7  Prefactor     .10000E-03    4.2790        .31279E-07** at limit **
   8  norm          .61014        .79858        .16766E-06    .66871E-03
   9  Prefactor     5.5632        7.0095        .51633E-07    .88780E-05
  10  Prefactor     19.997        25.826       -.96778E-06   -.39589E-04
  11  norm          27.383        12.049        .88173E-07   -.67314E-04
  12  Prefactor     3.5519        10.116        .27168E-06    .59130E-04
  13  Prefactor     35.056        128.43       -.74191E-05    .32487E-04
  14  Prefactor     .10000E-03    15.474       -.64774E-05** at limit **
  15  Prefactor     .10000E-03    35.125        .42490E-06** at limit **
  16  norm          22.086        20.561        .27938E-06   -.22216E-04
  17  norm          .10000E-03    10.115       -.17092E-06** at limit **
  18  Prefactor     .10000E-03    2.0562        .22251E-06** at limit **
  19  Prefactor     .10000E-03    10.777        .32132E-06** at limit **
  20  Prefactor     5.2824        16.692        .45642E-06    .46494E-05
  21  Prefactor     2.4120        19.699       -.18415E-06    .26962E-04
  22  Normalizat    1.3928        .19238       -.10851E-05   -.84378E-04
  23  Prefactor     .78265        .12455       -.56106E-06   -.28677E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.121425
  norm       = 18.0114
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5728
  Prefactor  = 0.0001
  norm       = 0.610141
  Prefactor  = 5.56318
  Prefactor  = 19.9971
  norm       = 27.3834
  Prefactor  = 3.55189
  Prefactor  = 35.0563
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.086
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.28242
  Prefactor  = 2.41202
  Normalizat = 1.39283
  Prefactor  = 0.782646
 **********
 **   18 **HESSE 
 **********

 FCN=   7997.807     FROM HESSE     STATUS=OK           380 CALLS     2953 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5829        .16521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .12143        5.4303        .15705E-02   -1.5638    
   3  norm          18.011        6.1870        .94365E-04   -1.4859    
   4  Prefactor     .10000E-03    5.1767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.573        16.182        .11772E-03   -1.5027    
   7  Prefactor     .10000E-03    4.2836        .18068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .61014        .73094        .86817E-03   -1.5552    
   9  Prefactor     5.5632        6.9981        .17032E-03   -1.5236    
  10  Prefactor     19.997        25.745        .89602E-04   -1.4813    
  11  norm          27.383        11.878        .76551E-04   -1.4661    
  12  Prefactor     3.5519        9.9573        .21428E-03   -1.5331    
  13  Prefactor     35.056        127.87        .33775E-03   -1.4523    
  14  Prefactor     .10000E-03    15.441        .39052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    35.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          22.086        20.558        .85236E-04   -1.4768    
  17  norm          .10000E-03    10.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.0863        .12503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.2824        16.699        .17482E-03   -1.5248    
  21  Prefactor     2.4120        19.845        .26360E-03   -1.5397    
  22  Normalizat    1.3928        .22257        .26955E-03   -.80836    
  23  Prefactor     .78265        .14530        .23762E-03   -1.0037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.9873e-10
Minuit parameter uncertainties:
  1  7.95089e-06
  2  1.62353
  3  6.18726
  4  1.7538e-05
  5  2.04501e-05
  6  16.1884
  7  8.59782e-06
  8  0.730955
  9  6.9991
  10  25.759
  11  11.8789
  12  9.96195
  13  128.892
  14  4.77876e-05
  15  0.000184412
  16  20.5644
  17  2.75563e-05
  18  2.17471e-06
  19  5.13794e-05
  20  16.714
  21  13.8432
  22  0.222726
  23  0.145368
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  5.282e+00  1.671e+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.826e-01  1.454e-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.393e+00  2.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/149110/likelihoodResults_276912001_277171201_4FGL_J2349.4+0534_daily_bin145.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): 102
logL (Free Index) = 7997.73622313
delta logL = 0.071036617489

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7997.1100948
delta logL = 0.697164942863

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26401E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.1772       1.0000          .0000       10.000    
     3 'Normalizat'    1.3303       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81427       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=   7997.110     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      375 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25912E-03    .49380E-02    .29587E-03** at limit **
   2  Index         8.1857        2.2550        .21312        .13752E-03
   3  Normalizat    1.3303        .36375E-01    .62113E-01    .22843E-05
   4  Prefactor     .81424        .24962E-01    .43903E-01    .79528E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000259124
  Index      = 8.18571
  Normalizat = 1.33027
  Prefactor  = 0.814242
 **********
 **   18 **HESSE 
 **********

 FCN=   7997.110     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      410 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25912E-03    .19101E-01    .17065E-04   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.1857        8.5248        .75900E-02    .69078    
   3  Normalizat    1.3303        .14962        .27472E-03   -.82667    
   4  Prefactor     .81424        .10115        .23347E-03   -.99205    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.93371e-10
Minuit parameter uncertainties:
  1  0.00348678
  2  6.06576
  3  0.149664
  4  0.101172
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149110': 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) = 7997.11009345
delta logL = 0.697166291756

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  2.591e-04  3.487e-03  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  8.186e+00  6.066e+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:  8.142e-01  1.012e-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.330e+00  1.497e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.59
Ra Dec: 357.356 5.579
Photon Index (Free Index): 8.19 +/- 6.07
Photon Flux (Free Index): 5.63e-08 +/- 5.11e-08
Energy Flux (Free Index): 6.50e-06 +/- 6.28e-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/149110/cmap_HighResolution_276912001_277171201_4FGL_J2349.4+0534_daily_bin145.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.40e-03', comment='SUCCESS', energy_flux2='6.50e-06', dlogl='6.97e-01', photon_flux2='5.63e-08', job_status='DONE', time_completed='2021-09-30 06:48:49.835176', photon_index_error2='6.07', photon_index2='8.19', ts='0.12', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='9.53e-08', energy_flux_error2='6.28e-06', EG='1.39', time_epoch_completed='1633009729.84', return_code='0', job_id='149110', GAL2='0.81', EG2='1.33', return_code2='102', photon_flux_error2='5.11e-08', ts2='1.59', photon_index='2.47' WHERE bin_id='145' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:48:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 149110: <4FGL_J2349.4+0534_daily_bin145> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin145> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 06:35:23 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:35:25 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:25 2021
Terminated at Thu Sep 30 06:48:50 2021
Results reported at Thu Sep 30 06:48:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin145 357.356 5.579 276912001 277171201 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 :                                   754.03 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            807 sec.

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

