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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin983
RA = 357.356, Dec = 5.579
tmin = 494121601, tmax = 494380801
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='153510', job_status='RUN', time_executed='2021-09-30 06:51:09.729796', time_epoch_executed='1633009869.73' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='983'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153510

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153510/ft1_4FGL_J2349.4+0534_daily_bin983.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153510/ft2_4FGL_J2349.4+0534_daily_bin983.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153510/ft1_4FGL_J2349.4+0534_daily_bin983.fits outfile=/scratch/kocevski/153510/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin983.fits ra=357.356 dec=5.579 rad=12.0 tmin=494121601.0 tmax=494380801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.72
user 3.50
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/153510/ft1_filtered_4FGL_J2349.4+0534_daily_bin983.fits" evtable="EVENTS" scfile=/scratch/kocevski/153510/ft2_4FGL_J2349.4+0534_daily_bin983.fits sctable="SC_DATA" outfile=/scratch/kocevski/153510/ltcube_494121601_494380801_4FGL_J2349.4+0534_daily_bin983.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/153510/ft2_4FGL_J2349.4+0534_daily_bin983.fits
.....................!
real 11.82
user 11.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153510/ft1_filtered_4FGL_J2349.4+0534_daily_bin983.fits evtable="EVENTS" scfile=/scratch/kocevski/153510/ft2_4FGL_J2349.4+0534_daily_bin983.fits sctable="SC_DATA" expcube=/scratch/kocevski/153510/ltcube_494121601_494380801_4FGL_J2349.4+0534_daily_bin983.fits outfile=/scratch/kocevski/153510/expmap_494121601_494380801_4FGL_J2349.4+0534_daily_bin983.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/153510/ltcube_494121601_494380801_4FGL_J2349.4+0534_daily_bin983.fits
.....................!
real 190.61
user 185.67
sys 4.63

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/153510/ft1_filtered_4FGL_J2349.4+0534_daily_bin983.fits scfile=/scratch/kocevski/153510/ft2_4FGL_J2349.4+0534_daily_bin983.fits outfile=/scratch/kocevski/153510/cmap_494121601_494380801_4FGL_J2349.4+0534_daily_bin983.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153510/ft1_filtered_4FGL_J2349.4+0534_daily_bin983.fits scfile=/scratch/kocevski/153510/ft2_4FGL_J2349.4+0534_daily_bin983.fits outfile=/scratch/kocevski/153510/cmap_HighResolution_494121601_494380801_4FGL_J2349.4+0534_daily_bin983.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/153510/ft1_filtered_4FGL_J2349.4+0534_daily_bin983.fits evtable="EVENTS" scfile=/scratch/kocevski/153510/ft2_4FGL_J2349.4+0534_daily_bin983.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/153510/Model_4FGL_J2349.4+0534_daily_bin983.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/153510/ft1_filtered_4FGL_J2349.4+0534_daily_bin983.fits.....................!
real 72.06
user 70.74
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9488       1.0000         .10000E-03   10000.    
     2 'norm      '    .52401E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.833       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.772       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0587       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0645       1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.681       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    41.050       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.2938       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3906       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11181E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13292E-01   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .99038       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0651       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=   6549.551     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2607 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2010        39.575        .13383E-05   -.50218E-04
   2  norm          .10064E-03    1.7018       -.45019E-06** at limit **
   3  norm          .10000E-03    2.1030       -.90682E-08** at limit **
   4  Prefactor     .10000E-03    13.610       -.20043E-06** at limit **
   5  Prefactor     .10000E-03    10.618        .46883E-07** at limit **
   6  Prefactor     29.828        17.988       -.22832E-05   -.76150E-05
   7  Prefactor     12.768        13.959        .84156E-06   -.84367E-05
   8  norm          1.0588        .81158       -.94902E-08   -.15720E-03
   9  Prefactor     .10000E-03    7.2326       -.18786E-07** at limit **
  10  Prefactor     4.0619        55.326        .55296E-06   -.25566E-04
  11  norm          .10000E-03    6.5778        .24749E-06** at limit **
  12  Prefactor     12.678        10.410       -.21283E-05   -.10359E-03
  13  Prefactor     .10000E-03    67.214       -.37654E-04** at limit **
  14  Prefactor     .10000E-03    4.7186        .99156E-07** at limit **
  15  Prefactor     41.058        30.462       -.34620E-07   -.36316E-04
  16  norm          .10000E-03    23.336        .10568E-07** at limit **
  17  norm          6.3008        14.228       -.26964E-05   -.68512E-04
  18  Prefactor     2.3894        3.8376       -.18575E-06   -.65353E-03
  19  Prefactor     .10000E-03    55.005        .19589E-04** at limit **
  20  Prefactor     .10000E-03    7.7151        .26072E-07** at limit **
  21  Prefactor     .10215E-03    16.878        .45212E-05** at limit **
  22  Normalizat    .99048        .21600        .46579E-06   -.33330E-03
  23  Prefactor     1.0651        .14177        .23602E-06   -.40988E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.20104
  norm       = 0.000100643
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.8282
  Prefactor  = 12.7678
  norm       = 1.05877
  Prefactor  = 0.0001
  Prefactor  = 4.06192
  norm       = 0.0001
  Prefactor  = 12.6784
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.0579
  norm       = 0.0001
  norm       = 6.30078
  Prefactor  = 2.38937
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010215
  Normalizat = 0.990483
  Prefactor  = 1.06507
 **********
 **   18 **HESSE 
 **********

 FCN=   6549.551     FROM HESSE     STATUS=OK           376 CALLS     2983 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2010        47.112        .23650E-03   -1.5350    
   2  norm          .10064E-03    5.7157        .29957E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.1222        .11459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     29.828        17.983        .73354E-04   -1.4615    
   7  Prefactor     12.768        13.956        .11208E-03   -1.4993    
   8  norm          1.0588        .81057        .61754E-04   -1.5502    
   9  Prefactor     .10000E-03    7.2757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.0619        55.286        .19999E-03   -1.5305    
  11  norm          .10000E-03    6.6054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.678        10.417        .11249E-03   -1.4996    
  13  Prefactor     .10000E-03    67.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.7296        .17154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     41.058        30.427        .62565E-04   -1.4426    
  16  norm          .10000E-03    23.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.3008        14.165        .16000E-03   -1.5206    
  18  Prefactor     2.3894        3.8099        .18715E-03   -1.5399    
  19  Prefactor     .10000E-03    55.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.7229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10215E-03    102.33        .60501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .99048        .24876        .31107E-03   -.93350    
  23  Prefactor     1.0651        .16517        .20849E-03   -.90591    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04905e-08
