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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1410
RA = 357.356, Dec = 5.579
tmin = 604800001, tmax = 605059201
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='155160', job_status='RUN', time_executed='2021-09-30 06:57:52.961361', time_epoch_executed='1633010272.96' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/155160

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/155160/ft1_4FGL_J2349.4+0534_daily_bin1410.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/155160/ft2_4FGL_J2349.4+0534_daily_bin1410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/155160/ft1_4FGL_J2349.4+0534_daily_bin1410.fits outfile=/scratch/kocevski/155160/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1410.fits ra=357.356 dec=5.579 rad=12.0 tmin=604800001.0 tmax=605059201.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.07
user 4.84
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/155160/ft1_filtered_4FGL_J2349.4+0534_daily_bin1410.fits" evtable="EVENTS" scfile=/scratch/kocevski/155160/ft2_4FGL_J2349.4+0534_daily_bin1410.fits sctable="SC_DATA" outfile=/scratch/kocevski/155160/ltcube_604800001_605059201_4FGL_J2349.4+0534_daily_bin1410.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/155160/ft2_4FGL_J2349.4+0534_daily_bin1410.fits
.....................!
real 11.99
user 11.58
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/155160/ft1_filtered_4FGL_J2349.4+0534_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/155160/ft2_4FGL_J2349.4+0534_daily_bin1410.fits sctable="SC_DATA" expcube=/scratch/kocevski/155160/ltcube_604800001_605059201_4FGL_J2349.4+0534_daily_bin1410.fits outfile=/scratch/kocevski/155160/expmap_604800001_605059201_4FGL_J2349.4+0534_daily_bin1410.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/155160/ltcube_604800001_605059201_4FGL_J2349.4+0534_daily_bin1410.fits
.....................!
real 191.24
user 185.99
sys 4.81

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J2349.4+0534 @ 357.356 5.579

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/155160/ft1_filtered_4FGL_J2349.4+0534_daily_bin1410.fits scfile=/scratch/kocevski/155160/ft2_4FGL_J2349.4+0534_daily_bin1410.fits outfile=/scratch/kocevski/155160/cmap_604800001_605059201_4FGL_J2349.4+0534_daily_bin1410.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/155160/ft1_filtered_4FGL_J2349.4+0534_daily_bin1410.fits scfile=/scratch/kocevski/155160/ft2_4FGL_J2349.4+0534_daily_bin1410.fits outfile=/scratch/kocevski/155160/cmap_HighResolution_604800001_605059201_4FGL_J2349.4+0534_daily_bin1410.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/155160/ft1_filtered_4FGL_J2349.4+0534_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/155160/ft2_4FGL_J2349.4+0534_daily_bin1410.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/155160/Model_4FGL_J2349.4+0534_daily_bin1410.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/155160/ft1_filtered_4FGL_J2349.4+0534_daily_bin1410.fits.....................!
real 60.70
user 59.12
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11264E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.610       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10459E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8984       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.167       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0973       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12940E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.7261       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .87720E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    168.82       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12309E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    20.498       1.0000         .10000E-03   10000.    
    17 'norm      '    .10816E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.1499       1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.017       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.237       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4575       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86151       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=   5440.591     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2516 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.7221       -.21565E-05** at limit **
   2  norm          .10000E-03    .90395       -.47749E-07** at limit **
   3  norm          12.612        6.0493       -.56841E-06    .13714E-04
   4  Prefactor     .10000E-03    7.3786        .14869E-05** at limit **
   5  Prefactor     .10000E-03    11.670       -.15585E-05** at limit **
   6  Prefactor     4.8987        8.0639       -.47057E-06   -.17758E-04
   7  Prefactor     24.187        22.362       -.12896E-04    .31110E-04
   8  norm          1.0984        1.4363       -.73918E-06   -.75399E-03
   9  Prefactor     .10000E-03    5.6521       -.92804E-07** at limit **
  10  Prefactor     .10000E-03    30.964       -.37637E-05** at limit **
  11  norm          6.7320        11.203        .16439E-05    .10875E-02
  12  Prefactor     .58591E-01    10.066       -.41423E-05    .66120E-03
  13  Prefactor     168.86        177.00        .24319E-04    .22573E-05
  14  Prefactor     .10000E-03    4.6923       -.58317E-07** at limit **
  15  Prefactor     .10000E-03    10.049        .10028E-05** at limit **
  16  norm          20.524        14.166       -.50686E-05    .13934E-03
  17  norm          .10000E-03    9.3689        .44942E-06** at limit **
  18  Prefactor     5.1558        5.3683        .13304E-05   -.15127E-03
  19  Prefactor     31.992        51.049       -.28582E-04    .49011E-04
  20  Prefactor     15.275        27.187       -.13447E-04    .68745E-04
  21  Prefactor     .10000E-03    21.598        .16539E-05** at limit **
  22  Normalizat    1.4571        .23828        .58115E-05    .32290E-03
  23  Prefactor     .86165        .15792        .17432E-05    .56699E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.6118
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.89869
  Prefactor  = 24.1868
  norm       = 1.09843
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.732
  Prefactor  = 0.0585912
  Prefactor  = 168.856
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.5245
  norm       = 0.0001
  Prefactor  = 5.15578
  Prefactor  = 31.9917
  Prefactor  = 15.2755
  Prefactor  = 0.0001
  Normalizat = 1.45715
  Prefactor  = 0.861652
 **********
 **   18 **HESSE 
 **********

 FCN=   5440.591     FROM HESSE     STATUS=OK           372 CALLS     2888 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.7382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .90789        .68473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.612        6.0585        .11280E-03   -1.4998    
   4  Prefactor     .10000E-03    7.3919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.8987        8.0573        .18174E-03   -1.5265    
   7  Prefactor     24.187        22.358        .81484E-04   -1.4724    
   8  norm          1.0984        1.4082        .96029E-04   -1.5498    
   9  Prefactor     .10000E-03    5.6730        .17120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.7320        11.451        .15472E-03   -1.5189    
  12  Prefactor     .58591E-01    13.024        .51199E-01   -1.5660    
  13  Prefactor     168.86        177.29        .15524E-03   -1.3102    
  14  Prefactor     .10000E-03    4.6955        .15597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          20.524        14.151        .88467E-04   -1.4802    
  17  norm          .10000E-03    9.3743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.1558        5.3616        .16516E-03   -1.5254    
  19  Prefactor     31.992        51.080        .70814E-04   -1.4576    
  20  Prefactor     15.275        27.180        .10261E-03   -1.4926    
  21  Prefactor     .10000E-03    21.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4571        .27874        .27629E-03   -.78990    
  23  Prefactor     .86165        .18420        .23750E-03   -.97494    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9416e-09
