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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin608
RA = 357.356, Dec = 5.579
tmin = 396921601, tmax = 397180801
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='151993', job_status='RUN', time_executed='2021-09-30 06:48:43.448817', time_epoch_executed='1633009723.45' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='608'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/151993

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/151993/ft1_4FGL_J2349.4+0534_daily_bin608.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/151993/ft2_4FGL_J2349.4+0534_daily_bin608.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/151993/ft1_4FGL_J2349.4+0534_daily_bin608.fits outfile=/scratch/kocevski/151993/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin608.fits ra=357.356 dec=5.579 rad=12.0 tmin=396921601.0 tmax=397180801.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.54
user 4.29
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/151993/ft2_4FGL_J2349.4+0534_daily_bin608.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/151993/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin608.fits evtable="EVENTS" outfile="/scratch/kocevski/151993/ft1_filtered_4FGL_J2349.4+0534_daily_bin608.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/151993/ft1_filtered_4FGL_J2349.4+0534_daily_bin608.fits" evtable="EVENTS" scfile=/scratch/kocevski/151993/ft2_4FGL_J2349.4+0534_daily_bin608.fits sctable="SC_DATA" outfile=/scratch/kocevski/151993/ltcube_396921601_397180801_4FGL_J2349.4+0534_daily_bin608.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/151993/ft2_4FGL_J2349.4+0534_daily_bin608.fits
.....................!
real 11.69
user 11.37
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/151993/ft1_filtered_4FGL_J2349.4+0534_daily_bin608.fits evtable="EVENTS" scfile=/scratch/kocevski/151993/ft2_4FGL_J2349.4+0534_daily_bin608.fits sctable="SC_DATA" expcube=/scratch/kocevski/151993/ltcube_396921601_397180801_4FGL_J2349.4+0534_daily_bin608.fits outfile=/scratch/kocevski/151993/expmap_396921601_397180801_4FGL_J2349.4+0534_daily_bin608.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/151993/ltcube_396921601_397180801_4FGL_J2349.4+0534_daily_bin608.fits
.....................!
real 189.84
user 185.16
sys 4.33

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/151993/ft1_filtered_4FGL_J2349.4+0534_daily_bin608.fits scfile=/scratch/kocevski/151993/ft2_4FGL_J2349.4+0534_daily_bin608.fits outfile=/scratch/kocevski/151993/cmap_396921601_397180801_4FGL_J2349.4+0534_daily_bin608.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.56
user 0.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13887E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .23464E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.0661       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    65.272       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.4654       1.0000         .10000E-03   10000.    
     8 'norm      '    2.6078       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4999       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    103.35       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    14.270       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .58766E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.247       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .77849       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96824       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=   7156.560     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2711 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.187       -.16752E-06** at limit **
   2  norm          .10001E-03    .78688       -.41770E-07** at limit **
   3  norm          6.0675        3.8325       -.74115E-07   -.13474E-04
   4  Prefactor     .10000E-03    3.5839        .66436E-08** at limit **
   5  Prefactor     65.278        36.790       -.14859E-06    .14955E-04
   6  Prefactor     .10000E-03    7.3288        .92374E-07** at limit **
   7  Prefactor     6.4675        15.137       -.95310E-08   -.19583E-04
   8  norm          2.6072        1.0187        .22760E-06   -.53245E-03
   9  Prefactor     6.5021        10.308       -.29172E-06    .33034E-05
  10  Prefactor     .10000E-03    12.831       -.12782E-06** at limit **
  11  norm          .10000E-03    5.8572       -.12664E-06** at limit **
  12  Prefactor     .10000E-03    7.4141       -.20705E-06** at limit **
  13  Prefactor     103.06        145.37        .31353E-05   -.92069E-04
  14  Prefactor     .10000E-03    15.701       -.51086E-05** at limit **
  15  Prefactor     .10000E-03    14.884       -.34060E-07** at limit **
  16  norm          .10000E-03    4.5181        .15513E-07** at limit **
  17  norm          14.153        19.064        .59649E-05   -.10662E-03
  18  Prefactor     .11239        2.1601       -.92484E-06   -.11911E-02
  19  Prefactor     .10000E-03    10.034        .32143E-07** at limit **
  20  Prefactor     17.250        14.571       -.10203E-06   -.60665E-05
  21  Prefactor     .10000E-03    24.699        .14833E-06** at limit **
  22  Normalizat    .77793        .17049        .24902E-05   -.39642E-04
  23  Prefactor     .96852        .11828       -.69041E-06    .18946E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100012
  norm       = 6.06749
  Prefactor  = 0.0001
  Prefactor  = 65.2781
  Prefactor  = 0.0001
  Prefactor  = 6.46752
  norm       = 2.60724
  Prefactor  = 6.50207
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 103.059
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 14.1526
  Prefactor  = 0.112394
  Prefactor  = 0.0001
  Prefactor  = 17.2504
  Prefactor  = 0.0001
  Normalizat = 0.77793
  Prefactor  = 0.968521
 **********
 **   18 **HESSE 
 **********

 FCN=   7156.560     FROM HESSE     STATUS=OK           374 CALLS     3085 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.265        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10001E-03    1.2522        .28060E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.0675        3.8359        .12693E-03   -1.5215    
   4  Prefactor     .10000E-03    3.6051        .15637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     65.278        36.799        .49674E-04   -1.4090    
   6  Prefactor     .10000E-03    7.3543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.4675        15.138        .15784E-03   -1.5199    
   8  norm          2.6072        1.0202        .50628E-04   -1.5385    
   9  Prefactor     6.5021        10.292        .15742E-03   -1.5198    
  10  Prefactor     .10000E-03    12.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.9346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.6123        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     103.06        146.89        .19776E-03   -1.3674    
  14  Prefactor     .10000E-03    16.383        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.5222        .17562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          14.153        25.355        .10603E-03   -1.4955    
  18  Prefactor     .11239        79.176        .21355E-02   -1.5641    
  19  Prefactor     .10000E-03    10.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.250        14.586        .96441E-04   -1.4877    
  21  Prefactor     .10000E-03    25.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .77793        .20868        .29535E-03   -1.0089    
  23  Prefactor     .96852        .14147        .19087E-03   -.93786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82335e-08
