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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin640
RA = 357.356, Dec = 5.579
tmin = 405216001, tmax = 405475201
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='152042', job_status='RUN', time_executed='2021-09-30 06:47:53.401724', time_epoch_executed='1633009673.4' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='640'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152042

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152042/ft1_4FGL_J2349.4+0534_daily_bin640.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152042/ft2_4FGL_J2349.4+0534_daily_bin640.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152042/ft1_4FGL_J2349.4+0534_daily_bin640.fits outfile=/scratch/kocevski/152042/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin640.fits ra=357.356 dec=5.579 rad=12.0 tmin=405216001.0 tmax=405475201.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.44
user 3.17
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/152042/ft1_filtered_4FGL_J2349.4+0534_daily_bin640.fits" evtable="EVENTS" scfile=/scratch/kocevski/152042/ft2_4FGL_J2349.4+0534_daily_bin640.fits sctable="SC_DATA" outfile=/scratch/kocevski/152042/ltcube_405216001_405475201_4FGL_J2349.4+0534_daily_bin640.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/152042/ft2_4FGL_J2349.4+0534_daily_bin640.fits
.....................!
real 12.71
user 12.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152042/ft1_filtered_4FGL_J2349.4+0534_daily_bin640.fits evtable="EVENTS" scfile=/scratch/kocevski/152042/ft2_4FGL_J2349.4+0534_daily_bin640.fits sctable="SC_DATA" expcube=/scratch/kocevski/152042/ltcube_405216001_405475201_4FGL_J2349.4+0534_daily_bin640.fits outfile=/scratch/kocevski/152042/expmap_405216001_405475201_4FGL_J2349.4+0534_daily_bin640.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/152042/ltcube_405216001_405475201_4FGL_J2349.4+0534_daily_bin640.fits
.....................!
real 192.01
user 185.17
sys 5.53

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/152042/ft1_filtered_4FGL_J2349.4+0534_daily_bin640.fits scfile=/scratch/kocevski/152042/ft2_4FGL_J2349.4+0534_daily_bin640.fits outfile=/scratch/kocevski/152042/cmap_405216001_405475201_4FGL_J2349.4+0534_daily_bin640.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/152042/ft1_filtered_4FGL_J2349.4+0534_daily_bin640.fits scfile=/scratch/kocevski/152042/ft2_4FGL_J2349.4+0534_daily_bin640.fits outfile=/scratch/kocevski/152042/cmap_HighResolution_405216001_405475201_4FGL_J2349.4+0534_daily_bin640.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    1.8090       1.0000         .10000E-03   10000.    
     3 'norm      '    8.7159       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    102.26       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.997       1.0000         .10000E-03   10000.    
     8 'norm      '    .50831       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    43.430       1.0000         .10000E-03   10000.    
    11 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2267       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10768E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.6229       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.241       1.0000         .10000E-03   10000.    
    16 'norm      '    22.483       1.0000         .10000E-03   10000.    
    17 'norm      '    3.2414       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.749       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12261E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.1144       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0284       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .87076       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=   6618.441     FROM MIGRAD    STATUS=CONVERGED     87 CALLS     2169 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.5828       -.46919E-07** at limit **
   2  norm          1.8092        1.9577       -.23747E-06   -.14571E-04
   3  norm          8.7177        4.9163       -.44078E-05   -.87380E-03
   4  Prefactor     .10000E-03    11.302       -.36749E-06** at limit **
   5  Prefactor     102.26        1.0108        .39209E-07   -.16209E-03
   6  Prefactor     .10000E-03    2.5454       -.13922E-05** at limit **
   7  Prefactor     21.997        1.0026        .48373E-07    .49816E-04
   8  norm          .50904        .64832        .24080E-06   -.19678E-03
   9  Prefactor     .10000E-03    3.4402        .25020E-06** at limit **
  10  Prefactor     43.431        1.1067        .22700E-06   -.16178E-02
  11  norm          .10000E-03    2.9714       -.42770E-06** at limit **
  12  Prefactor     4.2265        1.1790       -.85918E-06    .46068E-03
  13  Prefactor     .10179E-03    167.73       -.12093E-04** at limit **
  14  Prefactor     6.5907        7.2403       -.80626E-05   -.35675E-02
  15  Prefactor     17.231        2.2250        .14014E-05   -.22199E-02
  16  norm          22.481        1.1485        .37093E-06   -.49286E-03
  17  norm          3.2810        9.6455       -.13747E-04    .17558E-02
  18  Prefactor     .10000E-03    3.9000        .57335E-06** at limit **
  19  Prefactor     29.745        1.0915       -.40081E-08   -.35832E-03
  20  Prefactor     .10000E-03    34.591        .25023E-05** at limit **
  21  Prefactor     3.1154        1.1193        .93970E-06   -.67956E-04
  22  Normalizat    1.0283        .22091        .31010E-05   -.44525E-05
  23  Prefactor     .87078        .14990        .81907E-06    .11977E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.80917
  norm       = 8.71765
  Prefactor  = 0.0001
  Prefactor  = 102.258
  Prefactor  = 0.0001
  Prefactor  = 21.9973
  norm       = 0.509041
  Prefactor  = 0.0001
  Prefactor  = 43.4311
  norm       = 0.0001
  Prefactor  = 4.22651
  Prefactor  = 0.000101792
  Prefactor  = 6.59075
  Prefactor  = 17.2315
  norm       = 22.481
  norm       = 3.28101
  Prefactor  = 0.0001
  Prefactor  = 29.7455
  Prefactor  = 0.000100002
  Prefactor  = 3.11539
  Normalizat = 1.02834
  Prefactor  = 0.870779
 **********
 **   18 **HESSE 
 **********

 FCN=   6618.441     FROM HESSE     STATUS=OK           426 CALLS     2595 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.5360        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8092        1.9798        .77664E-02   -1.5439    
   3  norm          8.7177        4.9494        .33943E-02   -1.5117    
   4  Prefactor     .10000E-03    11.066        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     102.26        51.604        .99401E-03   -1.3682    
   6  Prefactor     .10000E-03    2.5454        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.997        22.579        .21351E-02   -1.4770    
   8  norm          .50904        .76231        .17236E-01   -1.5565    
   9  Prefactor     .10000E-03    3.4311        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     43.431        63.013        .15208E-02   -1.4389    
  11  norm          .10000E-03    2.9642        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.2265        8.4664        .49000E-02   -1.5297    
  13  Prefactor     .10179E-03    179.14        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.5907        14.665        .38983E-02   -1.5194    
  15  Prefactor     17.231        19.898        .24114E-02   -1.4878    
  16  norm          22.481        18.358        .21119E-02   -1.4759    
  17  norm          3.2810        40.114        .56244E-02   -1.5346    
  18  Prefactor     .10000E-03    3.8227        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     29.745        31.417        .18364E-02   -1.4617    
  20  Prefactor     .10000E-03    33.735        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.1154        13.939        .57440E-02   -1.5355    
  22  Normalizat    1.0283        .19810        .65118E-01   -.92087    
  23  Prefactor     .87078        .13054        .44631E-01   -.97170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40557e-07
