/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 214 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 = 7534
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2349.4+0534_daily_bin134
RA = 357.356, Dec = 5.579
tmin = 274060801, tmax = 274320001
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='149091', job_status='RUN', time_executed='2021-09-30 06:39:06.038851', time_epoch_executed='1633009146.04' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='134'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149091

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149091/ft1_4FGL_J2349.4+0534_daily_bin134.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149091/ft2_4FGL_J2349.4+0534_daily_bin134.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149091/ft1_4FGL_J2349.4+0534_daily_bin134.fits outfile=/scratch/kocevski/149091/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin134.fits ra=357.356 dec=5.579 rad=12.0 tmin=274060801.0 tmax=274320001.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.68
user 3.43
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149091/ft1_filtered_4FGL_J2349.4+0534_daily_bin134.fits" evtable="EVENTS" scfile=/scratch/kocevski/149091/ft2_4FGL_J2349.4+0534_daily_bin134.fits sctable="SC_DATA" outfile=/scratch/kocevski/149091/ltcube_274060801_274320001_4FGL_J2349.4+0534_daily_bin134.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/149091/ft2_4FGL_J2349.4+0534_daily_bin134.fits
.....................!
real 12.28
user 11.34
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149091/ft1_filtered_4FGL_J2349.4+0534_daily_bin134.fits evtable="EVENTS" scfile=/scratch/kocevski/149091/ft2_4FGL_J2349.4+0534_daily_bin134.fits sctable="SC_DATA" expcube=/scratch/kocevski/149091/ltcube_274060801_274320001_4FGL_J2349.4+0534_daily_bin134.fits outfile=/scratch/kocevski/149091/expmap_274060801_274320001_4FGL_J2349.4+0534_daily_bin134.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/149091/ltcube_274060801_274320001_4FGL_J2349.4+0534_daily_bin134.fits
.....................!
real 191.32
user 186.32
sys 4.47

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/149091/ft1_filtered_4FGL_J2349.4+0534_daily_bin134.fits scfile=/scratch/kocevski/149091/ft2_4FGL_J2349.4+0534_daily_bin134.fits outfile=/scratch/kocevski/149091/cmap_274060801_274320001_4FGL_J2349.4+0534_daily_bin134.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=357.356 yref=5.579 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149091/ft1_filtered_4FGL_J2349.4+0534_daily_bin134.fits scfile=/scratch/kocevski/149091/ft2_4FGL_J2349.4+0534_daily_bin134.fits outfile=/scratch/kocevski/149091/cmap_HighResolution_274060801_274320001_4FGL_J2349.4+0534_daily_bin134.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/149091/ft1_filtered_4FGL_J2349.4+0534_daily_bin134.fits evtable="EVENTS" scfile=/scratch/kocevski/149091/ft2_4FGL_J2349.4+0534_daily_bin134.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149091/Model_4FGL_J2349.4+0534_daily_bin134.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/149091/ft1_filtered_4FGL_J2349.4+0534_daily_bin134.fits.....................!
real 61.94
user 60.63
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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.9145       1.0000         .10000E-03   10000.    
     3 'norm      '    8.0175       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.447       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.8354       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15026E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3869       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.7200       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.6202       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12100E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    40.064       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10628E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.8752       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    44.437       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .72874       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0868       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=   5685.503     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2592 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7321       -.38776E-07** at limit **
   2  norm          2.9143        2.4790       -.64780E-07   -.15937E-03
   3  norm          8.0177        4.2607       -.74599E-07   -.30606E-04
   4  Prefactor     .10000E-03    2.7266        .52874E-08** at limit **
   5  Prefactor     29.447        27.739        .69133E-07    .89268E-05
   6  Prefactor     7.8345        11.733       -.25088E-05   -.11981E-02
   7  Prefactor     .10021E-03    14.930       -.78242E-06** at limit **
   8  norm          1.3871        1.0264        .24835E-07   -.23371E-03
   9  Prefactor     .10000E-03    7.0534        .66592E-07** at limit **
  10  Prefactor     .10000E-03    22.744       -.12214E-04** at limit **
  11  norm          7.7188        9.4750        .16002E-06   -.10236E-03
  12  Prefactor     9.6205        8.4328        .60801E-07   -.11202E-03
  13  Prefactor     .10000E-03    146.95       -.45077E-06** at limit **
  14  Prefactor     .10000E-03    19.283        .61099E-05** at limit **
  15  Prefactor     40.061        30.946       -.66017E-06    .13846E-04
  16  norm          .10000E-03    4.8676        .11170E-07** at limit **
  17  norm          .10000E-03    18.687        .93867E-05** at limit **
  18  Prefactor     9.8753        5.9787       -.11351E-05   -.45312E-03
  19  Prefactor     .10000E-03    32.955        .36217E-05** at limit **
  20  Prefactor     44.437        26.771        .75279E-07   -.18582E-04
  21  Prefactor     .10000E-03    16.652       -.56814E-05** at limit **
  22  Normalizat    .72875        .21599        .68447E-06   -.24372E-04
  23  Prefactor     1.0867        .14713        .18431E-06    .15146E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.91431
  norm       = 8.01767
  Prefactor  = 0.0001
  Prefactor  = 29.4469
  Prefactor  = 7.8345
  Prefactor  = 0.000100206
  norm       = 1.38714
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 7.71885
  Prefactor  = 9.62048
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.0605
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 9.87531
  Prefactor  = 0.0001
  Prefactor  = 44.4372
  Prefactor  = 0.000100001
  Normalizat = 0.728745
  Prefactor  = 1.0867
 **********
 **   18 **HESSE 
 **********

 FCN=   5685.503     FROM HESSE     STATUS=OK           378 CALLS     2970 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7353        .16018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.9143        2.4754        .10524E-03   -1.5367    
   3  norm          8.0177        4.2603        .11015E-03   -1.5142    
   4  Prefactor     .10000E-03    2.7284        .12159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     29.447        27.740        .73831E-04   -1.4622    
   6  Prefactor     7.8345        12.867        .71624E-03   -1.5148    
   7  Prefactor     .10021E-03    17.424        .90647E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3871        1.0294        .63199E-04   -1.5472    
   9  Prefactor     .10000E-03    7.0838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.7188        9.4254        .14432E-03   -1.5152    
  12  Prefactor     9.6205        8.4064        .12920E-03   -1.5088    
  13  Prefactor     .10000E-03    146.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     40.061        30.891        .63327E-04   -1.4441    
  16  norm          .10000E-03    4.8712        .16247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    18.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.8753        6.0281        .12752E-03   -1.5079    
  19  Prefactor     .10000E-03    32.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     44.437        26.786        .60143E-04   -1.4374    
  21  Prefactor     .10000E-03    16.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .72875        .24306        .33617E-03   -1.0277    
  23  Prefactor     1.0867        .16676        .19885E-03   -.89893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51491e-09
