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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin489
RA = 357.356, Dec = 5.579
tmin = 366076801, tmax = 366336001
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='150676', job_status='RUN', time_executed='2021-09-30 06:43:00.117286', time_epoch_executed='1633009380.12' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='489'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150676

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150676/ft1_4FGL_J2349.4+0534_daily_bin489.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150676/ft2_4FGL_J2349.4+0534_daily_bin489.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150676/ft1_4FGL_J2349.4+0534_daily_bin489.fits outfile=/scratch/kocevski/150676/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin489.fits ra=357.356 dec=5.579 rad=12.0 tmin=366076801.0 tmax=366336001.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 5.33
user 5.11
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/150676/ft1_filtered_4FGL_J2349.4+0534_daily_bin489.fits" evtable="EVENTS" scfile=/scratch/kocevski/150676/ft2_4FGL_J2349.4+0534_daily_bin489.fits sctable="SC_DATA" outfile=/scratch/kocevski/150676/ltcube_366076801_366336001_4FGL_J2349.4+0534_daily_bin489.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/150676/ft2_4FGL_J2349.4+0534_daily_bin489.fits
.....................!
real 11.46
user 11.09
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150676/ft1_filtered_4FGL_J2349.4+0534_daily_bin489.fits evtable="EVENTS" scfile=/scratch/kocevski/150676/ft2_4FGL_J2349.4+0534_daily_bin489.fits sctable="SC_DATA" expcube=/scratch/kocevski/150676/ltcube_366076801_366336001_4FGL_J2349.4+0534_daily_bin489.fits outfile=/scratch/kocevski/150676/expmap_366076801_366336001_4FGL_J2349.4+0534_daily_bin489.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/150676/ltcube_366076801_366336001_4FGL_J2349.4+0534_daily_bin489.fits
.....................!
real 190.01
user 185.01
sys 4.70

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/150676/ft1_filtered_4FGL_J2349.4+0534_daily_bin489.fits scfile=/scratch/kocevski/150676/ft2_4FGL_J2349.4+0534_daily_bin489.fits outfile=/scratch/kocevski/150676/cmap_366076801_366336001_4FGL_J2349.4+0534_daily_bin489.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.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2059       1.0000         .10000E-03   10000.    
     2 'norm      '    4.5478       1.0000         .10000E-03   10000.    
     3 'norm      '    7.2842       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.347       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1117       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    60.209       1.0000         .10000E-03   10000.    
    11 'norm      '    .19645E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.225       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11902E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .89867E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.0379       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.8133       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .88967       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0136       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=   5834.950     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2592 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2056        11.372       -.36341E-06   -.64006E-04
   2  norm          4.5474        3.0212       -.50228E-07   -.13790E-03
   3  norm          7.2835        4.9725       -.10977E-06   -.73013E-04
   4  Prefactor     .10000E-03    5.9335        .25879E-07** at limit **
   5  Prefactor     13.357        25.585       -.14627E-05    .21417E-04
   6  Prefactor     .10000E-03    23.809       -.27248E-05** at limit **
   7  Prefactor     .10000E-03    26.423        .28457E-05** at limit **
   8  norm          2.1120        1.1454        .78405E-07    .73724E-04
   9  Prefactor     .10000E-03    12.207        .11579E-04** at limit **
  10  Prefactor     60.188        65.045       -.11512E-04    .29595E-04
  11  norm          .10002E-03    8.2206       -.29076E-05** at limit **
  12  Prefactor     12.223        10.483        .21659E-05    .13772E-02
  13  Prefactor     .10000E-03    116.56        .42373E-05** at limit **
  14  Prefactor     .10000E-03    11.154       -.27551E-05** at limit **
  15  Prefactor     .10012E-03    40.525       -.22311E-05** at limit **
  16  norm          .10000E-03    9.3116        .56669E-07** at limit **
  17  norm          .10000E-03    14.977        .15962E-05** at limit **
  18  Prefactor     3.0391        4.2501       -.20547E-06   -.40408E-03
  19  Prefactor     8.8322        53.360        .38217E-05    .47804E-04
  20  Prefactor     .10000E-03    12.623       -.99499E-05** at limit **
  21  Prefactor     .10000E-03    7.5967       -.11949E-06** at limit **
  22  Normalizat    .89014        .21708        .78606E-06    .46484E-03
  23  Prefactor     1.0133        .14304        .17568E-06    .66298E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.20556
  norm       = 4.54741
  norm       = 7.28354
  Prefactor  = 0.0001
  Prefactor  = 13.3566
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.11199
  Prefactor  = 0.0001
  Prefactor  = 60.1876
  norm       = 0.000100022
  Prefactor  = 12.2228
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010012
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.03912
  Prefactor  = 8.83223
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.890144
  Prefactor  = 1.01331
 **********
 **   18 **HESSE 
 **********

 FCN=   5834.950     FROM HESSE     STATUS=OK           374 CALLS     2966 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2056        11.353        .16115E-03   -1.5210    
   2  norm          4.5474        3.0280        .10060E-03   -1.5281    
   3  norm          7.2835        4.9763        .13530E-03   -1.5168    
   4  Prefactor     .10000E-03    5.9545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.357        25.580        .10964E-03   -1.4977    
   6  Prefactor     .10000E-03    24.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1120        1.1398        .57849E-04   -1.5417    
   9  Prefactor     .10000E-03    12.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     60.188        64.670        .51708E-04   -1.4155    
  11  norm          .10002E-03    79.826        .34581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.223        9.4978        .11457E-03   -1.5009    
  13  Prefactor     .10000E-03    116.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10012E-03    41.101        .11036       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    9.3427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    15.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.0391        4.2416        .17709E-03   -1.5359    
  19  Prefactor     8.8322        53.343        .13502E-03   -1.5113    
  20  Prefactor     .10000E-03    12.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.6400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .89014        .25433        .30735E-03   -.96807    
  23  Prefactor     1.0133        .16782        .20160E-03   -.92287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73866e-09
