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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin128
RA = 357.356, Dec = 5.579
tmin = 272505601, tmax = 272764801
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='149082', job_status='RUN', time_executed='2021-09-30 06:37:41.967383', time_epoch_executed='1633009061.97' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='128'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149082

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149082/ft1_4FGL_J2349.4+0534_daily_bin128.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149082/ft2_4FGL_J2349.4+0534_daily_bin128.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149082/ft1_4FGL_J2349.4+0534_daily_bin128.fits outfile=/scratch/kocevski/149082/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin128.fits ra=357.356 dec=5.579 rad=12.0 tmin=272505601.0 tmax=272764801.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 1.76
user 1.55
sys 0.17

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149082/ft1_filtered_4FGL_J2349.4+0534_daily_bin128.fits evtable="EVENTS" scfile=/scratch/kocevski/149082/ft2_4FGL_J2349.4+0534_daily_bin128.fits sctable="SC_DATA" expcube=/scratch/kocevski/149082/ltcube_272505601_272764801_4FGL_J2349.4+0534_daily_bin128.fits outfile=/scratch/kocevski/149082/expmap_272505601_272764801_4FGL_J2349.4+0534_daily_bin128.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/149082/ltcube_272505601_272764801_4FGL_J2349.4+0534_daily_bin128.fits
.....................!
real 190.02
user 185.19
sys 4.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/149082/ft1_filtered_4FGL_J2349.4+0534_daily_bin128.fits scfile=/scratch/kocevski/149082/ft2_4FGL_J2349.4+0534_daily_bin128.fits outfile=/scratch/kocevski/149082/cmap_272505601_272764801_4FGL_J2349.4+0534_daily_bin128.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149082/ft1_filtered_4FGL_J2349.4+0534_daily_bin128.fits scfile=/scratch/kocevski/149082/ft2_4FGL_J2349.4+0534_daily_bin128.fits outfile=/scratch/kocevski/149082/cmap_HighResolution_272505601_272764801_4FGL_J2349.4+0534_daily_bin128.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/149082/ft1_filtered_4FGL_J2349.4+0534_daily_bin128.fits evtable="EVENTS" scfile=/scratch/kocevski/149082/ft2_4FGL_J2349.4+0534_daily_bin128.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149082/Model_4FGL_J2349.4+0534_daily_bin128.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/149082/ft1_filtered_4FGL_J2349.4+0534_daily_bin128.fits.....................!
real 88.29
user 86.89
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .64509       1.0000         .10000E-03   10000.    
     3 'norm      '    3.0154       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21003       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .76460       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1335       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    26.092       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.6508       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2221       1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.345       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3269       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1226       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83064       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=   8724.707     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2561 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    7.4871        .90712E-02** at limit **
   2  norm          .64607        1.7464        .11850E-01    .20701E-02
   3  norm          3.0158        3.3419        .58429E-02    .65248E-03
   4  Prefactor     .10000E-03    5.0237        .90712E-02** at limit **
   5  Prefactor     .10001E-03    7.3171        .90712E-02** at limit **
   6  Prefactor     .32631        5.0461        .10023        .58474E-03
   7  Prefactor     .10000E-03    4.1928        .90712E-02** at limit **
   8  norm          .76480        .68511        .12307E-01    .19840E-02
   9  Prefactor     4.1339        7.3156        .49566E-02    .37778E-03
  10  Prefactor     .10000E-03    17.495        .90712E-02** at limit **
  11  norm          26.085        9.0555        .19606E-02   -.59860E-03
  12  Prefactor     .10000E-03    3.5914        .90712E-02** at limit **
  13  Prefactor     .10000E-03    91.967        .90712E-02** at limit **
  14  Prefactor     .10000E-03    5.3311        .90712E-02** at limit **
  15  Prefactor     .10000E-03    11.598        .90712E-02** at limit **
  16  norm          6.6535        12.951        .38900E-02    .86337E-03
  17  norm          .10000E-03    7.4156        .90712E-02** at limit **
  18  Prefactor     1.2266        3.4917        .10195E-01    .14519E-02
  19  Prefactor     31.347        32.024        .17892E-02   -.95136E-03
  20  Prefactor     3.3351        26.736        .55480E-02    .47913E-03
  21  Prefactor     .10000E-03    9.7372        .90712E-02** at limit **
  22  Normalizat    1.1225        .16641        .60321E-01    .22879E-04
  23  Prefactor     .83063        .10960        .44115E-01   -.51310E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100016
  norm       = 0.646066
  norm       = 3.0158
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 0.326308
  Prefactor  = 0.0001
  norm       = 0.764805
  Prefactor  = 4.1339
  Prefactor  = 0.000100001
  norm       = 26.0848
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 6.6535
  norm       = 0.0001
  Prefactor  = 1.22656
  Prefactor  = 31.3469
  Prefactor  = 3.33506
  Prefactor  = 0.0001
  Normalizat = 1.12246
  Prefactor  = 0.830627
 **********
 **   18 **HESSE 
 **********

 FCN=   8724.707     FROM HESSE     STATUS=OK           370 CALLS     2931 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    7.5061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .64607        1.7204        .19111E-03   -1.5547    
   3  norm          3.0158        3.3323        .17292E-03   -1.5361    
   4  Prefactor     .10000E-03    5.0507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    7.3205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .32631        49.456        .40570E-02   -1.5594    
   7  Prefactor     .10000E-03    4.2011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .76480        .65028        .70108E-03   -1.5533    
   9  Prefactor     4.1339        7.2800        .19827E-03   -1.5301    
  10  Prefactor     .10000E-03    17.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          26.085        9.0114        .78424E-04   -1.4686    
  12  Prefactor     .10000E-03    3.6378        .17249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    91.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.3440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.6535        12.952        .15560E-03   -1.5192    
  17  norm          .10000E-03    7.4202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.2266        3.4718        .27048E-03   -1.5486    
  19  Prefactor     31.347        32.020        .71567E-04   -1.4588    
  20  Prefactor     3.3351        26.595        .22192E-03   -1.5343    
  21  Prefactor     .10000E-03    9.8146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1225        .19344        .26678E-03   -.89034    
  23  Prefactor     .83063        .12869        .21171E-03   -.98609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36409e-08
