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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin621
RA = 357.356, Dec = 5.579
tmin = 400291201, tmax = 400550401
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='152011', job_status='RUN', time_executed='2021-09-30 06:48:48.536067', time_epoch_executed='1633009728.54' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='621'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152011

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152011/ft1_4FGL_J2349.4+0534_daily_bin621.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152011/ft2_4FGL_J2349.4+0534_daily_bin621.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152011/ft1_4FGL_J2349.4+0534_daily_bin621.fits outfile=/scratch/kocevski/152011/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin621.fits ra=357.356 dec=5.579 rad=12.0 tmin=400291201.0 tmax=400550401.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.31
user 3.08
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152011/ft1_filtered_4FGL_J2349.4+0534_daily_bin621.fits evtable="EVENTS" scfile=/scratch/kocevski/152011/ft2_4FGL_J2349.4+0534_daily_bin621.fits sctable="SC_DATA" expcube=/scratch/kocevski/152011/ltcube_400291201_400550401_4FGL_J2349.4+0534_daily_bin621.fits outfile=/scratch/kocevski/152011/expmap_400291201_400550401_4FGL_J2349.4+0534_daily_bin621.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/152011/ltcube_400291201_400550401_4FGL_J2349.4+0534_daily_bin621.fits
.....................!
real 190.72
user 185.23
sys 5.19

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/152011/ft1_filtered_4FGL_J2349.4+0534_daily_bin621.fits scfile=/scratch/kocevski/152011/ft2_4FGL_J2349.4+0534_daily_bin621.fits outfile=/scratch/kocevski/152011/cmap_400291201_400550401_4FGL_J2349.4+0534_daily_bin621.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/152011/ft1_filtered_4FGL_J2349.4+0534_daily_bin621.fits scfile=/scratch/kocevski/152011/ft2_4FGL_J2349.4+0534_daily_bin621.fits outfile=/scratch/kocevski/152011/cmap_HighResolution_400291201_400550401_4FGL_J2349.4+0534_daily_bin621.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.3496       1.0000         .10000E-03   10000.    
     3 'norm      '    6.4112       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1771       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2492       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7712       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    15.415       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5539       1.0000         .10000E-03   10000.    
    19 'Prefactor '    101.36       1.0000         .10000E-03   10000.    
    20 'Prefactor '    37.788       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .70704       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98329       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5929.791     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2523 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4134         .0000    ** at limit **
   2  norm          6.3513        3.2695         .0000        .10158E-02
   3  norm          6.4116        4.3606         .0000       -.20656E-02
   4  Prefactor     .10000E-03    5.6324         .0000    ** at limit **
   5  Prefactor     .10138E-03    19.334         .0000    ** at limit **
   6  Prefactor     .10003E-03    4.6595         .0000    ** at limit **
   7  Prefactor     .10099E-03    21.436         .0000    ** at limit **
   8  norm          2.1768        1.1924         .0000       -.32701E-03
   9  Prefactor     .10000E-03    3.6352         .0000    ** at limit **
  10  Prefactor     .10058E-03    67.324         .0000    ** at limit **
  11  norm          1.2624        13.902         .0000        .22240E-01
  12  Prefactor     4.7519        11.362         .0000        .25419E-02
  13  Prefactor     .10111E-03    125.54         .0000    ** at limit **
  14  Prefactor     .10003E-03    4.6418         .0000    ** at limit **
  15  Prefactor     .10000E-03    10.244         .0000    ** at limit **
  16  norm          15.419        15.783         .0000       -.20791E-04
  17  norm          .10000E-03    6.4808         .0000    ** at limit **
  18  Prefactor     2.5555        5.3243         .0000        .86388E-03
  19  Prefactor     101.36        51.547         .0000        .86432E-05
  20  Prefactor     37.791        24.995         .0000       -.55135E-04
  21  Prefactor     .10008E-03    14.606         .0000    ** at limit **
  22  Normalizat    .70671        .20579         .0000        .12799E-03
  23  Prefactor     .98349        .13355         .0000        .12134E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 6.35129
  norm       = 6.41162
  Prefactor  = 0.000100001
  Prefactor  = 0.000101375
  Prefactor  = 0.00010003
  Prefactor  = 0.000100993
  norm       = 2.17677
  Prefactor  = 0.0001
  Prefactor  = 0.000100582
  norm       = 1.26242
  Prefactor  = 4.75188
  Prefactor  = 0.000101105
  Prefactor  = 0.000100034
  Prefactor  = 0.000100003
  norm       = 15.4195
  norm       = 0.0001
  Prefactor  = 2.55552
  Prefactor  = 101.364
  Prefactor  = 37.7907
  Prefactor  = 0.000100085
  Normalizat = 0.706715
  Prefactor  = 0.983492
 **********
 **   18 **HESSE 
 **********

 FCN=   5929.791     FROM HESSE     STATUS=OK           364 CALLS     2887 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.3513        3.2811        .94014E-04   -1.5204    
   3  norm          6.4116        4.3577        .12790E-03   -1.5201    
   4  Prefactor     .10000E-03    5.6543        .17843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10138E-03    19.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10003E-03    4.6628        .16234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10099E-03    21.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1768        1.1863        .59230E-04   -1.5413    
   9  Prefactor     .10000E-03    3.6481        .14336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10058E-03    67.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2624        12.198        .20013E-02   -1.5483    
  12  Prefactor     4.7519        10.608        .18420E-03   -1.5272    
  13  Prefactor     .10111E-03    125.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10003E-03    4.6444        .16192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.419        15.763        .10201E-03   -1.4922    
  17  norm          .10000E-03    6.4810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.5555        5.2940        .23462E-03   -1.5388    
  19  Prefactor     101.36        51.637        .39933E-04   -1.3691    
  20  Prefactor     37.791        24.998        .65199E-04   -1.4478    
  21  Prefactor     .10008E-03    14.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .70671        .23559        .32862E-03   -1.0363    
  23  Prefactor     .98349        .15422        .19577E-03   -.93282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72476e-07
