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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1152
RA = 357.356, Dec = 5.579
tmin = 537926401, tmax = 538185601
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='153751', job_status='RUN', time_executed='2021-09-30 06:53:34.665513', time_epoch_executed='1633010014.67' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1152'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153751

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153751/ft1_4FGL_J2349.4+0534_daily_bin1152.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153751/ft2_4FGL_J2349.4+0534_daily_bin1152.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153751/ft1_4FGL_J2349.4+0534_daily_bin1152.fits outfile=/scratch/kocevski/153751/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1152.fits ra=357.356 dec=5.579 rad=12.0 tmin=537926401.0 tmax=538185601.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 6.47
user 6.15
sys 0.30

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153751/ft1_filtered_4FGL_J2349.4+0534_daily_bin1152.fits evtable="EVENTS" scfile=/scratch/kocevski/153751/ft2_4FGL_J2349.4+0534_daily_bin1152.fits sctable="SC_DATA" expcube=/scratch/kocevski/153751/ltcube_537926401_538185601_4FGL_J2349.4+0534_daily_bin1152.fits outfile=/scratch/kocevski/153751/expmap_537926401_538185601_4FGL_J2349.4+0534_daily_bin1152.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/153751/ltcube_537926401_538185601_4FGL_J2349.4+0534_daily_bin1152.fits
.....................!
real 194.43
user 188.43
sys 5.62

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/153751/ft1_filtered_4FGL_J2349.4+0534_daily_bin1152.fits scfile=/scratch/kocevski/153751/ft2_4FGL_J2349.4+0534_daily_bin1152.fits outfile=/scratch/kocevski/153751/cmap_537926401_538185601_4FGL_J2349.4+0534_daily_bin1152.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=357.356 yref=5.579 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153751/ft1_filtered_4FGL_J2349.4+0534_daily_bin1152.fits scfile=/scratch/kocevski/153751/ft2_4FGL_J2349.4+0534_daily_bin1152.fits outfile=/scratch/kocevski/153751/cmap_HighResolution_537926401_538185601_4FGL_J2349.4+0534_daily_bin1152.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.59
user 0.36
sys 0.21

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .43724       1.0000         .10000E-03   10000.    
     3 'norm      '    6.6598       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .75427E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.463       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.538       1.0000         .10000E-03   10000.    
    11 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.8616       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.610       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4384       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .56600       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5730.554     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2542 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0664       -.21966E-08** at limit **
   2  norm          .43691        1.8743        .56039E-06   -.25840E-03
   3  norm          6.6603        4.0155        .28264E-07   -.36903E-04
   4  Prefactor     .10000E-03    8.2742        .12891E-06** at limit **
   5  Prefactor     .10000E-03    17.534       -.43922E-08** at limit **
   6  Prefactor     .10000E-03    5.3404        .46523E-07** at limit **
   7  Prefactor     .10000E-03    4.2967       -.79405E-07** at limit **
   8  norm          .90198E-02    .49115        .34596E-07   -.43144E-04
   9  Prefactor     13.465        10.112       -.13946E-06   -.99602E-05
  10  Prefactor     20.502        48.675       -.70758E-06   -.84726E-04
  11  norm          .10000E-03    4.1596       -.10581E-06** at limit **
  12  Prefactor     6.8634        6.8988        .18574E-05    .98897E-05
  13  Prefactor     .10000E-03    85.459       -.22251E-08** at limit **
  14  Prefactor     .10000E-03    18.228       -.81907E-06** at limit **
  15  Prefactor     .10000E-03    9.6888       -.92859E-07** at limit **
  16  norm          .10000E-03    4.6672        .13058E-07** at limit **
  17  norm          .10000E-03    23.939       -.31398E-06** at limit **
  18  Prefactor     .10000E-03    3.7632       -.62903E-07** at limit **
  19  Prefactor     .10000E-03    13.078       -.31058E-07** at limit **
  20  Prefactor     32.613        22.198        .53709E-07   -.79827E-05
  21  Prefactor     .10000E-03    5.8844       -.26166E-07** at limit **
  22  Normalizat    1.4383        .20164       -.37642E-06   -.84471E-04
  23  Prefactor     .56608        .12890       -.48708E-06   -.74270E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.436908
  norm       = 6.66027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.00901978
  Prefactor  = 13.4654
  Prefactor  = 20.5016
  norm       = 0.0001
  Prefactor  = 6.86342
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.6125
  Prefactor  = 0.0001
  Normalizat = 1.4383
  Prefactor  = 0.566079
 **********
 **   18 **HESSE 
 **********

 FCN=   5730.554     FROM HESSE     STATUS=OK           370 CALLS     2912 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.0804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .43691        2.9173        .18841E-02   -1.5576    
   3  norm          6.6603        4.0150        .11422E-03   -1.5192    
   4  Prefactor     .10000E-03    8.3604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.3444        .17085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.2972        .15325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .90198E-02    .48033        .18261E-01   -1.5689    
   9  Prefactor     13.465        10.113        .10916E-03   -1.4974    
  10  Prefactor     20.502        48.591        .88380E-04   -1.4802    
  11  norm          .10000E-03    4.1780        .15079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.8634        6.9465        .76583E-03   -1.5184    
  13  Prefactor     .10000E-03    85.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.704        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.6993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.6693        .15972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    24.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.8333        .14316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     32.613        22.203        .70169E-04   -1.4565    
  21  Prefactor     .10000E-03    5.8907        .17932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4383        .23162        .24013E-03   -.79527    
  23  Prefactor     .56608        .14865        .24044E-03   -1.0903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9449e-08
