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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin999
RA = 357.356, Dec = 5.579
tmin = 498268801, tmax = 498528001
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='153532', job_status='RUN', time_executed='2021-09-30 06:52:50.620087', time_epoch_executed='1633009970.62' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='999'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153532

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153532/ft1_4FGL_J2349.4+0534_daily_bin999.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153532/ft2_4FGL_J2349.4+0534_daily_bin999.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153532/ft1_4FGL_J2349.4+0534_daily_bin999.fits outfile=/scratch/kocevski/153532/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin999.fits ra=357.356 dec=5.579 rad=12.0 tmin=498268801.0 tmax=498528001.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.94
user 4.70
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153532/ft1_filtered_4FGL_J2349.4+0534_daily_bin999.fits evtable="EVENTS" scfile=/scratch/kocevski/153532/ft2_4FGL_J2349.4+0534_daily_bin999.fits sctable="SC_DATA" expcube=/scratch/kocevski/153532/ltcube_498268801_498528001_4FGL_J2349.4+0534_daily_bin999.fits outfile=/scratch/kocevski/153532/expmap_498268801_498528001_4FGL_J2349.4+0534_daily_bin999.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/153532/ltcube_498268801_498528001_4FGL_J2349.4+0534_daily_bin999.fits
.....................!
real 190.00
user 185.11
sys 4.49

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/153532/ft1_filtered_4FGL_J2349.4+0534_daily_bin999.fits scfile=/scratch/kocevski/153532/ft2_4FGL_J2349.4+0534_daily_bin999.fits outfile=/scratch/kocevski/153532/cmap_498268801_498528001_4FGL_J2349.4+0534_daily_bin999.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153532/ft1_filtered_4FGL_J2349.4+0534_daily_bin999.fits scfile=/scratch/kocevski/153532/ft2_4FGL_J2349.4+0534_daily_bin999.fits outfile=/scratch/kocevski/153532/cmap_HighResolution_498268801_498528001_4FGL_J2349.4+0534_daily_bin999.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.3852       1.0000         .10000E-03   10000.    
     3 'norm      '    .12727E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.685       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10382E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.2346       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.170       1.0000         .10000E-03   10000.    
    10 'Prefactor '    68.042       1.0000         .10000E-03   10000.    
    11 'norm      '    .10261E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4726       1.0000         .10000E-03   10000.    
    13 'Prefactor '    88.973       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.242       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    16.682       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10375E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .40847E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .93684       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .76657       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=   4670.591     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2555 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.335       -.71929E-06** at limit **
   2  norm          2.3850        2.8822       -.94865E-07   -.52616E-03
   3  norm          .10000E-03    9.5133        .26814E-05** at limit **
   4  Prefactor     22.655        15.876        .13543E-05   -.11981E-03
   5  Prefactor     .10000E-03    30.535       -.11790E-04** at limit **
   6  Prefactor     .10000E-03    7.3726        .46145E-07** at limit **
   7  Prefactor     .10000E-03    32.481       -.84402E-05** at limit **
   8  norm          2.2347        1.1730        .41694E-06   -.23464E-03
   9  Prefactor     14.166        11.062       -.22872E-06   -.25743E-04
  10  Prefactor     68.070        63.452        .26003E-04    .82449E-04
  11  norm          .10000E-03    9.5988       -.21942E-05** at limit **
  12  Prefactor     5.4600        8.7553       -.76537E-06   -.12656E-03
  13  Prefactor     88.841        162.11       -.13589E-03    .18157E-05
  14  Prefactor     16.276        16.280        .98996E-05    .60490E-04
  15  Prefactor     .10000E-03    41.098        .18224E-04** at limit **
  16  norm          .10000E-03    16.076       -.82480E-05** at limit **
  17  norm          16.665        24.782       -.13295E-04    .46889E-04
  18  Prefactor     .10000E-03    2.8721        .13281E-06** at limit **
  19  Prefactor     .10000E-03    137.28       -.65640E-04** at limit **
  20  Prefactor     .10000E-03    18.426        .13208E-04** at limit **
  21  Prefactor     .10041E-03    10.290        .24488E-05** at limit **
  22  Normalizat    .93652        .22141       -.35742E-05    .12539E-03
  23  Prefactor     .76681        .14297        .16666E-05   -.22502E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.38498
  norm       = 0.0001
  Prefactor  = 22.6551
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.23466
  Prefactor  = 14.1662
  Prefactor  = 68.0697
  norm       = 0.0001
  Prefactor  = 5.46001
  Prefactor  = 88.8411
  Prefactor  = 16.2761
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 16.6652
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100414
  Normalizat = 0.936518
  Prefactor  = 0.766806
 **********
 **   18 **HESSE 
 **********

 FCN=   4670.591     FROM HESSE     STATUS=OK           368 CALLS     2923 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3850        2.8658        .12088E-03   -1.5399    
   3  norm          .10000E-03    9.9114        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.655        15.863        .84099E-04   -1.4756    
   5  Prefactor     .10000E-03    30.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.4061        .18124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.2347        1.1703        .51136E-04   -1.5409    
   9  Prefactor     14.166        11.051        .10640E-03   -1.4955    
  10  Prefactor     68.070        63.530        .48659E-04   -1.4056    
  11  norm          .10000E-03    9.6347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.4600        8.7060        .17176E-03   -1.5241    
  13  Prefactor     88.841        162.05        .21299E-03   -1.3820    
  14  Prefactor     16.276        16.321        .99380E-04   -1.4901    
  15  Prefactor     .10000E-03    41.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    16.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          16.665        24.803        .98062E-04   -1.4891    
  18  Prefactor     .10000E-03    2.8931        .11288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    139.55        .20738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10041E-03    72.532        .42164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .93652        .25338        .27735E-03   -.95189    
  23  Prefactor     .76681        .16481        .20548E-03   -1.0096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.95774e-09
