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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin185
RA = 357.356, Dec = 5.579
tmin = 287280001, tmax = 287539201
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='149194', job_status='RUN', time_executed='2021-09-30 06:36:08.320712', time_epoch_executed='1633008968.32' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='185'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149194

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149194/ft1_4FGL_J2349.4+0534_daily_bin185.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149194/ft2_4FGL_J2349.4+0534_daily_bin185.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149194/ft1_4FGL_J2349.4+0534_daily_bin185.fits outfile=/scratch/kocevski/149194/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin185.fits ra=357.356 dec=5.579 rad=12.0 tmin=287280001.0 tmax=287539201.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.61
user 3.34
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/149194/ft2_4FGL_J2349.4+0534_daily_bin185.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/149194/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin185.fits evtable="EVENTS" outfile="/scratch/kocevski/149194/ft1_filtered_4FGL_J2349.4+0534_daily_bin185.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/149194/ft1_filtered_4FGL_J2349.4+0534_daily_bin185.fits" evtable="EVENTS" scfile=/scratch/kocevski/149194/ft2_4FGL_J2349.4+0534_daily_bin185.fits sctable="SC_DATA" outfile=/scratch/kocevski/149194/ltcube_287280001_287539201_4FGL_J2349.4+0534_daily_bin185.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/149194/ft2_4FGL_J2349.4+0534_daily_bin185.fits
.....................!
real 11.77
user 11.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149194/ft1_filtered_4FGL_J2349.4+0534_daily_bin185.fits evtable="EVENTS" scfile=/scratch/kocevski/149194/ft2_4FGL_J2349.4+0534_daily_bin185.fits sctable="SC_DATA" expcube=/scratch/kocevski/149194/ltcube_287280001_287539201_4FGL_J2349.4+0534_daily_bin185.fits outfile=/scratch/kocevski/149194/expmap_287280001_287539201_4FGL_J2349.4+0534_daily_bin185.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/149194/ltcube_287280001_287539201_4FGL_J2349.4+0534_daily_bin185.fits
.....................!
real 190.68
user 185.61
sys 4.60

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/149194/ft1_filtered_4FGL_J2349.4+0534_daily_bin185.fits scfile=/scratch/kocevski/149194/ft2_4FGL_J2349.4+0534_daily_bin185.fits outfile=/scratch/kocevski/149194/cmap_287280001_287539201_4FGL_J2349.4+0534_daily_bin185.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149194/ft1_filtered_4FGL_J2349.4+0534_daily_bin185.fits scfile=/scratch/kocevski/149194/ft2_4FGL_J2349.4+0534_daily_bin185.fits outfile=/scratch/kocevski/149194/cmap_HighResolution_287280001_287539201_4FGL_J2349.4+0534_daily_bin185.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.56
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.5620       1.0000         .10000E-03   10000.    
     3 'norm      '    2.7244       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.465       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.138       1.0000         .10000E-03   10000.    
     8 'norm      '    .38100       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .96716       1.0000         .10000E-03   10000.    
    11 'norm      '    7.6766       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    74.031       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    17.043       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8795       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.7578       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .30929E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3403       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81516       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=   6577.441     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2564 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6559       -.42035E-09** at limit **
   2  norm          3.5614        2.8466        .10140E-06    .31499E-04
   3  norm          2.7238        4.7188        .30811E-06    .32158E-04
   4  Prefactor     .10000E-03    5.1055       -.34256E-07** at limit **
   5  Prefactor     18.473        39.013        .62249E-07    .88403E-04
   6  Prefactor     .10000E-03    14.115       -.25601E-07** at limit **
   7  Prefactor     36.126        24.375        .35443E-06    .17561E-04
   8  norm          .37959        .79296        .33636E-06    .15825E-02
   9  Prefactor     .10000E-03    2.3735        .18332E-07** at limit **
  10  Prefactor     .96066        143.46       -.16952E-04    .14666E-03
  11  norm          7.6898        8.4307        .11303E-05    .32983E-03
  12  Prefactor     .10000E-03    7.1569        .92493E-07** at limit **
  13  Prefactor     74.069        141.91       -.51279E-05    .82652E-04
  14  Prefactor     .10000E-03    4.6238        .27015E-06** at limit **
  15  Prefactor     .10000E-03    11.254        .99068E-07** at limit **
  16  norm          17.046        16.133        .10280E-06    .10498E-04
  17  norm          .10000E-03    7.4694        .16457E-06** at limit **
  18  Prefactor     3.8801        4.6991        .24436E-05    .92447E-03
  19  Prefactor     .10000E-03    32.118        .24869E-06** at limit **
  20  Prefactor     6.7702        25.404        .41102E-06    .86077E-04
  21  Prefactor     .10001E-03    7.7600        .85824E-06** at limit **
  22  Normalizat    1.3402        .21642       -.13426E-05    .27756E-03
  23  Prefactor     .81523        .13954        .32011E-06    .28670E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.5614
  norm       = 2.72382
  Prefactor  = 0.0001
  Prefactor  = 18.473
  Prefactor  = 0.0001
  Prefactor  = 36.1265
  norm       = 0.379589
  Prefactor  = 0.0001
  Prefactor  = 0.960665
  norm       = 7.6898
  Prefactor  = 0.0001
  Prefactor  = 74.0692
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.046
  norm       = 0.0001
  Prefactor  = 3.8801
  Prefactor  = 0.0001
  Prefactor  = 6.77021
  Prefactor  = 0.000100014
  Normalizat = 1.34023
  Prefactor  = 0.815233
 **********
 **   18 **HESSE 
 **********

 FCN=   6577.441     FROM HESSE     STATUS=OK           378 CALLS     2942 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.5614        2.8514        .11635E-03   -1.5331    
   3  norm          2.7238        4.7104        .22115E-03   -1.5378    
   4  Prefactor     .10000E-03    5.1205        .17895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.473        39.120        .93206E-04   -1.4848    
   6  Prefactor     .10000E-03    14.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     36.126        24.387        .66666E-04   -1.4505    
   8  norm          .37959        .75926        .10021E-02   -1.5585    
   9  Prefactor     .10000E-03    2.3745        .12201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .96066        76.697        .17438       -1.5512    
  11  norm          7.6898        8.4401        .72367E-03   -1.5153    
  12  Prefactor     .10000E-03    7.2841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     74.069        143.33        .23332E-03   -1.3985    
  14  Prefactor     .10000E-03    4.6470        .17041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          17.046        16.149        .97016E-04   -1.4882    
  17  norm          .10000E-03    7.4808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.8801        4.7566        .90381E-03   -1.5314    
  19  Prefactor     .10000E-03    32.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.7702        25.506        .15435E-03   -1.5188    
  21  Prefactor     .10001E-03    74.867        .43136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3402        .25539        .27423E-03   -.82373    
  23  Prefactor     .81523        .16462        .22894E-03   -.99169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84138e-09