Minuit parameter uncertainties:
  1  3.30011e-06
  2  2.25787
  3  4.01514
  4  9.71949e-06
  5  5.63128e-06
  6  7.17984e-06
  7  6.84168e-06
  8  0.130912
  9  10.1145
  10  48.6854
  11  1.08766e-05
  12  6.94728
  13  3.92569e-05
  14  1.3935e-05
  15  2.6355e-05
  16  5.75943e-07
  17  5.1716e-05
  18  8.43131e-06
  19  3.37585e-05
  20  22.2088
  21  1.21125e-05
  22  0.23179
  23  0.148752
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  3.261e+01  2.221e+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:  5.661e-01  1.488e-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.438e+00  2.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.74
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 6.51e-08 +/- 4.43e-08
Energy Flux (Fixed Index): 1.96e-05 +/- 1.34e-05

TS (Fixed Index): 3.74
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 1.61e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.25e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153751/likelihoodResults_537926401_538185601_4FGL_J2349.4+0534_daily_bin1152.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) = 5730.35129484
delta logL = 0.202703680508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5730.35086149
delta logL = 0.203137036536

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.616       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1598       1.0000          .0000       10.000    
     3 'Normalizat'    1.4515       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55996       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=   5730.351     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      297 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.605        30.981        .61409E-04    .21105E-04
   2  Index         2.1596        .46583        .65430E-02    .19333E-03
   3  Normalizat    1.4514        .22418        .23923E-03    .39529E-04
   4  Prefactor     .56006        .14817        .24158E-03   -.17742E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.6054
  Index      = 2.15964
  Normalizat = 1.45142
  Prefactor  = 0.560064
 **********
 **   18 **HESSE 
 **********

 FCN=   5730.351     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.605        30.683        .24563E-05   -1.4402    
   2  Index         2.1596        .46119        .13086E-02   -.60416    
   3  Normalizat    1.4514        .22431        .47845E-04   -.79153    
   4  Prefactor     .56006        .14827        .96631E-05   -1.0929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53003e-11
Minuit parameter uncertainties:
  1  30.6941
  2  0.462157
  3  0.224459
  4  0.148374
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153751': 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) = 5730.35086101
delta logL = 0.203137511456

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  4.261e+01  3.069e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.160e+00  4.622e-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:  5.601e-01  1.484e-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.451e+00  2.245e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.16
Ra Dec: 357.356 5.579
Photon Index (Free Index): 2.16 +/- 0.46
Photon Flux (Free Index): 5.30e-08 +/- 4.25e-08
Energy Flux (Free Index): 2.57e-05 +/- 2.15e-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/153751/cmap_HighResolution_537926401_538185601_4FGL_J2349.4+0534_daily_bin1152.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', comment='SUCCESS', photon_flux='6.51e-08', energy_flux2='2.57e-05', photon_flux_error='4.43e-08', dlogl='2.03e-01', energy_flux='1.96e-05', photon_flux2='5.30e-08', job_status='DONE', time_completed='2021-09-30 07:07:12.873949', photon_index_error2='0.46', photon_index2='2.16', ts='3.74', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', photon_flux_upper_limit='1.61e-07', energy_flux_error2='2.15e-05', EG='1.44', time_epoch_completed='1633010832.87', return_code='0', job_id='153751', GAL2='0.56', EG2='1.45', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='4.25e-08', ts2='4.16', photon_index='2.47' WHERE bin_id='1152' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:07:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 153751: <4FGL_J2349.4+0534_daily_bin1152> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1152 357.356 5.579 537926401 538185601 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 :                                   627.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            979 sec.

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

