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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1592
RA = 357.356, Dec = 5.579
tmin = 651974401, tmax = 652233601
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='155440', job_status='RUN', time_executed='2021-09-30 06:59:59.441935', time_epoch_executed='1633010399.44' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1592'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/155440

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/155440/ft1_4FGL_J2349.4+0534_daily_bin1592.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/155440/ft2_4FGL_J2349.4+0534_daily_bin1592.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/155440/ft1_4FGL_J2349.4+0534_daily_bin1592.fits outfile=/scratch/kocevski/155440/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1592.fits ra=357.356 dec=5.579 rad=12.0 tmin=651974401.0 tmax=652233601.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.50
user 3.27
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/155440/ft2_4FGL_J2349.4+0534_daily_bin1592.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/155440/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1592.fits evtable="EVENTS" outfile="/scratch/kocevski/155440/ft1_filtered_4FGL_J2349.4+0534_daily_bin1592.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.52
user 0.34
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/155440/ft1_filtered_4FGL_J2349.4+0534_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/155440/ft2_4FGL_J2349.4+0534_daily_bin1592.fits sctable="SC_DATA" expcube=/scratch/kocevski/155440/ltcube_651974401_652233601_4FGL_J2349.4+0534_daily_bin1592.fits outfile=/scratch/kocevski/155440/expmap_651974401_652233601_4FGL_J2349.4+0534_daily_bin1592.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/155440/ltcube_651974401_652233601_4FGL_J2349.4+0534_daily_bin1592.fits
.....................!
real 190.22
user 185.00
sys 4.77

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/155440/ft1_filtered_4FGL_J2349.4+0534_daily_bin1592.fits scfile=/scratch/kocevski/155440/ft2_4FGL_J2349.4+0534_daily_bin1592.fits outfile=/scratch/kocevski/155440/cmap_651974401_652233601_4FGL_J2349.4+0534_daily_bin1592.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/155440/ft1_filtered_4FGL_J2349.4+0534_daily_bin1592.fits scfile=/scratch/kocevski/155440/ft2_4FGL_J2349.4+0534_daily_bin1592.fits outfile=/scratch/kocevski/155440/cmap_HighResolution_651974401_652233601_4FGL_J2349.4+0534_daily_bin1592.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.966       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3552       1.0000         .10000E-03   10000.    
     3 'norm      '    2.5963       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9731       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10837E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.022       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    120.06       1.0000         .10000E-03   10000.    
    11 'norm      '    9.9266       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .44165E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10650E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20189E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    13.663       1.0000         .10000E-03   10000.    
    17 'norm      '    .10417E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.066       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.2796       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .71923       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1012       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=   6419.625     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2609 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.982        30.051       -.14806E-05   -.21005E-04
   2  norm          1.3534        4.7996        .11011E-05    .25458E-03
   3  norm          2.5960        2.5995        .13436E-06    .38965E-04
   4  Prefactor     4.9732        10.809        .22410E-06    .36468E-04
   5  Prefactor     .10001E-03    79.822       -.55589E-05** at limit **
   6  Prefactor     .10000E-03    3.1600       -.68913E-08** at limit **
   7  Prefactor     12.019        22.001       -.17339E-06   -.11589E-04
   8  norm          .10000E-03    .20838        .71477E-08** at limit **
   9  Prefactor     .10000E-03    18.934       -.14157E-05** at limit **
  10  Prefactor     119.99        71.491       -.14328E-05    .13618E-04
  11  norm          9.9401        9.0068        .17390E-05    .11132E-02
  12  Prefactor     .10007E-03    8.3837        .34250E-05** at limit **
  13  Prefactor     .10000E-03    60.230        .19819E-05** at limit **
  14  Prefactor     .10030E-03    128.37       -.25721E-04** at limit **
  15  Prefactor     .10000E-03    11.690        .28587E-06** at limit **
  16  norm          13.667        15.223        .63706E-06    .13606E-03
  17  norm          .10000E-03    11.828       -.32298E-06** at limit **
  18  Prefactor     .10000E-03    2.4442        .50996E-07** at limit **
  19  Prefactor     .10000E-03    63.650        .19889E-05** at limit **
  20  Prefactor     32.075        30.558        .95366E-06    .23993E-04
  21  Prefactor     2.2791        13.655       -.11568E-05    .42036E-05
  22  Normalizat    .71928        .21987       -.40873E-05    .21545E-03
  23  Prefactor     1.1013        .13853        .36492E-06   -.27852E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.9816
  norm       = 1.35341
  norm       = 2.59598
  Prefactor  = 4.9732
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 12.0194
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 119.992
  norm       = 9.94015
  Prefactor  = 0.00010007
  Prefactor  = 0.000100002
  Prefactor  = 0.000100296
  Prefactor  = 0.0001
  norm       = 13.6668
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 32.0754
  Prefactor  = 2.27912
  Normalizat = 0.719276
  Prefactor  = 1.10125
 **********
 **   18 **HESSE 
 **********

 FCN=   6419.625     FROM HESSE     STATUS=OK           380 CALLS     2989 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.982        28.856        .78615E-04   -1.4688    
   2  norm          1.3534        4.6651        .20859E-03   -1.5475    
   3  norm          2.5960        2.6013        .12503E-03   -1.5386    
   4  Prefactor     4.9732        10.799        .18034E-03   -1.5262    
   5  Prefactor     .10001E-03    80.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.1607        .13910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.019        22.005        .11554E-03   -1.5014    
   8  norm          .10000E-03    .20840        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     119.99        72.770        .18364E-03   -1.3513    
  11  norm          9.9401        8.9145        .12718E-03   -1.5077    
  12  Prefactor     .10007E-03    16.798        .36396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    60.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10030E-03    15.546        .66638E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          13.667        15.244        .10836E-03   -1.4968    
  17  norm          .10000E-03    11.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.4689        .12200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    64.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     32.075        30.629        .70760E-04   -1.4575    
  21  Prefactor     2.2791        13.595        .27195E-03   -1.5406    
  22  Normalizat    .71928        .24086        .33682E-03   -1.0314    
  23  Prefactor     1.1013        .15447        .19441E-03   -.89427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.07585e-09