Minuit parameter uncertainties:
  1  2.82152e-05
  2  2.86592
  3  7.01781e-05
  4  15.8662
  5  1.35446e-05
  6  5.7667e-06
  7  8.87137e-05
  8  1.17032
  9  11.0522
  10  63.5935
  11  5.27408e-05
  12  8.708
  13  162.862
  14  16.3253
  15  6.87691e-05
  16  4.0928e-05
  17  24.8186
  18  2.29631e-05
  19  0.00117792
  20  1.66027e-05
  21  0.0109763
  22  0.253702
  23  0.164917
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  1.660e-05  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.668e-01  1.649e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  9.365e-01  2.537e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/153532/likelihoodResults_498268801_498528001_4FGL_J2349.4+0534_daily_bin999.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) = 4670.59153696
delta logL = -0.000257567659901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4670.59127954
delta logL = -1.54003828357e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5657       1.0000          .0000       10.000    
     3 'Normalizat'    .93652       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76681       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=   4670.591     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      228 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2013.9        .90712E-02** at limit **
   2  Index         2.5509        8.2113        .50000        .73083E-05
   3  Normalizat    .93652        .72032E-01    .45367E-01    .11997E-04
   4  Prefactor     .76681        .48941E-01    .43284E-01    .11225E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.55094
  Normalizat = 0.936515
  Prefactor  = 0.766808
 **********
 **   18 **HESSE 
 **********

 FCN=   4670.591     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5509        5.8952        .50000       -.51187    
   3  Normalizat    .93652        .23800        .27736E-03   -.95189    
   4  Prefactor     .76681        .16205        .20548E-03   -1.0096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24737e-10
Minuit parameter uncertainties:
  1  3.00615e-05
  2  7.0519
  3  0.238269
  4  0.162155
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153532': 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) = 4670.59127951
delta logL = -1.26381564769e-07

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  3.006e-05  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.551e+00  7.052e+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:  7.668e-01  1.622e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  9.365e-01  2.383e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 357.356 5.579

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/153532/cmap_HighResolution_498268801_498528001_4FGL_J2349.4+0534_daily_bin999.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.84e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-30 07:02:39.640841', job_id='153532', GAL2='0.77', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1633010559.64', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='-1.26e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='999' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:02:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 153532: <4FGL_J2349.4+0534_daily_bin999> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin999> 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) <bullet0283>, 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:40 2021
Results reported at Thu Sep 30 07:02:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin999 357.356 5.579 498268801 498528001 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 :                                   571.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            723 sec.

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

