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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin945
RA = 357.356, Dec = 5.579
tmin = 484272001, tmax = 484531201
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='153456', job_status='RUN', time_executed='2021-09-30 06:54:24.494949', time_epoch_executed='1633010064.49' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153456

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153456/ft1_4FGL_J2349.4+0534_daily_bin945.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153456/ft2_4FGL_J2349.4+0534_daily_bin945.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153456/ft1_4FGL_J2349.4+0534_daily_bin945.fits outfile=/scratch/kocevski/153456/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin945.fits ra=357.356 dec=5.579 rad=12.0 tmin=484272001.0 tmax=484531201.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 5.16
user 4.92
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/153456/ft2_4FGL_J2349.4+0534_daily_bin945.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/153456/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin945.fits evtable="EVENTS" outfile="/scratch/kocevski/153456/ft1_filtered_4FGL_J2349.4+0534_daily_bin945.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/153456/ft1_filtered_4FGL_J2349.4+0534_daily_bin945.fits" evtable="EVENTS" scfile=/scratch/kocevski/153456/ft2_4FGL_J2349.4+0534_daily_bin945.fits sctable="SC_DATA" outfile=/scratch/kocevski/153456/ltcube_484272001_484531201_4FGL_J2349.4+0534_daily_bin945.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/153456/ft2_4FGL_J2349.4+0534_daily_bin945.fits
.....................!
real 12.05
user 11.25
sys 0.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153456/ft1_filtered_4FGL_J2349.4+0534_daily_bin945.fits evtable="EVENTS" scfile=/scratch/kocevski/153456/ft2_4FGL_J2349.4+0534_daily_bin945.fits sctable="SC_DATA" expcube=/scratch/kocevski/153456/ltcube_484272001_484531201_4FGL_J2349.4+0534_daily_bin945.fits outfile=/scratch/kocevski/153456/expmap_484272001_484531201_4FGL_J2349.4+0534_daily_bin945.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/153456/ltcube_484272001_484531201_4FGL_J2349.4+0534_daily_bin945.fits
.....................!
real 191.53
user 186.11
sys 5.05

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/153456/ft1_filtered_4FGL_J2349.4+0534_daily_bin945.fits scfile=/scratch/kocevski/153456/ft2_4FGL_J2349.4+0534_daily_bin945.fits outfile=/scratch/kocevski/153456/cmap_484272001_484531201_4FGL_J2349.4+0534_daily_bin945.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153456/ft1_filtered_4FGL_J2349.4+0534_daily_bin945.fits scfile=/scratch/kocevski/153456/ft2_4FGL_J2349.4+0534_daily_bin945.fits outfile=/scratch/kocevski/153456/cmap_HighResolution_484272001_484531201_4FGL_J2349.4+0534_daily_bin945.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.59
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.164       1.0000         .10000E-03   10000.    
     2 'norm      '    2.5989       1.0000         .10000E-03   10000.    
     3 'norm      '    .42977E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10633E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.578       1.0000         .10000E-03   10000.    
     8 'norm      '    .24942       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.376       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.7210       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    124.90       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4503       1.0000         .10000E-03   10000.    
    16 'norm      '    .73430       1.0000         .10000E-03   10000.    
    17 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.518       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.235       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10443E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .98149       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81438       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=   6320.391     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     1953 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.236        17.387       -.16709E-06   -.68020E-04
   2  norm          2.5959        2.5070       -.26642E-07   -.11723E-03
   3  norm          .18387E-01    13.133        .42361E-05   -.10128E-02
   4  Prefactor     .10000E-03    38.607        .11925E-05** at limit **
   5  Prefactor     .10000E-03    9.4827        .89762E-07** at limit **
   6  Prefactor     .10000E-03    3.5279        .83965E-07** at limit **
   7  Prefactor     12.570        12.672       -.88118E-07   -.16768E-04
   8  norm          .24935        .53930        .70278E-07    .10092E-03
   9  Prefactor     14.498        11.296        .14686E-07   -.32962E-04
  10  Prefactor     .10000E-03    12.411        .36723E-07** at limit **
  11  norm          4.6873        8.8978       -.35538E-07   -.68016E-04
  12  Prefactor     .10000E-03    3.7005        .36563E-06** at limit **
  13  Prefactor     125.10        120.78        .42198E-05    .82555E-04
  14  Prefactor     .10000E-03    4.3767       -.11432E-05** at limit **
  15  Prefactor     1.2925        45.231       -.20241E-05   -.27647E-04
  16  norm          .69575        42.301       -.61555E-05   -.45691E-03
  17  norm          .10000E-03    6.6380       -.45693E-06** at limit **
  18  Prefactor     .10000E-03    3.0145       -.21365E-05** at limit **
  19  Prefactor     23.422        32.744       -.94948E-06   -.22121E-04
  20  Prefactor     14.303        13.937        .13032E-06   -.12313E-05
  21  Prefactor     .10000E-03    40.938        .93229E-06** at limit **
  22  Normalizat    .98149        .18685        .33916E-06   -.24939E-03
  23  Prefactor     .81449        .12524       -.56331E-06   -.29988E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.2357
  norm       = 2.59593
  norm       = 0.0183869
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5704
  norm       = 0.249351
  Prefactor  = 14.4979
  Prefactor  = 0.0001
  norm       = 4.68725
  Prefactor  = 0.0001
  Prefactor  = 125.096
  Prefactor  = 0.0001
  Prefactor  = 1.29254
  norm       = 0.695747
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.4221
  Prefactor  = 14.3029
  Prefactor  = 0.0001
  Normalizat = 0.981487
  Prefactor  = 0.814487
 **********
 **   18 **HESSE 
 **********

 FCN=   6320.391     FROM HESSE     STATUS=OK           384 CALLS     2337 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.236        17.367        .83226E-04   -1.4744    
   2  norm          2.5959        2.4997        .11376E-03   -1.5386    
   3  norm          .18387E-01    4.2625        .41942E-01   -1.5681    
   4  Prefactor     .10000E-03    40.114        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.4909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.5321        .14584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.570        12.672        .11294E-03   -1.4999    
   8  norm          .24935        .53836        .92331E-03   -1.5608    
   9  Prefactor     14.498        11.212        .10564E-03   -1.4946    
  10  Prefactor     .10000E-03    12.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.6873        8.7856        .18519E-03   -1.5275    
  12  Prefactor     .10000E-03    3.7295        .14916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     125.10        121.51        .18008E-03   -1.3466    
  14  Prefactor     .10000E-03    4.3856        .16227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.2925        44.888        .35777E-03   -1.5481    
  16  norm          .69575        44.779        .41668E-02   -1.5541    
  17  norm          .10000E-03    6.6404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.0467        .26702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.422        32.718        .82597E-04   -1.4740    
  20  Prefactor     14.303        13.936        .10616E-03   -1.4951    
  21  Prefactor     .10000E-03    42.509        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .98149        .21321        .27362E-03   -.93653    
  23  Prefactor     .81449        .14241        .20311E-03   -.99197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.17936e-09