Minuit parameter uncertainties:
  1  2.67268e-06
  2  1.97985
  3  4.94963
  4  1.46495e-05
  5  51.6263
  6  1.93071e-06
  7  22.5881
  8  0.762327
  9  2.716e-06
  10  63.11
  11  1.91797e-06
  12  8.4688
  13  0.0359371
  14  14.6731
  15  19.9056
  16  18.3625
  17  22.9635
  18  1.3968e-06
  19  31.4345
  20  0.000566371
  21  13.1843
  22  0.198247
  23  0.130584
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  5.664e-04  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.708e-01  1.306e-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.028e+00  1.982e-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: 7.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/152042/likelihoodResults_405216001_405475201_4FGL_J2349.4+0534_daily_bin640.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) = 6618.44116919
delta logL = -0.00013777764616

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6618.44103165
delta logL = -2.29506440519e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5044       1.0000          .0000       10.000    
     3 'Normalizat'    1.0283       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87078       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=   6618.371     FROM MIGRAD    STATUS=CONVERGED    151 CALLS      347 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2698        16.394        .36285E-02    .95796E-03
   2  Index         1.4728        1.0420        .33512       -.57677E-04
   3  Normalizat    1.0323        .21748        .28804E-03    .10262E-05
   4  Prefactor     .86600        .15043        .21294E-03   -.16658E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.26979
  Index      = 1.47277
  Normalizat = 1.03226
  Prefactor  = 0.865996
 **********
 **   18 **HESSE 
 **********

 FCN=   6618.371     FROM HESSE     STATUS=OK            29 CALLS      376 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2698        13.582        .72569E-03   -1.5295    
   2  Index         1.4728        1.1972        .18582E-01   -.78305    
   3  Normalizat    1.0323        .21700        .11522E-04   -.91957    
   4  Prefactor     .86600        .15006        .85175E-05   -.97340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50303e-11
Minuit parameter uncertainties:
  1  13.5918
  2  1.22121
  3  0.217191
  4  0.150135
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152042': 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) = 6618.37077085
delta logL = 0.0702605672996

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  4.270e+00  1.359e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  1.473e+00  1.221e+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.660e-01  1.501e-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.032e+00  2.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/152042/cmap_HighResolution_405216001_405475201_4FGL_J2349.4+0534_daily_bin640.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.20e-03', job_status='DONE', photon_flux_upper_limit='7.99e-08', time_completed='2021-09-30 06:58:33.717099', job_id='152042', GAL2='0.87', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1633010313.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='7.03e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='640' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:58:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 152042: <4FGL_J2349.4+0534_daily_bin640> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin640> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 06:45:28 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:45:30 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:45:30 2021
Terminated at Thu Sep 30 06:58:34 2021
Results reported at Thu Sep 30 06:58:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin640 357.356 5.579 405216001 405475201 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 :                                   638.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            786 sec.

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