Minuit parameter uncertainties:
  1  7.27207e-07
  2  2.47547
  3  4.26042
  4  5.79737e-07
  5  27.7524
  6  12.8718
  7  0.00378908
  8  1.02942
  9  7.36263e-07
  10  0.000517006
  11  9.42725
  12  8.40745
  13  0.000137427
  14  0.000138555
  15  30.9035
  16  1.49129e-06
  17  0.000311146
  18  6.02848
  19  0.000187562
  20  26.7935
  21  0.00023073
  22  0.243416
  23  0.166835
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  4.444e+01  2.679e+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.087e+00  1.668e-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.287e-01  2.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.31
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 8.87e-08 +/- 5.34e-08
Energy Flux (Fixed Index): 2.68e-05 +/- 1.61e-05

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) = 5684.45631489
delta logL = 1.04692475506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5684.42463123
delta logL = 1.07860841656

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4718       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7533       1.0000          .0000       10.000    
     3 'Normalizat'    .63875       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1333       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=   5684.425     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      286 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4706        83.534        .94384E-04   -.22381E-02
   2  Index         3.7538        3.3032        .35034E-02   -.66279E-03
   3  Normalizat    .63862        .26368        .35678E-03   -.32855E-03
   4  Prefactor     1.1333        .18433        .19517E-03   -.64816E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.47062
  Index      = 3.75382
  Normalizat = 0.638624
  Prefactor  = 1.13327
 **********
 **   18 **HESSE 
 **********

 FCN=   5684.425     FROM HESSE     STATUS=OK            23 CALLS      309 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4706        15.731        .37754E-05   -1.5161    
   2  Index         3.7538        1.1326        .14014E-03   -.25189    
   3  Normalizat    .63862        .24188        .14271E-04   -1.0637    
   4  Prefactor     1.1333        .16950        .39034E-04   -.88410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3216e-09
Minuit parameter uncertainties:
  1  15.7396
  2  1.14316
  3  0.24228
  4  0.169576
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149091': 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) = 5684.42462932
delta logL = 1.07861033134

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  7.471e+00  1.574e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  3.754e+00  1.143e+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.133e+00  1.696e-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:  6.386e-01  2.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.70
Ra Dec: 357.356 5.579
Photon Index (Free Index): 3.75 +/- 1.14
Photon Flux (Free Index): 1.54e-07 +/- 7.96e-08
Energy Flux (Free Index): 2.42e-05 +/- 1.19e-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/149091/cmap_HighResolution_274060801_274320001_4FGL_J2349.4+0534_daily_bin134.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.87e-08', energy_flux2='2.42e-05', photon_flux_error='5.34e-08', dlogl='1.08e+00', energy_flux='2.68e-05', photon_flux2='1.54e-07', job_status='DONE', time_completed='2021-09-30 06:48:45.585200', photon_index_error2='1.14', photon_index2='3.75', ts='4.31', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.19e-05', EG='0.73', time_epoch_completed='1633009725.59', return_code='0', job_id='149091', GAL2='1.13', EG2='0.64', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='7.96e-08', ts2='6.70', photon_index='2.47' WHERE bin_id='134' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:48:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 149091: <4FGL_J2349.4+0534_daily_bin134> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin134> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 06:35:21 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:35:23 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:35:23 2021
Terminated at Thu Sep 30 06:48:46 2021
Results reported at Thu Sep 30 06:48:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin134 357.356 5.579 274060801 274320001 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 :                                   577.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             221.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            805 sec.

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