Minuit parameter uncertainties:
  1  28.8711
  2  4.66632
  3  2.60146
  4  10.8028
  5  0.00131068
  6  3.07719e-06
  7  22.0195
  8  1.49917e-07
  9  0.000115474
  10  72.824
  11  8.91566
  12  0.00217705
  13  0.000719382
  14  0.00429046
  15  6.41894e-05
  16  15.2483
  17  3.1727e-05
  18  2.58063e-05
  19  0.000455497
  20  30.6442
  21  11.1364
  22  0.241212
  23  0.15453
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  3.208e+01  3.064e+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:  1.101e+00  1.545e-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:  7.193e-01  2.412e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.36
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 6.40e-08 +/- 6.11e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.84e-05

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

Saving results to:
/scratch/kocevski/155440/likelihoodResults_651974401_652233601_4FGL_J2349.4+0534_daily_bin1592.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) = 6418.02795316
delta logL = 1.59693571197

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6417.98813336
delta logL = 1.63675551525

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5372       1.0000         .10000E-03   10000.    
     2 'Index     '    4.5645       1.0000          .0000       10.000    
     3 'Normalizat'    .60040       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1603       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=   6417.988     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      274 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5359        11.463        .86000E-02    .76026E-03
   2  Index         4.5651        2.3049        .88471E-01    .20715E-03
   3  Normalizat    .60027        .63366E-01    .82626E-01    .26390E-04
   4  Prefactor     1.1604        .44251E-01    .35645E-01   -.12620E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.53588
  Index      = 4.5651
  Normalizat = 0.600266
  Prefactor  = 1.1604
 **********
 **   18 **HESSE 
 **********

 FCN=   6417.988     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      307 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5359        20.022        .49827E-04   -1.5460    
   2  Index         4.5651        3.2592        .35367E-02   -.87090E-01
   3  Normalizat    .60027        .20323        .36595E-03   -1.0797    
   4  Prefactor     1.1604        .14190        .18990E-03   -.87559    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.47531e-10
Minuit parameter uncertainties:
  1  11.095
  2  3.55289
  3  0.203484
  4  0.141942
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/155440': 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) = 6417.98813285
delta logL = 1.63675602202

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.536e+00  1.109e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  4.565e+00  3.553e+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.160e+00  1.419e-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:  6.003e-01  2.035e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.07
Ra Dec: 357.356 5.579
Photon Index (Free Index): 4.57 +/- 3.55
Photon Flux (Free Index): 1.59e-07 +/- 8.41e-08
Energy Flux (Free Index): 2.20e-05 +/- 1.47e-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/155440/cmap_HighResolution_651974401_652233601_4FGL_J2349.4+0534_daily_bin1592.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', comment='SUCCESS', photon_flux='6.40e-08', energy_flux2='2.20e-05', photon_flux_error='6.11e-08', dlogl='1.64e+00', energy_flux='1.93e-05', photon_flux2='1.59e-07', job_status='DONE', time_completed='2021-09-30 07:11:03.825512', photon_index_error2='3.55', photon_index2='4.57', ts='1.36', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.80e-07', energy_flux_error2='1.47e-05', EG='0.72', time_epoch_completed='1633011063.83', return_code='0', job_id='155440', GAL2='1.16', EG2='0.60', return_code2='102', energy_flux_error='1.84e-05', photon_flux_error2='8.41e-08', ts2='5.07', photon_index='2.47' WHERE bin_id='1592' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:11:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 155440: <4FGL_J2349.4+0534_daily_bin1592> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin1592> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 06:55:59 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:56:01 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:56:01 2021
Terminated at Thu Sep 30 07:11:04 2021
Results reported at Thu Sep 30 07:11:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1592 357.356 5.579 651974401 652233601 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 :                                   653.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             226.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            905 sec.

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

