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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1094
RA = 357.356, Dec = 5.579
tmin = 522892801, tmax = 523152001
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='153669', job_status='RUN', time_executed='2021-09-30 06:54:48.980370', time_epoch_executed='1633010088.98' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1094'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153669

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153669/ft1_4FGL_J2349.4+0534_daily_bin1094.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153669/ft2_4FGL_J2349.4+0534_daily_bin1094.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153669/ft1_4FGL_J2349.4+0534_daily_bin1094.fits outfile=/scratch/kocevski/153669/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1094.fits ra=357.356 dec=5.579 rad=12.0 tmin=522892801.0 tmax=523152001.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.76
user 3.52
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/153669/ft2_4FGL_J2349.4+0534_daily_bin1094.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/153669/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1094.fits evtable="EVENTS" outfile="/scratch/kocevski/153669/ft1_filtered_4FGL_J2349.4+0534_daily_bin1094.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.48
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153669/ft1_filtered_4FGL_J2349.4+0534_daily_bin1094.fits evtable="EVENTS" scfile=/scratch/kocevski/153669/ft2_4FGL_J2349.4+0534_daily_bin1094.fits sctable="SC_DATA" expcube=/scratch/kocevski/153669/ltcube_522892801_523152001_4FGL_J2349.4+0534_daily_bin1094.fits outfile=/scratch/kocevski/153669/expmap_522892801_523152001_4FGL_J2349.4+0534_daily_bin1094.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/153669/ltcube_522892801_523152001_4FGL_J2349.4+0534_daily_bin1094.fits
.....................!
real 190.72
user 185.42
sys 5.00

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/153669/ft1_filtered_4FGL_J2349.4+0534_daily_bin1094.fits scfile=/scratch/kocevski/153669/ft2_4FGL_J2349.4+0534_daily_bin1094.fits outfile=/scratch/kocevski/153669/cmap_522892801_523152001_4FGL_J2349.4+0534_daily_bin1094.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.66
user 0.36
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.1886       1.0000         .10000E-03   10000.    
     3 'norm      '    7.4940       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.330       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2351       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6495       1.0000         .10000E-03   10000.    
     8 'norm      '    .10293E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.4876       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    161.21       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12539E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.318       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.602       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .57172       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2738       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=   5792.988     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2529 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.098        .13486E-05** at limit **
   2  norm          2.1878        3.2397       -.66299E-07   -.66312E-03
   3  norm          7.4936        5.3133        .37717E-06   -.13676E-03
   4  Prefactor     14.329        15.078       -.25739E-05   -.36938E-04
   5  Prefactor     1.0411        186.56       -.25270E-04   -.61043E-04
   6  Prefactor     .10000E-03    6.1629        .21346E-05** at limit **
   7  Prefactor     1.6407        44.817        .44797E-04   -.13829E-03
   8  norm          .10000E-03    .40713       -.15708E-06** at limit **
   9  Prefactor     .10000E-03    4.9809        .15552E-05** at limit **
  10  Prefactor     .10000E-03    10.010        .19695E-05** at limit **
  11  norm          2.4903        6.9114       -.59589E-06   -.42826E-03
  12  Prefactor     .10000E-03    5.1975       -.11402E-05** at limit **
  13  Prefactor     161.23        185.53        .17860E-04    .15443E-04
  14  Prefactor     .10000E-03    2.4613        .13513E-07** at limit **
  15  Prefactor     .10000E-03    17.490       -.78194E-06** at limit **
  16  norm          .10000E-03    4.2500       -.85659E-07** at limit **
  17  norm          .10000E-03    5.2444       -.13171E-05** at limit **
  18  Prefactor     .10001E-03    1.7996       -.66138E-06** at limit **
  19  Prefactor     31.317        28.080       -.31358E-05   -.36411E-05
  20  Prefactor     11.601        19.050       -.74082E-05   -.16482E-04
  21  Prefactor     .10000E-03    7.7831       -.21271E-05** at limit **
  22  Normalizat    .57167        .22108       -.26359E-07   -.75487E-04
  23  Prefactor     1.2739        .15149       -.39297E-06   -.26874E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.18782
  norm       = 7.49364
  Prefactor  = 14.3287
  Prefactor  = 1.04114
  Prefactor  = 0.0001
  Prefactor  = 1.64073
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.49028
  Prefactor  = 0.0001
  Prefactor  = 161.233
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 31.3171
  Prefactor  = 11.6015
  Prefactor  = 0.0001
  Normalizat = 0.571669
  Prefactor  = 1.27386
 **********
 **   18 **HESSE 
 **********

 FCN=   5792.988     FROM HESSE     STATUS=OK           374 CALLS     2903 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1878        3.2251        .15168E-03   -1.5412    
   3  norm          7.4936        5.2997        .13796E-03   -1.5160    
   4  Prefactor     14.329        15.068        .10581E-03   -1.4951    
   5  Prefactor     1.0411        197.25        .40411E-02   -1.5504    
   6  Prefactor     .10000E-03    6.1997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.6407        42.371        .32877E-03   -1.5452    
   8  norm          .10000E-03    .42556        .94659E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.0041        .16587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4903        6.8649        .25917E-03   -1.5392    
  12  Prefactor     .10000E-03    5.2399        .16859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     161.23        185.05        .15881E-03   -1.3162    
  14  Prefactor     .10000E-03    2.4668        .11660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.2519        .15325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.2484        .17026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    10.322        .19814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     31.317        28.088        .71598E-04   -1.4588    
  20  Prefactor     11.601        19.086        .11761E-03   -1.5027    
  21  Prefactor     .10000E-03    7.7976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .57167        .24141        .35867E-03   -1.0920    
  23  Prefactor     1.2739        .16788        .18320E-03   -.84088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24123e-09
