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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin588
RA = 357.356, Dec = 5.579
tmin = 391737601, tmax = 391996801
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='151962', job_status='RUN', time_executed='2021-09-30 06:48:46.172445', time_epoch_executed='1633009726.17' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/151962

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/151962/ft1_4FGL_J2349.4+0534_daily_bin588.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/151962/ft2_4FGL_J2349.4+0534_daily_bin588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/151962/ft1_4FGL_J2349.4+0534_daily_bin588.fits outfile=/scratch/kocevski/151962/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin588.fits ra=357.356 dec=5.579 rad=12.0 tmin=391737601.0 tmax=391996801.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.29
user 3.09
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/151962/ft1_filtered_4FGL_J2349.4+0534_daily_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/151962/ft2_4FGL_J2349.4+0534_daily_bin588.fits sctable="SC_DATA" expcube=/scratch/kocevski/151962/ltcube_391737601_391996801_4FGL_J2349.4+0534_daily_bin588.fits outfile=/scratch/kocevski/151962/expmap_391737601_391996801_4FGL_J2349.4+0534_daily_bin588.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/151962/ltcube_391737601_391996801_4FGL_J2349.4+0534_daily_bin588.fits
.....................!
real 190.82
user 185.84
sys 4.66

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/151962/ft1_filtered_4FGL_J2349.4+0534_daily_bin588.fits scfile=/scratch/kocevski/151962/ft2_4FGL_J2349.4+0534_daily_bin588.fits outfile=/scratch/kocevski/151962/cmap_391737601_391996801_4FGL_J2349.4+0534_daily_bin588.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.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .89163E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    11.063       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8206       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.772       1.0000         .10000E-03   10000.    
     8 'norm      '    3.8794       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.401       1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.892       1.0000         .10000E-03   10000.    
    11 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12070E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.350       1.0000         .10000E-03   10000.    
    16 'norm      '    5.3390       1.0000         .10000E-03   10000.    
    17 'norm      '    39.979       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.641       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.3836       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6130       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .55872       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=   7354.441     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2575 TOTAL
                     EDM=   .86E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.8124        .43845E-07** at limit **
   2  norm          .10000E-03    1.0361        .13868E-06** at limit **
   3  norm          11.061        5.7048        .50726E-07   -.33278E-04
   4  Prefactor     1.8080        4.0323        .37977E-07   -.43270E-03
   5  Prefactor     .10000E-03    15.498       -.21864E-05** at limit **
   6  Prefactor     .10000E-03    10.209       -.56302E-07** at limit **
   7  Prefactor     10.769        20.900        .18709E-05    .89633E-06
   8  norm          3.8790        1.1160       -.45543E-10   -.18837E-04
   9  Prefactor     27.412        15.724       -.69952E-06    .15801E-03
  10  Prefactor     30.859        41.036       -.19870E-05   -.29458E-05
  11  norm          .10000E-03    5.0585       -.46999E-06** at limit **
  12  Prefactor     .10000E-03    2.9752       -.11635E-06** at limit **
  13  Prefactor     .10000E-03    50.836       -.56782E-06** at limit **
  14  Prefactor     .10000E-03    5.7379       -.21843E-06** at limit **
  15  Prefactor     20.343        31.576        .68500E-05    .48445E-04
  16  norm          5.3394        7.8943       -.75078E-06   -.43686E-05
  17  norm          39.971        20.112        .29687E-05    .16543E-04
  18  Prefactor     .10000E-03    1.9581       -.38898E-07** at limit **
  19  Prefactor     10.511        35.305       -.14408E-05   -.72175E-05
  20  Prefactor     .10000E-03    15.424        .20617E-05** at limit **
  21  Prefactor     4.3777        11.393        .38061E-06   -.19068E-03
  22  Normalizat    1.6137        .19878       -.86125E-06    .26341E-04
  23  Prefactor     .55830        .12783       -.33922E-06   -.28725E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.0609
  Prefactor  = 1.808
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7694
  norm       = 3.87904
  Prefactor  = 27.4123
  Prefactor  = 30.8593
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.343
  norm       = 5.33938
  norm       = 39.9712
  Prefactor  = 0.0001
  Prefactor  = 10.5106
  Prefactor  = 0.0001
  Prefactor  = 4.37769
  Normalizat = 1.61375
  Prefactor  = 0.558298
 **********
 **   18 **HESSE 
 **********

 FCN=   7354.441     FROM HESSE     STATUS=OK           376 CALLS     2951 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.8663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    32.944        .16521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.061        5.8326        .12045E-03   -1.5043    
   4  Prefactor     1.8080        20.279        .15474E-02   -1.5439    
   5  Prefactor     .10000E-03    15.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.769        20.908        .12207E-03   -1.5052    
   8  norm          3.8790        1.1166        .47098E-04   -1.5314    
   9  Prefactor     27.412        14.824        .76532E-04   -1.4660    
  10  Prefactor     30.859        41.020        .72089E-04   -1.4596    
  11  norm          .10000E-03    26.298        .34148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.9976        .14430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    50.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.7796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.343        31.509        .88787E-04   -1.4806    
  16  norm          5.3394        7.8867        .17393E-03   -1.5246    
  17  norm          39.971        20.067        .63394E-04   -1.4443    
  18  Prefactor     .10000E-03    1.9928        .11708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.511        35.450        .12282E-03   -1.5059    
  20  Prefactor     .10000E-03    15.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.3777        11.835        .96183E-03   -1.5289    
  22  Normalizat    1.6137        .23427        .25298E-03   -.74630    
  23  Prefactor     .55830        .14923        .26839E-03   -1.0937    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70196e-09