Minuit parameter uncertainties:
  1  0.000151726
  2  0.000248275
  3  3.83603
  4  7.0013e-06
  5  36.8121
  6  9.63518e-08
  7  15.147
  8  1.02024
  9  10.2953
  10  3.66121e-05
  11  7.56265e-06
  12  3.87496e-05
  13  147.412
  14  7.75801e-05
  15  1.57032e-05
  16  3.20347e-06
  17  25.3747
  18  5.97149
  19  2.35734e-06
  20  14.5895
  21  0.000176938
  22  0.208898
  23  0.141519
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.725e+01  1.459e+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:  9.685e-01  1.415e-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:  7.779e-01  2.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.62
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 3.44e-08 +/- 2.91e-08
Energy Flux (Fixed Index): 1.04e-05 +/- 8.78e-06

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

Saving results to:
/scratch/kocevski/151993/likelihoodResults_396921601_397180801_4FGL_J2349.4+0534_daily_bin608.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) = 7156.55587408
delta logL = 0.00379454676568

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7156.55367156
delta logL = 0.00599706796038

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.134       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5477       1.0000          .0000       10.000    
     3 'Normalizat'    .77516       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96962       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=   7156.554     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      257 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.131        18.439        .99714E-04    .15027E-03
   2  Index         2.5475        .79194        .86553E-02    .43739E-04
   3  Normalizat    .77535        .19296        .29580E-03    .14755E-03
   4  Prefactor     .96954        .13756        .19078E-03    .27173E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.1306
  Index      = 2.54752
  Normalizat = 0.775346
  Prefactor  = 0.969538
 **********
 **   18 **HESSE 
 **********

 FCN=   7156.554     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.131        17.279        .39886E-05   -1.4904    
   2  Index         2.5475        .74212        .34621E-03   -.51266    
   3  Normalizat    .77535        .19289        .11832E-04   -1.0099    
   4  Prefactor     .96954        .13758        .38157E-04   -.93752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.61967e-11
Minuit parameter uncertainties:
  1  17.2848
  2  0.745754
  3  0.193057
  4  0.137629
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/151993': 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) = 7156.55367092
delta logL = 0.00599770645022

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  9.695e-01  1.376e-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:  7.753e-01  1.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.63
Ra Dec: 357.356 5.579
Photon Index (Free Index): 2.55 +/- 0.75
Photon Flux (Free Index): 3.68e-08 +/- 3.69e-08
Energy Flux (Free Index): 1.01e-05 +/- 8.69e-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/151993/cmap_HighResolution_396921601_397180801_4FGL_J2349.4+0534_daily_bin608.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.95e-03', comment='SUCCESS', photon_flux='3.44e-08', energy_flux2='1.01e-05', photon_flux_error='2.91e-08', dlogl='6.00e-03', energy_flux='1.04e-05', photon_flux2='3.68e-08', job_status='DONE', time_completed='2021-09-30 07:00:31.546019', photon_index_error2='0.75', photon_index2='2.55', ts='2.62', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='8.69e-06', EG='0.78', time_epoch_completed='1633010431.55', return_code='0', job_id='151993', GAL2='0.97', EG2='0.78', return_code2='0', energy_flux_error='8.78e-06', photon_flux_error2='3.69e-08', ts2='2.63', photon_index='2.47' WHERE bin_id='608' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:00:31 PDT 2021


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

Job <4FGL_J2349.4+0534_daily_bin608> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 06:45:24 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:45: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:45:25 2021
Terminated at Thu Sep 30 07:00:32 2021
Results reported at Thu Sep 30 07:00:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin608 357.356 5.579 396921601 397180801 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 :                                   706.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            908 sec.

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