Minuit parameter uncertainties:
  1  2.84029e-05
  2  3.22535
  3  5.29999
  4  15.0723
  5  28.7564
  6  2.19184e-06
  7  16.6883
  8  7.85484e-06
  9  7.59496e-06
  10  1.14777e-05
  11  6.86707
  12  3.02282e-05
  13  185.723
  14  9.48317e-06
  15  5.19264e-05
  16  1.38193e-06
  17  7.8807e-06
  18  0.000685027
  19  28.1003
  20  19.0964
  21  1.04272e-05
  22  0.241859
  23  0.167953
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.160e+01  1.910e+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:  1.274e+00  1.680e-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:  5.717e-01  2.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/153669/likelihoodResults_522892801_523152001_4FGL_J2349.4+0534_daily_bin1094.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) = 5792.44236468
delta logL = 0.545206364047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5792.43408372
delta logL = 0.553487321049

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .65569       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6069       1.0000          .0000       10.000    
     3 'Normalizat'    .49788       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3094       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5792.434     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      329 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .66930        9.2627        .11509E-01    .13620E-02
   2  Index         4.5975        2.8263        .10518        .17695E-03
   3  Normalizat    .49826        .47374E-01    .86428E-01    .35362E-04
   4  Prefactor     1.3093        .34931E-01    .32448E-01   -.59786E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.669301
  Index      = 4.59754
  Normalizat = 0.498256
  Prefactor  = 1.30932
 **********
 **   18 **HESSE 
 **********

 FCN=   5792.434     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      364 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .66930        23.253        .52457E-03   -1.5544    
   2  Index         4.5975        7.1798        .51943E-02   -.80579E-01
   3  Normalizat    .49826        .17316        .38286E-03   -1.1250    
   4  Prefactor     1.3093        .12617        .18102E-03   -.83030    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.83692e-11
Minuit parameter uncertainties:
  1  7.89271
  2  5.88337
  3  0.173347
  4  0.126202
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153669': 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) = 5792.43407253
delta logL = 0.553498509206

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  6.693e-01  7.893e+00  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  4.598e+00  5.883e+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:  1.309e+00  1.262e-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:  4.983e-01  1.733e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.75
Ra Dec: 357.356 5.579
Photon Index (Free Index): 4.60 +/- 5.88
Photon Flux (Free Index): 7.39e-08 +/- 6.14e-08
Energy Flux (Free Index): 1.02e-05 +/- 9.71e-06

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/153669/cmap_HighResolution_522892801_523152001_4FGL_J2349.4+0534_daily_bin1094.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.08e-03', comment='SUCCESS', energy_flux2='1.02e-05', dlogl='5.53e-01', photon_flux2='7.39e-08', job_status='DONE', time_completed='2021-09-30 07:06:18.010861', photon_index_error2='5.88', photon_index2='4.60', ts='0.52', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='9.71e-06', EG='0.57', time_epoch_completed='1633010778.01', return_code='0', job_id='153669', GAL2='1.31', EG2='0.50', return_code2='102', photon_flux_error2='6.14e-08', ts2='1.75', photon_index='2.47' WHERE bin_id='1094' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:06:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 153669: <4FGL_J2349.4+0534_daily_bin1094> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1094 357.356 5.579 522892801 523152001 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 :                                   619.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            929 sec.

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