Minuit parameter uncertainties:
  1  24.5836
  2  0.00383591
  3  1.85476e-06
  4  1.51682e-05
  5  2.34245e-06
  6  17.9859
  7  13.9597
  8  0.810582
  9  2.52308e-05
  10  30.0045
  11  6.67113e-05
  12  10.4182
  13  1.06746e-05
  14  1.4128e-05
  15  30.4387
  16  5.41148e-05
  17  14.1728
  18  3.81027
  19  0.000164515
  20  2.14017e-06
  21  0.0297186
  22  0.249051
  23  0.165254
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  2.140e-06  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.065e+00  1.653e-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.905e-01  2.491e-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: 7.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153510/likelihoodResults_494121601_494380801_4FGL_J2349.4+0534_daily_bin983.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) = 6549.55148925
delta logL = -0.000616207382336

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6549.55087302
delta logL = 2.54703991232e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4518       1.0000          .0000       10.000    
     3 'Normalizat'    .99051       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0651       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=   6549.551     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      255 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.146        .18142E-01** at limit **
   2  Index         1.9100        5.9476        .50000        .11275E-06
   3  Normalizat    .99048        .97333E-02    .31107E-03   -.81244E-04
   4  Prefactor     1.0651        .67804E-02    .20849E-03   -.11711E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.91003
  Normalizat = 0.990485
  Prefactor  = 1.06507
 **********
 **   18 **HESSE 
 **********

 FCN=   6549.551     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    295.82        .24120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9100        5.8269        .50000       -.66619    
   3  Normalizat    .99048        .30571E-01    .12443E-04   -.93350    
   4  Prefactor     1.0651        .21296E-01    .41698E-04   -.90591    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.86781e-10
Minuit parameter uncertainties:
  1  0.000316349
  2  1064.33
  3  0.0305714
  4  0.0212965
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153510': 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) = 6549.55087193
delta logL = 1.11439294415e-06

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  3.163e-04  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  1.910e+00  1.064e+03  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.065e+00  2.130e-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:  9.905e-01  3.057e-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/153510/cmap_HighResolution_494121601_494380801_4FGL_J2349.4+0534_daily_bin983.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.59e-03', job_status='DONE', photon_flux_upper_limit='7.20e-08', time_completed='2021-09-30 07:02:21.806418', job_id='153510', GAL2='1.07', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1633010541.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.11e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='983' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:02:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 153510: <4FGL_J2349.4+0534_daily_bin983> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin983> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 06:50:35 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:50: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:50:36 2021
Terminated at Thu Sep 30 07:02:22 2021
Results reported at Thu Sep 30 07:02:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin983 357.356 5.579 494121601 494380801 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 :                                   660.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            707 sec.

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

