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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin315
RA = 357.356, Dec = 5.579
tmin = 320976001, tmax = 321235201
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='149412', job_status='RUN', time_executed='2021-09-30 06:38:14.244877', time_epoch_executed='1633009094.24' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149412

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149412/ft1_4FGL_J2349.4+0534_daily_bin315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149412/ft2_4FGL_J2349.4+0534_daily_bin315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149412/ft1_4FGL_J2349.4+0534_daily_bin315.fits outfile=/scratch/kocevski/149412/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin315.fits ra=357.356 dec=5.579 rad=12.0 tmin=320976001.0 tmax=321235201.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.49
user 3.28
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149412/ft1_filtered_4FGL_J2349.4+0534_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/149412/ft2_4FGL_J2349.4+0534_daily_bin315.fits sctable="SC_DATA" expcube=/scratch/kocevski/149412/ltcube_320976001_321235201_4FGL_J2349.4+0534_daily_bin315.fits outfile=/scratch/kocevski/149412/expmap_320976001_321235201_4FGL_J2349.4+0534_daily_bin315.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/149412/ltcube_320976001_321235201_4FGL_J2349.4+0534_daily_bin315.fits
.....................!
real 189.82
user 185.08
sys 4.39

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/149412/ft1_filtered_4FGL_J2349.4+0534_daily_bin315.fits scfile=/scratch/kocevski/149412/ft2_4FGL_J2349.4+0534_daily_bin315.fits outfile=/scratch/kocevski/149412/cmap_320976001_321235201_4FGL_J2349.4+0534_daily_bin315.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149412/ft1_filtered_4FGL_J2349.4+0534_daily_bin315.fits scfile=/scratch/kocevski/149412/ft2_4FGL_J2349.4+0534_daily_bin315.fits outfile=/scratch/kocevski/149412/cmap_HighResolution_320976001_321235201_4FGL_J2349.4+0534_daily_bin315.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/149412/ft1_filtered_4FGL_J2349.4+0534_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/149412/ft2_4FGL_J2349.4+0534_daily_bin315.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149412/Model_4FGL_J2349.4+0534_daily_bin315.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/149412/ft1_filtered_4FGL_J2349.4+0534_daily_bin315.fits.....................!
real 67.49
user 66.18
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.1719       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.5007       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10887E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .28256E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .96381       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.965       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.491       1.0000         .10000E-03   10000.    
    17 'norm      '    .10122E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    112.10       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .47634E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.359       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5698       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0130       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=   5893.291     FROM MIGRAD    STATUS=CONVERGED    905 CALLS     3351 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9454        .18142E-02** at limit **
   2  norm          .10000E-03    2.3853        .22603E-03** at limit **
   3  norm          3.1721        3.6174        .15096E-03    .76212E-04
   4  Prefactor     9.4964        14.665        .13002E-03    .22385E-04
   5  Prefactor     .10001E-03    133.59        .36285E-03** at limit **
   6  Prefactor     .10000E-03    79.805        .45445E-02** at limit **
   7  Prefactor     .10001E-03    188.59        .73478E-02** at limit **
   8  norm          .96356        1.1308        .92664E-03   -.35980E-03
   9  Prefactor     .10000E-03    7.6806        .18142E-02** at limit **
  10  Prefactor     .10000E-03    89.497        .18142E-02** at limit **
  11  norm          .10000E-03    4.3810        .15635E-02** at limit **
  12  Prefactor     .10000E-03    2.8323        .12580E-02** at limit **
  13  Prefactor     .10000E-03    60.050        .18142E-02** at limit **
  14  Prefactor     10.962        11.206        .12099E-03    .99038E-04
  15  Prefactor     .10000E-03    48.513        .18142E-02** at limit **
  16  norm          12.490        14.530        .11334E-03    .14143E-04
  17  norm          .10000E-03    19.619        .18142E-02** at limit **
  18  Prefactor     .10000E-03    1.2433        .83508E-03** at limit **
  19  Prefactor     112.09        65.149        .37994E-04    .45901E-04
  20  Prefactor     .10033E-03    280.35        .76011E-02** at limit **
  21  Prefactor     21.354        19.319        .86667E-04    .82641E-05
  22  Normalizat    1.5699        .28676        .28737E-03    .14093E-03
  23  Prefactor     1.0129        .19273        .24028E-03    .92216E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.17211
  Prefactor  = 9.49638
  Prefactor  = 0.000100012
  Prefactor  = 0.000100004
  Prefactor  = 0.000100005
  norm       = 0.963561
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 10.9624
  Prefactor  = 0.0001
  norm       = 12.4905
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 112.094
  Prefactor  = 0.000100334
  Prefactor  = 21.3537
  Normalizat = 1.56989
  Prefactor  = 1.0129
 **********
 **   18 **HESSE 
 **********

 FCN=   5893.291     FROM HESSE     STATUS=OK           348 CALLS     3699 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.9456        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.3854        .45207E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.1721        3.6172        .60385E-05   -1.5352    
   4  Prefactor     9.4964        14.662        .52006E-05   -1.5092    
   5  Prefactor     .10001E-03    133.59        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    81.839        .18178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    194.81        .29391E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .96356        1.1303        .37066E-04   -1.5512    
   9  Prefactor     .10000E-03    7.6818        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    89.510        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.3819        .31270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.8326        .25160E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    60.050        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.962        11.204        .48396E-05   -1.5046    
  15  Prefactor     .10000E-03    48.534        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.490        14.529        .45335E-05   -1.5001    
  17  norm          .10000E-03    19.620        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.2433        .16702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     112.09        65.115        .75988E-05   -1.3586    
  20  Prefactor     .10033E-03    292.34        .30404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     21.354        19.315        .34667E-05   -1.4783    
  22  Normalizat    1.5699        .28674        .57473E-04   -.75833    
  23  Prefactor     1.0129        .19290        .96112E-05   -.92301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47129e-09
