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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1122
RA = 357.356, Dec = 5.579
tmin = 530150401, tmax = 530409601
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='153709', job_status='RUN', time_executed='2021-09-30 06:51:03.958451', time_epoch_executed='1633009863.96' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1122'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153709

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153709/ft1_4FGL_J2349.4+0534_daily_bin1122.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153709/ft2_4FGL_J2349.4+0534_daily_bin1122.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153709/ft1_4FGL_J2349.4+0534_daily_bin1122.fits outfile=/scratch/kocevski/153709/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1122.fits ra=357.356 dec=5.579 rad=12.0 tmin=530150401.0 tmax=530409601.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.55
user 3.34
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/153709/ft2_4FGL_J2349.4+0534_daily_bin1122.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/153709/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1122.fits evtable="EVENTS" outfile="/scratch/kocevski/153709/ft1_filtered_4FGL_J2349.4+0534_daily_bin1122.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.50
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153709/ft1_filtered_4FGL_J2349.4+0534_daily_bin1122.fits evtable="EVENTS" scfile=/scratch/kocevski/153709/ft2_4FGL_J2349.4+0534_daily_bin1122.fits sctable="SC_DATA" expcube=/scratch/kocevski/153709/ltcube_530150401_530409601_4FGL_J2349.4+0534_daily_bin1122.fits outfile=/scratch/kocevski/153709/expmap_530150401_530409601_4FGL_J2349.4+0534_daily_bin1122.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/153709/ltcube_530150401_530409601_4FGL_J2349.4+0534_daily_bin1122.fits
.....................!
real 190.93
user 185.21
sys 5.25

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153709/ft1_filtered_4FGL_J2349.4+0534_daily_bin1122.fits scfile=/scratch/kocevski/153709/ft2_4FGL_J2349.4+0534_daily_bin1122.fits outfile=/scratch/kocevski/153709/cmap_HighResolution_530150401_530409601_4FGL_J2349.4+0534_daily_bin1122.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6181.96343082

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .57955       1.0000         .10000E-03   10000.    
     3 'norm      '    7.2674       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.9433       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .36961       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .38643       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.7879       1.0000         .10000E-03   10000.    
    17 'norm      '    4.7006       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10832E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.768       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.244       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .83043       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93585       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=   6181.963     FROM MIGRAD    STATUS=CONVERGED    955 CALLS     3741 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.9575        .18142E-02** at limit **
   2  norm          .58052        1.8759        .18272E-03    .43306E-04
   3  norm          7.2701        4.6445        .13049E-03   -.76409E-04
   4  Prefactor     .10000E-03    19.878        .36285E-03** at limit **
   5  Prefactor     .10000E-03    9.7663        .18142E-02** at limit **
   6  Prefactor     .10000E-03    15.724        .18142E-02** at limit **
   7  Prefactor     .10000E-03    6.9514        .18142E-02** at limit **
   8  norm          .10000E-03    .35073        .81284E-03** at limit **
   9  Prefactor     .10000E-03    3.5905        .14527E-02** at limit **
  10  Prefactor     .10000E-03    17.239        .18142E-02** at limit **
  11  norm          4.9342        8.0797        .18089E-03   -.40286E-04
  12  Prefactor     .44311        31.808        .29122E-02    .27689E-03
  13  Prefactor     .10000E-03    61.232        .18142E-02** at limit **
  14  Prefactor     .65430        12.806        .58765E-01    .61802E-03
  15  Prefactor     .10000E-03    46.758        .36285E-03** at limit **
  16  norm          7.7889        15.012        .14369E-03   -.15587E-04
  17  norm          4.1821        20.336        .18561E-03   -.20826E-04
  18  Prefactor     .10000E-03    6.2662        .18856E-02** at limit **
  19  Prefactor     27.747        35.830        .76027E-04   -.22879E-04
  20  Prefactor     .10000E-03    12.259        .18142E-02** at limit **
  21  Prefactor     13.249        13.261        .11007E-03   -.25409E-04
  22  Normalizat    .82970        .21503        .28812E-03   -.13049E-03
  23  Prefactor     .93617        .14467        .19131E-03   -.20583E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.580515
  norm       = 7.27008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.93419
  Prefactor  = 0.443112
  Prefactor  = 0.0001
  Prefactor  = 0.654296
  Prefactor  = 0.0001
  norm       = 7.78888
  norm       = 4.18205
  Prefactor  = 0.0001
  Prefactor  = 27.7465
  Prefactor  = 0.0001
  Prefactor  = 13.2492
  Normalizat = 0.829701
  Prefactor  = 0.93617
 **********
 **   18 **HESSE 
 **********

 FCN=   6181.963     FROM HESSE     STATUS=NOT POSDEF   352 CALLS     4093 TOTAL
                     EDM=   .77E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8820        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .58052        1.8905        .73086E-05   -1.5556    
   3  norm          7.2701        4.6527        .52194E-05   -1.5169    
   4  Prefactor     .10000E-03    19.659        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.6583        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.556        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.8750        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .34701        .16257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.5509        .29053E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.048        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.9342        7.8625        .72357E-05   -1.5264    
  12  Prefactor     .44311        30.307        .11649E-03   -1.5575    
  13  Prefactor     .10000E-03    60.555        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .65430        6208.1        .36033E-02   -1.5546    
  15  Prefactor     .10000E-03    46.243        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.7889        14.932        .57475E-05   -1.5150    
  17  norm          4.1821        1705.9        .74242E-05   -1.5299    
  18  Prefactor     .10000E-03    6.2282        .37712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.747        35.791        .30411E-05   -1.4654    
  20  Prefactor     .10000E-03    12.125        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.249        13.212        .44027E-05   -1.4980    
  22  Normalizat    .82970        .27811        .11525E-04   -.98976    
  23  Prefactor     .93617        .15815        .38261E-04   -.94888    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.67112e-06