Minuit parameter uncertainties:
  1  0.000130077
  2  3.2812
  3  4.35795
  4  0.000118077
  5  0.0103206
  6  0.000753537
  7  0.00927217
  8  1.18627
  9  6.40774e-06
  10  0.0125458
  11  7.85021
  12  10.6124
  13  0.0236121
  14  0.000799662
  15  0.000370033
  16  15.7677
  17  6.70048e-05
  18  5.29502
  19  51.6602
  20  25.0054
  21  0.0022337
  22  0.235931
  23  0.154285
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  3.779e+01  2.501e+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.835e-01  1.543e-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.067e-01  2.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.57
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 7.54e-08 +/- 4.99e-08
Energy Flux (Fixed Index): 2.28e-05 +/- 1.51e-05

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

Saving results to:
/scratch/kocevski/152011/likelihoodResults_400291201_400550401_4FGL_J2349.4+0534_daily_bin621.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) = 5927.68611652
delta logL = 2.10486509419

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5927.35914563
delta logL = 2.4318359913

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.821       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5829       1.0000          .0000       10.000    
     3 'Normalizat'    .73665       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96643       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=   5927.359     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      223 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.833        42.227        .33888E-05   -.82388E-04
   2  Index         1.5829        .33203        .12552E-04    .15346E-04
   3  Normalizat    .73670        .18932       -.82721E-07   -.11555E-03
   4  Prefactor     .96640        .13284       -.55491E-06   -.13627E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.8328
  Index      = 1.58287
  Normalizat = 0.736702
  Prefactor  = 0.9664
 **********
 **   18 **HESSE 
 **********

 FCN=   5927.359     FROM HESSE     STATUS=OK            31 CALLS      254 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.833        41.655        .24020E-03   -1.4035    
   2  Index         1.5829        .32790        .57471E-02   -.75244    
   3  Normalizat    .73670        .21763        .32189E-03   -1.0246    
   4  Prefactor     .96640        .15274        .19706E-03   -.93858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91891e-10
Minuit parameter uncertainties:
  1  41.6727
  2  0.328341
  3  0.217889
  4  0.152812
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152011': 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) = 5927.35914554
delta logL = 2.43183607903

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  6.983e+01  4.167e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  1.583e+00  3.283e-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.664e-01  1.528e-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.367e-01  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.45
Ra Dec: 357.356 5.579
Photon Index (Free Index): 1.58 +/- 0.33
Photon Flux (Free Index): 4.50e-08 +/- 3.28e-08
Energy Flux (Free Index): 1.08e-04 +/- 8.74e-05

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/152011/cmap_HighResolution_400291201_400550401_4FGL_J2349.4+0534_daily_bin621.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.38e-02', comment='SUCCESS', photon_flux='7.54e-08', energy_flux2='1.08e-04', photon_flux_error='4.99e-08', dlogl='2.43e+00', energy_flux='2.28e-05', photon_flux2='4.50e-08', job_status='DONE', time_completed='2021-09-30 06:58:57.136485', photon_index_error2='0.33', photon_index2='1.58', ts='3.57', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.77e-07', energy_flux_error2='8.74e-05', EG='0.71', time_epoch_completed='1633010337.14', return_code='0', job_id='152011', GAL2='0.97', EG2='0.74', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='3.28e-08', ts2='8.45', photon_index='2.47' WHERE bin_id='621' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:58:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 152011: <4FGL_J2349.4+0534_daily_bin621> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin621 357.356 5.579 400291201 400550401 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 :                                   608.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            812 sec.

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