Minuit parameter uncertainties:
  1  6.25487e-06
  2  1.34436e-05
  3  3.61749
  4  14.668
  5  0.00254957
  6  0.00119539
  7  0.0019973
  8  1.13036
  9  2.32796e-05
  10  0.000640771
  11  1.36856e-05
  12  7.51966e-06
  13  0.000806007
  14  11.206
  15  9.55311e-06
  16  14.533
  17  9.78023e-05
  18  4.61171e-06
  19  65.1566
  20  0.0198668
  21  19.3209
  22  0.287036
  23  0.193029
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.003e-04  1.987e-02  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.013e+00  1.930e-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.570e+00  2.870e-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.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149412/likelihoodResults_320976001_321235201_4FGL_J2349.4+0534_daily_bin315.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) = 5893.29141443
delta logL = -1.61959778779e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5893.29141442
delta logL = -1.61930811373e-05

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5892.728     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      252 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7177        6.2836        .13782E-04   -.13248E-02
   2  Index         4.2913        1.7575       -.11824E-03   -.18252E-03
   3  Normalizat    1.4598        .29924        .16014E-04   -.24784E-03
   4  Prefactor     1.0517        .20209       -.40674E-05   -.16081E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.71773
  Index      = 4.29128
  Normalizat = 1.45981
  Prefactor  = 1.05175
 **********
 **   18 **HESSE 
 **********

 FCN=   5892.728     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      291 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7177        31.930        .90712E-02   -1.5446    
   2  Index         4.2913        3.1723        .10505       -.14222    
   3  Normalizat    1.4598        .66190E-01    .66877E-01   -.78914    
   4  Prefactor     1.0517        .45714E-01    .42933E-01   -.91024    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.31003e-09
Minuit parameter uncertainties:
  1  14.8204
  2  3.44343
  3  0.0661936
  4  0.0457161
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149412': 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) = 5892.72844242
delta logL = 0.562955810305

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.718e+00  1.482e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  4.291e+00  3.443e+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:  1.052e+00  4.572e-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:  1.460e+00  6.619e-02  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.29 +/- 3.44
Photon Flux (Free Index): 1.02e-07 +/- 1.82e-07
Energy Flux (Free Index): 1.47e-05 +/- 3.27e-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/149412/cmap_HighResolution_320976001_321235201_4FGL_J2349.4+0534_daily_bin315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', energy_flux2='1.47e-05', dlogl='5.63e-01', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-30 06:49:51.264865', photon_index_error2='3.44', photon_index2='4.29', ts='-0.00', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='3.27e-05', EG='1.57', time_epoch_completed='1633009791.26', return_code='0', job_id='149412', GAL2='1.05', EG2='1.46', return_code2='102', photon_flux_error2='1.82e-07', ts2='1.23', photon_index='2.47' WHERE bin_id='315' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:49:51 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin315 357.356 5.579 320976001 321235201 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 :                                   695.01 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             283.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            840 sec.

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