Minuit parameter uncertainties:
  1  11.3571
  2  3.02814
  3  4.97658
  4  2.20926e-06
  5  25.6012
  6  1.40995e-05
  7  2.48434e-05
  8  1.13983
  9  1.83579e-05
  10  64.746
  11  0.00262819
  12  9.49892
  13  3.46553e-05
  14  5.91611e-05
  15  0.00444307
  16  1.50664e-05
  17  2.9661e-05
  18  4.24197
  19  43.4693
  20  2.86181e-07
  21  2.05511e-06
  22  0.25467
  23  0.167905
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  2.862e-07  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:  1.013e+00  1.679e-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:  8.901e-01  2.547e-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: 9.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/150676/likelihoodResults_366076801_366336001_4FGL_J2349.4+0534_daily_bin489.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) = 5834.95074011
delta logL = -0.000381774598281

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5834.95035907
delta logL = -7.35456524126e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11618E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4402       1.0000          .0000       10.000    
     3 'Normalizat'    .88999       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0134       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=   5834.950     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      244 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10195E-03    122.03        .18142E-02** at limit **
   2  Index         2.3724        7.3057        .50000        .13526E-04
   3  Normalizat    .89014        .15733E-01    .30735E-03    .26003E-04
   4  Prefactor     1.0133        .11013E-01    .20160E-03    .40998E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101946
  Index      = 2.37243
  Normalizat = 0.890143
  Prefactor  = 1.0133
 **********
 **   18 **HESSE 
 **********

 FCN=   5834.950     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10195E-03    507.88        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3724        8.8064        .50000       -.55332    
   3  Normalizat    .89014        .33379E-01    .12294E-04   -.96807    
   4  Prefactor     1.0133        .23364E-01    .80639E-05   -.92287    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.26737e-08
Minuit parameter uncertainties:
  1  0.063419
  2  739.68
  3  0.0333793
  4  0.0233646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150676': 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) = 5834.95035807
delta logL = 2.70508280664e-07

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.019e-04  6.342e-02  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.372e+00  7.397e+02  0.000e+00  1.000e+01 (-1.000e+00)
500        Scale:  9.996e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.013e+00  2.336e-02  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:  8.901e-01  3.338e-02  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/150676/cmap_HighResolution_366076801_366336001_4FGL_J2349.4+0534_daily_bin489.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.17e-03', job_status='DONE', photon_flux_upper_limit='9.23e-08', time_completed='2021-09-30 06:53:26.068687', job_id='150676', GAL2='1.01', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1633010006.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.71e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='489' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:53:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 150676: <4FGL_J2349.4+0534_daily_bin489> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin489> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 06:40:26 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:40:29 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:40:29 2021
Terminated at Thu Sep 30 06:53:26 2021
Results reported at Thu Sep 30 06:53:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin489 357.356 5.579 366076801 366336001 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 :                                   624.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            780 sec.

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