Minuit parameter uncertainties:
  1  4.2467e-06
  2  2.85147
  3  4.71107
  4  1.60791e-06
  5  39.1748
  6  5.05274e-06
  7  24.3935
  8  0.759275
  9  1.62331e-06
  10  17.1893
  11  8.44141
  12  3.83548e-05
  13  144.005
  14  3.35848e-05
  15  2.31997e-05
  16  16.1529
  17  4.09532e-06
  18  4.75706
  19  9.6461e-05
  20  25.5467
  21  0.00203204
  22  0.255633
  23  0.164719
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  6.770e+00  2.555e+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.152e-01  1.647e-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.340e+00  2.556e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/149194/likelihoodResults_287280001_287539201_4FGL_J2349.4+0534_daily_bin185.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) = 6576.93547005
delta logL = 0.505648509977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6576.91906013
delta logL = 0.522058429701

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3554       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0314       1.0000          .0000       10.000    
     3 'Normalizat'    1.2606       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84603       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=   6576.919     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      336 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3709        52.120        .66765E-02    .78482E-03
   2  Index         4.0271        3.4506        .11322        .17962E-03
   3  Normalizat    1.2605        .61627E-01    .63639E-01    .70756E-06
   4  Prefactor     .84609        .40732E-01    .44313E-01    .10829E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.3709
  Index      = 4.02707
  Normalizat = 1.26049
  Prefactor  = 0.846093
 **********
 **   18 **HESSE 
 **********

 FCN=   6576.919     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      369 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3709        104.21        .11520E-03   -1.5400    
   2  Index         4.0271        7.0133        .62145E-02   -.19584    
   3  Normalizat    1.2605        .23557        .28150E-03   -.84754    
   4  Prefactor     .84609        .15675        .22509E-03   -.98051    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.31998e-09
Minuit parameter uncertainties:
  1  31.4953
  2  6.68069
  3  0.235771
  4  0.156828
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149194': 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) = 6576.91905283
delta logL = 0.522065728724

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  2.371e+00  3.150e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  4.027e+00  6.681e+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:  8.461e-01  1.568e-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.260e+00  2.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 357.356 5.579
Photon Index (Free Index): 4.03 +/- 6.68
Photon Flux (Free Index): 8.35e-08 +/- 8.38e-08
Energy Flux (Free Index): 1.24e-05 +/- 1.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/149194/cmap_HighResolution_287280001_287539201_4FGL_J2349.4+0534_daily_bin185.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.96e-03', comment='SUCCESS', energy_flux2='1.24e-05', dlogl='5.22e-01', photon_flux2='8.35e-08', job_status='DONE', time_completed='2021-09-30 06:47:23.729094', photon_index_error2='6.68', photon_index2='4.03', ts='0.08', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='1.91e-05', EG='1.34', time_epoch_completed='1633009643.73', return_code='0', job_id='149194', GAL2='0.85', EG2='1.26', return_code2='102', photon_flux_error2='8.38e-08', ts2='1.23', photon_index='2.47' WHERE bin_id='185' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:47:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 149194: <4FGL_J2349.4+0534_daily_bin185> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin185 357.356 5.579 287280001 287539201 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 :                                   670.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            713 sec.

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

