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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin199
RA = 357.356, Dec = 5.579
tmin = 290908801, tmax = 291168001
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='149217', job_status='RUN', time_executed='2021-09-30 06:38:50.499746', time_epoch_executed='1633009130.5' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='199'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149217

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149217/ft1_4FGL_J2349.4+0534_daily_bin199.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149217/ft2_4FGL_J2349.4+0534_daily_bin199.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149217/ft1_4FGL_J2349.4+0534_daily_bin199.fits outfile=/scratch/kocevski/149217/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin199.fits ra=357.356 dec=5.579 rad=12.0 tmin=290908801.0 tmax=291168001.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.45
user 3.20
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149217/ft1_filtered_4FGL_J2349.4+0534_daily_bin199.fits" evtable="EVENTS" scfile=/scratch/kocevski/149217/ft2_4FGL_J2349.4+0534_daily_bin199.fits sctable="SC_DATA" outfile=/scratch/kocevski/149217/ltcube_290908801_291168001_4FGL_J2349.4+0534_daily_bin199.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/149217/ft2_4FGL_J2349.4+0534_daily_bin199.fits
.....................!
real 11.94
user 11.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149217/ft1_filtered_4FGL_J2349.4+0534_daily_bin199.fits evtable="EVENTS" scfile=/scratch/kocevski/149217/ft2_4FGL_J2349.4+0534_daily_bin199.fits sctable="SC_DATA" expcube=/scratch/kocevski/149217/ltcube_290908801_291168001_4FGL_J2349.4+0534_daily_bin199.fits outfile=/scratch/kocevski/149217/expmap_290908801_291168001_4FGL_J2349.4+0534_daily_bin199.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/149217/ltcube_290908801_291168001_4FGL_J2349.4+0534_daily_bin199.fits
.....................!
real 191.74
user 186.05
sys 4.97

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/149217/ft1_filtered_4FGL_J2349.4+0534_daily_bin199.fits scfile=/scratch/kocevski/149217/ft2_4FGL_J2349.4+0534_daily_bin199.fits outfile=/scratch/kocevski/149217/cmap_290908801_291168001_4FGL_J2349.4+0534_daily_bin199.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149217/ft1_filtered_4FGL_J2349.4+0534_daily_bin199.fits scfile=/scratch/kocevski/149217/ft2_4FGL_J2349.4+0534_daily_bin199.fits outfile=/scratch/kocevski/149217/cmap_HighResolution_290908801_291168001_4FGL_J2349.4+0534_daily_bin199.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/149217/ft1_filtered_4FGL_J2349.4+0534_daily_bin199.fits evtable="EVENTS" scfile=/scratch/kocevski/149217/ft2_4FGL_J2349.4+0534_daily_bin199.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149217/Model_4FGL_J2349.4+0534_daily_bin199.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/149217/ft1_filtered_4FGL_J2349.4+0534_daily_bin199.fits.....................!
real 85.61
user 84.18
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    110.86       1.0000         .10000E-03   10000.    
     2 'norm      '    .20653E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.6568       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .74289       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7995       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .83004       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.9753       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9859       1.0000         .10000E-03   10000.    
    19 'Prefactor '    36.339       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10889E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.995       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .74327       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.4689       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=   8543.288     FROM MIGRAD    STATUS=CONVERGED    527 CALLS     2576 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     110.83        25.182        .14435E-05    .13124E-02
   2  norm          .10000E-03    1.4595       -.15207E-05** at limit **
   3  norm          .10000E-03    4.8466        .66440E-07** at limit **
   4  Prefactor     .10000E-03    3.2366       -.43585E-07** at limit **
   5  Prefactor     8.6586        59.788       -.12507E-05   -.86028E-05
   6  Prefactor     .10000E-03    5.5768        .56682E-06** at limit **
   7  Prefactor     .10000E-03    3.5438        .13606E-07** at limit **
   8  norm          .74284        .72644        .42133E-07    .22588E-03
   9  Prefactor     2.8070        10.933        .57078E-05   -.25699E-03
  10  Prefactor     .10000E-03    19.489        .23364E-06** at limit **
  11  norm          .82723        7.9156       -.20117E-05   -.46245E-04
  12  Prefactor     .10000E-03    7.7454        .16122E-06** at limit **
  13  Prefactor     .10000E-03    72.518        .10154E-06** at limit **
  14  Prefactor     .10000E-03    4.9718       -.29287E-06** at limit **
  15  Prefactor     .10000E-03    5.8675       -.38356E-06** at limit **
  16  norm          6.9755        7.9151       -.49895E-08   -.82968E-05
  17  norm          .10000E-03    15.796       -.16167E-06** at limit **
  18  Prefactor     2.9851        3.9861        .32567E-06    .27190E-03
  19  Prefactor     36.334        40.779        .42007E-06    .33657E-04
  20  Prefactor     .10000E-03    44.542       -.48680E-06** at limit **
  21  Prefactor     16.995        19.309        .17765E-06    .17417E-03
  22  Normalizat    .74319        .21728        .40322E-06    .37306E-03
  23  Prefactor     1.4689        .14554       -.64870E-06    .46446E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 110.828
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.65858
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.74284
  Prefactor  = 2.80696
  Prefactor  = 0.0001
  norm       = 0.827227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.97554
  norm       = 0.0001
  Prefactor  = 2.98509
  Prefactor  = 36.3337
  Prefactor  = 0.0001
  Prefactor  = 16.9946
  Normalizat = 0.743188
  Prefactor  = 1.46893
 **********
 **   18 **HESSE 
 **********

 FCN=   8543.288     FROM HESSE     STATUS=OK           372 CALLS     2948 TOTAL
                     EDM=   .73E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     110.83        26.171        .38204E-04   -1.3599    
   2  norm          .10000E-03    4.6019        .18609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.0425        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.2508        .16240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.6586        59.845        .13624E-03   -1.5119    
   6  Prefactor     .10000E-03    5.5101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.5450        .16993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .74284        .69707        .74941E-03   -1.5536    
   9  Prefactor     2.8070        12.520        .12157E-02   -1.5373    
  10  Prefactor     .10000E-03    19.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .82723        21.045        .42035E-02   -1.5526    
  12  Prefactor     .10000E-03    7.8456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    72.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.9626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.8286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.9755        7.9154        .15190E-03   -1.5180    
  17  norm          .10000E-03    15.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.9851        3.9558        .19822E-03   -1.5362    
  19  Prefactor     36.334        40.736        .66482E-04   -1.4502    
  20  Prefactor     .10000E-03    44.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.995        19.297        .97152E-04   -1.4883    
  22  Normalizat    .74319        .24417        .38830E-03   -1.0221    
  23  Prefactor     1.4689        .16630        .20868E-03   -.78414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.30751e-08
