/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 134 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2349.4+0534_daily_bin249
RA = 357.356, Dec = 5.579
tmin = 303868801, tmax = 304128001
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='149297', job_status='RUN', time_executed='2021-09-30 06:38:04.613177', time_epoch_executed='1633009084.61' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='249'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149297

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149297/ft1_4FGL_J2349.4+0534_daily_bin249.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149297/ft2_4FGL_J2349.4+0534_daily_bin249.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149297/ft1_4FGL_J2349.4+0534_daily_bin249.fits outfile=/scratch/kocevski/149297/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin249.fits ra=357.356 dec=5.579 rad=12.0 tmin=303868801.0 tmax=304128001.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.39
user 3.18
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/149297/ft2_4FGL_J2349.4+0534_daily_bin249.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/149297/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin249.fits evtable="EVENTS" outfile="/scratch/kocevski/149297/ft1_filtered_4FGL_J2349.4+0534_daily_bin249.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149297/ft1_filtered_4FGL_J2349.4+0534_daily_bin249.fits" evtable="EVENTS" scfile=/scratch/kocevski/149297/ft2_4FGL_J2349.4+0534_daily_bin249.fits sctable="SC_DATA" outfile=/scratch/kocevski/149297/ltcube_303868801_304128001_4FGL_J2349.4+0534_daily_bin249.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/149297/ft2_4FGL_J2349.4+0534_daily_bin249.fits
.....................!
real 12.07
user 11.73
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149297/ft1_filtered_4FGL_J2349.4+0534_daily_bin249.fits evtable="EVENTS" scfile=/scratch/kocevski/149297/ft2_4FGL_J2349.4+0534_daily_bin249.fits sctable="SC_DATA" expcube=/scratch/kocevski/149297/ltcube_303868801_304128001_4FGL_J2349.4+0534_daily_bin249.fits outfile=/scratch/kocevski/149297/expmap_303868801_304128001_4FGL_J2349.4+0534_daily_bin249.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/149297/ltcube_303868801_304128001_4FGL_J2349.4+0534_daily_bin249.fits
.....................!
real 193.59
user 187.83
sys 5.37

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/149297/ft1_filtered_4FGL_J2349.4+0534_daily_bin249.fits scfile=/scratch/kocevski/149297/ft2_4FGL_J2349.4+0534_daily_bin249.fits outfile=/scratch/kocevski/149297/cmap_303868801_304128001_4FGL_J2349.4+0534_daily_bin249.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/149297/ft1_filtered_4FGL_J2349.4+0534_daily_bin249.fits scfile=/scratch/kocevski/149297/ft2_4FGL_J2349.4+0534_daily_bin249.fits outfile=/scratch/kocevski/149297/cmap_HighResolution_303868801_304128001_4FGL_J2349.4+0534_daily_bin249.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.101       1.0000         .10000E-03   10000.    
     2 'norm      '    .45255E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.8961       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0739       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.705       1.0000         .10000E-03   10000.    
     8 'norm      '    1.5388       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.4632       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.1708       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3787       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.135       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7707       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.597       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.8842       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1325       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .78907       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=   6209.483     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2509 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.101        10.750       -.38336E-06   -.12430E-03
   2  norm          .10004E-03    1.1305        .12138E-06** at limit **
   3  norm          4.8963        3.4567        .40158E-07   -.24413E-03
   4  Prefactor     .10000E-03    10.641        .62905E-05** at limit **
   5  Prefactor     .10000E-03    15.896       -.26552E-05** at limit **
   6  Prefactor     1.0918        36.989       -.97589E-05   -.16763E-03
   7  Prefactor     22.703        22.475       -.29788E-06   -.23098E-04
   8  norm          1.5389        .89852       -.23464E-07   -.83909E-04
   9  Prefactor     .10000E-03    4.4308        .99106E-07** at limit **
  10  Prefactor     .10000E-03    11.908       -.45330E-05** at limit **
  11  norm          5.4664        9.4353       -.86238E-06   -.91427E-04
  12  Prefactor     9.1688        9.2515        .86741E-06    .15995E-03
  13  Prefactor     .10000E-03    67.328       -.18850E-05** at limit **
  14  Prefactor     1.3807        16.551        .44210E-06   -.16437E-03
  15  Prefactor     22.134        24.968       -.61486E-07    .34019E-05
  16  norm          .10000E-03    11.686       -.10252E-05** at limit **
  17  norm          .10000E-03    16.352        .31477E-05** at limit **
  18  Prefactor     1.7689        4.4612       -.32680E-06   -.36542E-03
  19  Prefactor     .10000E-03    9.5217       -.12129E-05** at limit **
  20  Prefactor     16.599        26.136        .12288E-05    .48322E-04
  21  Prefactor     2.8833        9.4868        .53334E-05   -.79656E-03
  22  Normalizat    1.1326        .20005       -.70880E-06   -.16718E-04
  23  Prefactor     .78902        .13222        .30861E-06   -.34137E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1014
  norm       = 0.000100043
  norm       = 4.89626
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 1.09182
  Prefactor  = 22.7027
  norm       = 1.53886
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 5.46643
  Prefactor  = 9.16884
  Prefactor  = 0.0001
  Prefactor  = 1.38073
  Prefactor  = 22.1345
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 1.76887
  Prefactor  = 0.0001
  Prefactor  = 16.5986
  Prefactor  = 2.88335
  Normalizat = 1.13258
  Prefactor  = 0.789016
 **********
 **   18 **HESSE 
 **********

 FCN=   6209.483     FROM HESSE     STATUS=OK           378 CALLS     2887 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.101        10.622        .12608E-03   -1.5072    
   2  norm          .10004E-03    22.926        .15685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.8963        3.4611        .59735E-03   -1.5265    
   4  Prefactor     .10000E-03    10.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.0918        40.602        .46740E-02   -1.5499    
   7  Prefactor     22.703        22.496        .84062E-04   -1.4755    
   8  norm          1.5389        .89875        .54837E-04   -1.5460    
   9  Prefactor     .10000E-03    4.4453        .16192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.4664        9.3543        .17191E-03   -1.5240    
  12  Prefactor     9.1688        9.1937        .13234E-03   -1.5102    
  13  Prefactor     .10000E-03    67.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.3807        15.278        .37081E-03   -1.5473    
  15  Prefactor     22.134        24.941        .85136E-04   -1.4767    
  16  norm          .10000E-03    11.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    16.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.7689        4.2595        .22319E-03   -1.5442    
  19  Prefactor     .10000E-03    9.5410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.599        26.147        .98312E-04   -1.4893    
  21  Prefactor     2.8833        14.676        .11966E-02   -1.5368    
  22  Normalizat    1.1326        .23357        .27175E-03   -.88713    
  23  Prefactor     .78902        .15474        .21617E-03   -1.0013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.43738e-09