Minuit parameter uncertainties:
  1  2.03491e-05
  2  4.92029e-06
  3  6.05875
  4  3.07514e-05
  5  1.67929e-06
  6  8.05907
  7  22.3655
  8  1.40823
  9  1.41508e-05
  10  0.000111514
  11  11.4548
  12  1.74597
  13  177.851
  14  9.12791e-06
  15  2.1016e-05
  16  14.1531
  17  2.26643e-05
  18  5.36214
  19  51.1494
  20  27.2022
  21  0.000115689
  22  0.279035
  23  0.184329
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  8.617e-01  1.843e-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.457e+00  2.790e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/155160/likelihoodResults_604800001_605059201_4FGL_J2349.4+0534_daily_bin1410.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) = 5440.56433635
delta logL = 0.0270367153917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5440.51034275
delta logL = 0.0810303185854

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1064       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5870       1.0000          .0000       10.000    
     3 'Normalizat'    1.4275       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87851       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5440.510     FROM MIGRAD    STATUS=FAILED        92 CALLS      274 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0979        312.22        .18065E-03   -.24292E-04
   2  Index         3.5898        5.7811        .82158E-02    .46494E-03
   3  Normalizat    1.4273        .22783        .27865E-03    .33005E-03
   4  Prefactor     .87866        .15858        .23544E-03   -.48649E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5440.510     FROM SIMPLEX   STATUS=UNCHANGED     87 CALLS      361 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0979        312.22        .21557E-03   -.24292E-04
   2  Index         3.5898        5.7811        .20348E-02    .46494E-03
   3  Normalizat    1.4273        .22783        .13140E-03    .33005E-03
   4  Prefactor     .87866        .15858        .96019E-04   -.48649E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5440.510     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      393 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0977        318.83        .72259E-05   -.16363E-04
   2  Index         3.5899        5.7234        .16432E-02   -.19857E-05
   3  Normalizat    1.4273        .29389        .55730E-04    .24643E-04
   4  Prefactor     .87867        .20689        .47088E-04    .30565E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.09772
  Index      = 3.58987
  Normalizat = 1.42729
  Prefactor  = 0.878671
 **********
 **   18 **HESSE 
 **********

 FCN=   5440.510     FROM HESSE     STATUS=OK            23 CALLS      416 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0977        49.848        .14452E-05   -1.5356    
   2  Index         3.5899        3.7105        .65727E-04   -.28590    
   3  Normalizat    1.4273        .27764        .11146E-04   -.79843    
   4  Prefactor     .87867        .18805        .94177E-05   -.96890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49339e-12
Minuit parameter uncertainties:
  1  24.877
  2  4.24219
  3  0.277931
  4  0.188191
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/155160': 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) = 5440.51034073
delta logL = 0.0810323347368

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  3.098e+00  2.488e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  3.590e+00  4.242e+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.787e-01  1.882e-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.427e+00  2.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.38
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/155160/cmap_HighResolution_604800001_605059201_4FGL_J2349.4+0534_daily_bin1410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', job_status='DONE', photon_flux_upper_limit='1.51e-07', time_completed='2021-09-30 07:09:39.610134', job_id='155160', GAL2='0.88', fit_tolerance='1e-08', EG2='1.43', EG='1.46', time_epoch_completed='1633010979.61', return_code2='0', ts='0.38', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='8.10e-02', ts2='0.55', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1410' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:09:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 155160: <4FGL_J2349.4+0534_daily_bin1410> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin1410> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 06:55:34 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:55:36 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:55:36 2021
Terminated at Thu Sep 30 07:09:40 2021
Results reported at Thu Sep 30 07:09:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1410 357.356 5.579 604800001 605059201 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 :                                   621.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             253.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            846 sec.

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