Minuit parameter uncertainties:
  1  0.000698914
  2  1.72053
  3  3.33246
  4  5.01952e-05
  5  0.00063315
  6  8.03992
  7  5.91151e-05
  8  0.650289
  9  7.28158
  10  0.000308901
  11  9.01191
  12  5.75948e-05
  13  1.06084e-06
  14  5.38886e-05
  15  0.000374311
  16  12.957
  17  0.000116225
  18  3.47234
  19  32.0371
  20  18.847
  21  4.37903e-06
  22  0.193565
  23  0.128735
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  3.335e+00  1.885e+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.306e-01  1.287e-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  1.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 9.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149082/likelihoodResults_272505601_272764801_4FGL_J2349.4+0534_daily_bin128.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) = 8724.57948961
delta logL = 0.12709247875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8724.57376918
delta logL = 0.13281290936

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0240       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2418       1.0000          .0000       10.000    
     3 'Normalizat'    1.1071       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83467       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=   8724.574     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      251 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0292        143.38        .58342E-02    .68623E-03
   2  Index         3.2416        3.2228        .21605        .11135E-03
   3  Normalizat    1.1069        .32812E-01    .60685E-01    .46007E-04
   4  Prefactor     .83479        .22883E-01    .44167E-01    .46287E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.02925
  Index      = 3.24159
  Normalizat = 1.1069
  Prefactor  = 0.834793
 **********
 **   18 **HESSE 
 **********

 FCN=   8724.574     FROM HESSE     STATUS=OK            33 CALLS      284 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0292        28.304        .23337E-03   -1.5360    
   2  Index         3.2416        2.6745        .92824E-02   -.35937    
   3  Normalizat    1.1069        .18471        .26840E-03   -.89531    
   4  Prefactor     .83479        .12727        .21121E-03   -.98458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32945e-10
Minuit parameter uncertainties:
  1  18.5303
  2  2.84682
  3  0.184816
  4  0.12732
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149082': 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) = 8724.57376851
delta logL = 0.1328135779

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  3.029e+00  1.853e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  3.242e+00  2.847e+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.348e-01  1.273e-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.107e+00  1.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/149082/cmap_HighResolution_272505601_272764801_4FGL_J2349.4+0534_daily_bin128.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.02e-03', job_status='DONE', photon_flux_upper_limit='9.04e-08', time_completed='2021-09-30 06:50:35.370899', job_id='149082', GAL2='0.83', fit_tolerance='1e-08', EG2='1.11', EG='1.12', time_epoch_completed='1633009835.37', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.33e-01', ts2='0.30', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='128' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:50:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 149082: <4FGL_J2349.4+0534_daily_bin128> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin128 357.356 5.579 272505601 272764801 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 :                                   773.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            915 sec.

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