Minuit parameter uncertainties:
  1  17.3707
  2  2.49978
  3  0.558422
  4  5.64445e-06
  5  7.30053e-06
  6  3.68692e-06
  7  12.6743
  8  0.538368
  9  11.2138
  10  5.75904e-06
  11  8.788
  12  1.72378e-05
  13  121.757
  14  4.876e-05
  15  15.2459
  16  11.1712
  17  2.28568e-05
  18  7.33677e-05
  19  32.7433
  20  13.9396
  21  0.000169801
  22  0.213394
  23  0.142469
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.430e+01  1.394e+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:  8.145e-01  1.425e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  9.815e-01  2.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.94
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 2.86e-08 +/- 2.78e-08
Energy Flux (Fixed Index): 8.61e-06 +/- 8.39e-06

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

Saving results to:
/scratch/kocevski/153456/likelihoodResults_484272001_484531201_4FGL_J2349.4+0534_daily_bin945.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) = 6319.71822755
delta logL = 0.672961653388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6319.70868958
delta logL = 0.682499626885

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.368       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5922       1.0000          .0000       10.000    
     3 'Normalizat'    .99850       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80927       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=   6319.709     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      235 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.372        18.561        .98996E-04   -.22934E-03
   2  Index         1.5924        .66864        .10135E-01   -.79103E-05
   3  Normalizat    .99853        .20310        .27153E-03   -.50420E-03
   4  Prefactor     .80925        .13937        .20368E-03   -.32464E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.3717
  Index      = 1.5924
  Normalizat = 0.998531
  Prefactor  = 0.809253
 **********
 **   18 **HESSE 
 **********

 FCN=   6319.709     FROM HESSE     STATUS=OK            25 CALLS      260 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.372        18.888        .19799E-04   -1.4899    
   2  Index         1.5924        .68045        .40541E-03   -.74984    
   3  Normalizat    .99853        .20325        .54306E-04   -.93080    
   4  Prefactor     .80925        .13947        .40736E-04   -.99388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.76435e-10
Minuit parameter uncertainties:
  1  18.8947
  2  0.684432
  3  0.203403
  4  0.139534
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153456': 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) = 6319.70868951
delta logL = 0.682499695471

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.637e+01  1.889e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  1.592e+00  6.844e-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:  8.093e-01  1.395e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  9.985e-01  2.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.30
Ra Dec: 357.356 5.579
Photon Index (Free Index): 1.59 +/- 0.68
Photon Flux (Free Index): 1.06e-08 +/- 1.55e-08
Energy Flux (Free Index): 2.47e-05 +/- 3.91e-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/153456/cmap_HighResolution_484272001_484531201_4FGL_J2349.4+0534_daily_bin945.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.02e-03', comment='SUCCESS', photon_flux='2.86e-08', energy_flux2='2.47e-05', photon_flux_error='2.78e-08', dlogl='6.82e-01', energy_flux='8.61e-06', photon_flux2='1.06e-08', job_status='DONE', time_completed='2021-09-30 07:04:46.724331', photon_index_error2='0.68', photon_index2='1.59', ts='2.94', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='3.91e-05', EG='0.98', time_epoch_completed='1633010686.72', return_code='0', job_id='153456', GAL2='0.81', EG2='1.00', return_code2='0', energy_flux_error='8.39e-06', photon_flux_error2='1.55e-08', ts2='4.30', photon_index='2.47' WHERE bin_id='945' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:04:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 153456: <4FGL_J2349.4+0534_daily_bin945> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin945 357.356 5.579 484272001 484531201 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 :                                   617.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             229.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            856 sec.

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