Minuit parameter uncertainties:
  1  2.46668e-05
  2  1.89065
  3  4.65296
  4  6.77616e-05
  5  7.489e-06
  6  1.62353e-05
  7  2.1796e-05
  8  6.70527e-07
  9  1.06642e-05
  10  3.79322e-05
  11  7.86418
  12  7.3323
  13  8.45895e-05
  14  84.4446
  15  8.17249e-05
  16  14.9393
  17  174.183
  18  7.51156e-06
  19  35.8185
  20  4.2428e-06
  21  13.2151
  22  0.278589
  23  0.158223
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6181.96326456

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  4.243e-06  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:  9.362e-01  1.582e-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:  8.297e-01  2.786e-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: 8.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153709/likelihoodResults_530150401_530409601_4FGL_J2349.4+0534_daily_bin1122.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) = 6181.96365331
delta logL = -0.000388745866985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6181.96326454
delta logL = 1.68811311596e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4830       1.0000          .0000       10.000    
     3 'Normalizat'    .82966       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93620       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=   6181.963     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      210 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1084.6        .90712E-02** at limit **
   2  Index         2.5000        7.6883        .50000       -.12781E-04
   3  Normalizat    .82970        .49220E-01    .65130E-01    .40422E-04
   4  Prefactor     .93617        .34680E-01    .45465E-01    .28380E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.49998
  Normalizat = 0.829701
  Prefactor  = 0.93617
 **********
 **   18 **HESSE 
 **********

 FCN=   6181.963     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      243 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1851.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5000        5.0385        .50000       -.52360    
   3  Normalizat    .82970        .76081E-01    .28812E-03   -.98976    
   4  Prefactor     .93617        .53745E-01    .19131E-03   -.94888    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.86627e-08
Minuit parameter uncertainties:
  1  0.00061016
  2  54.4913
  3  0.0760911
  4  0.0537479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153709': 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) = 6181.96326447
delta logL = 9.4207280199e-08

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  6.102e-04  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.500e+00  5.449e+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:  9.362e-01  5.375e-02  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:  8.297e-01  7.609e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/153709/cmap_HighResolution_530150401_530409601_4FGL_J2349.4+0534_daily_bin1122.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.31e-03', job_status='DONE', photon_flux_upper_limit='8.14e-08', time_completed='2021-09-30 07:03:04.060768', job_id='153709', GAL2='0.94', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1633010584.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='102', GAL='0.94', dlogl='9.42e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1122' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:03:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 153709: <4FGL_J2349.4+0534_daily_bin1122> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1122 357.356 5.579 530150401 530409601 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 :                                   712.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            733 sec.

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