Minuit parameter uncertainties:
  1  10.624
  2  0.00199004
  3  3.46129
  4  0.000319943
  5  0.000178796
  6  13.3253
  7  22.5047
  8  0.898755
  9  9.63323e-06
  10  0.00028047
  11  9.35679
  12  9.19515
  13  0.000269927
  14  9.18854
  15  24.9531
  16  6.67756e-05
  17  0.000243572
  18  4.26022
  19  6.84794e-05
  20  26.1653
  21  13.0149
  22  0.233783
  23  0.154821
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.660e+01  2.617e+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:  7.890e-01  1.548e-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:  1.133e+00  2.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/149297/likelihoodResults_303868801_304128001_4FGL_J2349.4+0534_daily_bin249.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) = 6209.46370157
delta logL = 0.0195365730096

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6209.45102564
delta logL = 0.0322124984832

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.854       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7892       1.0000          .0000       10.000    
     3 'Normalizat'    1.1216       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79456       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=   6209.451     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      250 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.844        40.592        .11635E-03   -.41457E-03
   2  Index         2.7893        1.9137        .94319E-02   -.16086E-03
   3  Normalizat    1.1216        .23113        .27290E-03    .52121E-03
   4  Prefactor     .79457        .15573        .21547E-03    .30564E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8435
  Index      = 2.78935
  Normalizat = 1.1216
  Prefactor  = 0.794574
 **********
 **   18 **HESSE 
 **********

 FCN=   6209.451     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.844        29.176        .46541E-05   -1.5020    
   2  Index         2.7893        1.3933        .37727E-03   -.45797    
   3  Normalizat    1.1216        .22886        .54580E-04   -.89061    
   4  Prefactor     .79457        .15354        .43095E-04   -.99929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23473e-09
Minuit parameter uncertainties:
  1  29.2114
  2  1.41672
  3  0.229058
  4  0.153626
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149297': 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) = 6209.45102555
delta logL = 0.0322125858675

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.184e+01  2.921e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.789e+00  1.417e+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:  7.946e-01  1.536e-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:  1.122e+00  2.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.47
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/149297/cmap_HighResolution_303868801_304128001_4FGL_J2349.4+0534_daily_bin249.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', job_status='DONE', photon_flux_upper_limit='1.42e-07', time_completed='2021-09-30 06:48:47.838131', job_id='149297', GAL2='0.79', fit_tolerance='1e-08', EG2='1.12', EG='1.13', time_epoch_completed='1633009727.84', return_code2='0', ts='0.47', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='3.22e-02', ts2='0.54', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='249' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:48:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 149297: <4FGL_J2349.4+0534_daily_bin249> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin249 357.356 5.579 303868801 304128001 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 :                                   640.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            791 sec.

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