Minuit parameter uncertainties:
  1  26.1734
  2  0.000123784
  3  1.41178e-06
  4  4.10944e-06
  5  45.592
  6  2.70755e-05
  7  2.76537e-06
  8  0.697074
  9  11.8601
  10  2.08291e-05
  11  8.34765
  12  1.39635e-05
  13  6.72319e-06
  14  1.31334e-05
  15  2.23006e-05
  16  7.91662
  17  9.61218e-06
  18  3.9561
  19  40.7674
  20  2.68082e-05
  21  19.3045
  22  0.244532
  23  0.16636
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  2.681e-05  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.469e+00  1.664e-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.432e-01  2.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/149217/likelihoodResults_290908801_291168001_4FGL_J2349.4+0534_daily_bin199.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8543.28808668
delta logL = -0.000105838606032

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8543.28797986
delta logL = 9.83834979706e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8543.287     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      323 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24665        3.0499        .79800E-01    .81176E-04
   2  Index         3.5087        .73731        .50000       -.13106E-05
   3  Normalizat    .74021        .58554E-02    .87831E-01   -.64499E-03
   4  Prefactor     1.4697        .42759E-02    .47199E-01   -.13536E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.246654
  Index      = 3.50873
  Normalizat = 0.740208
  Prefactor  = 1.46973
 **********
 **   18 **HESSE 
 **********

 FCN=   8543.287     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      356 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24665        7146.5        .27005E-02   -1.5609    
   2  Index         3.5087        6.7502        .11992E-01   -.30286    
   3  Normalizat    .74021        .19990        .38903E-03   -1.0233    
   4  Prefactor     1.4697        .10244        .20863E-03   -.78391    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.29882e-08
Minuit parameter uncertainties:
  1  71.4464
  2  96.285
  3  0.200101
  4  0.102449
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149217': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8543.28706146
delta logL = 0.000919384234294

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  2.467e-01  7.145e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  3.509e+00  9.629e+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:  1.470e+00  1.024e-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.402e-01  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 357.356 5.579

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/149217/cmap_HighResolution_290908801_291168001_4FGL_J2349.4+0534_daily_bin199.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.63e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-30 06:51:55.423961', job_id='149217', GAL2='1.47', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1633009915.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.47', dlogl='9.19e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='199' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:51:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 149217: <4FGL_J2349.4+0534_daily_bin199> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin199 357.356 5.579 290908801 291168001 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 :                                   782.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            983 sec.

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