Minuit parameter uncertainties:
  1  7.05632e-06
  2  0.000183168
  3  5.83289
  4  12.115
  5  5.61277e-08
  6  8.58578e-06
  7  20.9227
  8  1.11657
  9  14.8259
  10  41.0571
  11  0.000248237
  12  1.98921e-06
  13  1.58324e-05
  14  4.6227e-05
  15  31.5351
  16  7.88826
  17  20.0705
  18  1.22337e-05
  19  35.5214
  20  1.6674e-05
  21  11.8418
  22  0.234434
  23  0.149336
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  1.667e-05  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.583e-01  1.493e-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.614e+00  2.344e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 8.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/151962/likelihoodResults_391737601_391996801_4FGL_J2349.4+0534_daily_bin588.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) = 7354.44095121
delta logL = -0.000308003406644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7354.44064339
delta logL = -1.85564204003e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3577       1.0000          .0000       10.000    
     3 'Normalizat'    1.6138       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55829       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=   7354.441     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      238 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2166.8        .90712E-02** at limit **
   2  Index         2.3641        5.0753        .50000       -.37240E-05
   3  Normalizat    1.6137        .80904E-01    .57214E-01    .46845E-05
   4  Prefactor     .55830        .53691E-01    .60663E-01    .35926E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.36411
  Normalizat = 1.61375
  Prefactor  = 0.558299
 **********
 **   18 **HESSE 
 **********

 FCN=   7354.441     FROM HESSE     STATUS=OK            31 CALLS      269 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    60.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3641        5.0535        .50000       -.55528    
   3  Normalizat    1.6137        .21954        .25298E-03   -.74630    
   4  Prefactor     .55830        .14561        .26839E-03   -1.0937    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05847e-11
Minuit parameter uncertainties:
  1  1.26103e-05
  2  8.52165
  3  0.219669
  4  0.145703
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/151962': 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) = 7354.44064329
delta logL = -8.49104253575e-08

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  1.261e-05  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.364e+00  8.522e+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:  5.583e-01  1.457e-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.614e+00  2.197e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/151962/cmap_HighResolution_391737601_391996801_4FGL_J2349.4+0534_daily_bin588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.46e-03', job_status='DONE', photon_flux_upper_limit='8.33e-08', time_completed='2021-09-30 07:00:27.488875', job_id='151962', GAL2='0.56', fit_tolerance='1e-08', EG2='1.61', EG='1.61', time_epoch_completed='1633010427.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='-8.49e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='588' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:00:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 151962: <4FGL_J2349.4+0534_daily_bin588> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin588 357.356 5.579 391737601 391996801 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 :                                   700.08 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            907 sec.

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

