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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1306
RA = 357.356, Dec = 5.579
tmin = 577843201, tmax = 578102401
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='154998', job_status='RUN', time_executed='2021-09-30 06:58:35.645846', time_epoch_executed='1633010315.65' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1306'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/154998

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/154998/ft1_4FGL_J2349.4+0534_daily_bin1306.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/154998/ft2_4FGL_J2349.4+0534_daily_bin1306.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/154998/ft1_4FGL_J2349.4+0534_daily_bin1306.fits outfile=/scratch/kocevski/154998/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1306.fits ra=357.356 dec=5.579 rad=12.0 tmin=577843201.0 tmax=578102401.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.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/154998/ft1_filtered_4FGL_J2349.4+0534_daily_bin1306.fits evtable="EVENTS" scfile=/scratch/kocevski/154998/ft2_4FGL_J2349.4+0534_daily_bin1306.fits sctable="SC_DATA" expcube=/scratch/kocevski/154998/ltcube_577843201_578102401_4FGL_J2349.4+0534_daily_bin1306.fits outfile=/scratch/kocevski/154998/expmap_577843201_578102401_4FGL_J2349.4+0534_daily_bin1306.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/154998/ltcube_577843201_578102401_4FGL_J2349.4+0534_daily_bin1306.fits
.....................!
real 191.56
user 186.59
sys 4.57

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/154998/ft1_filtered_4FGL_J2349.4+0534_daily_bin1306.fits scfile=/scratch/kocevski/154998/ft2_4FGL_J2349.4+0534_daily_bin1306.fits outfile=/scratch/kocevski/154998/cmap_577843201_578102401_4FGL_J2349.4+0534_daily_bin1306.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/154998/ft1_filtered_4FGL_J2349.4+0534_daily_bin1306.fits scfile=/scratch/kocevski/154998/ft2_4FGL_J2349.4+0534_daily_bin1306.fits outfile=/scratch/kocevski/154998/cmap_HighResolution_577843201_578102401_4FGL_J2349.4+0534_daily_bin1306.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/154998/ft1_filtered_4FGL_J2349.4+0534_daily_bin1306.fits evtable="EVENTS" scfile=/scratch/kocevski/154998/ft2_4FGL_J2349.4+0534_daily_bin1306.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/154998/Model_4FGL_J2349.4+0534_daily_bin1306.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/154998/ft1_filtered_4FGL_J2349.4+0534_daily_bin1306.fits.....................!
real 47.96
user 46.63
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .86958       1.0000         .10000E-03   10000.    
     3 'norm      '    .15197       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.555       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.994       1.0000         .10000E-03   10000.    
     8 'norm      '    3.9537       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.6792       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    27.089       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.6902       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    16.369       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.7498       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.346       1.0000         .10000E-03   10000.    
    21 'Prefactor '    39.073       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .67670       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0581       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=   3997.502     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2550 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0483        .50756E-08** at limit **
   2  norm          .86895        2.9946       -.48333E-06   -.77479E-03
   3  norm          .61658E-01    11.277        .12545E-05    .42057E-03
   4  Prefactor     20.588        18.940       -.81468E-05   -.14864E-03
   5  Prefactor     .10000E-03    20.245        .30853E-06** at limit **
   6  Prefactor     .10000E-03    9.1618        .21051E-06** at limit **
   7  Prefactor     17.993        16.512       -.22031E-06    .97065E-05
   8  norm          3.9534        1.5452       -.31718E-07   -.20394E-04
   9  Prefactor     8.6761        12.102        .14784E-05   -.47034E-04
  10  Prefactor     .10000E-03    28.054       -.26659E-05** at limit **
  11  norm          27.090        13.041       -.72819E-06   -.48564E-04
  12  Prefactor     .10000E-03    5.3381       -.39170E-07** at limit **
  13  Prefactor     .10000E-03    105.83        .23954E-04** at limit **
  14  Prefactor     9.6894        12.689       -.41974E-06   -.85928E-05
  15  Prefactor     .10000E-03    11.197       -.24144E-06** at limit **
  16  norm          .10000E-03    41.279        .31587E-04** at limit **
  17  norm          16.368        19.296       -.20561E-06    .11947E-04
  18  Prefactor     6.7493        5.1239       -.77325E-07    .12771E-04
  19  Prefactor     .10000E-03    45.222       -.30616E-04** at limit **
  20  Prefactor     16.343        20.366        .63683E-06    .20798E-04
  21  Prefactor     39.068        23.904        .70911E-06    .25711E-04
  22  Normalizat    .67664        .27748        .33416E-05   -.12852E-03
  23  Prefactor     1.0583        .17980       -.87438E-06   -.12250E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.86895
  norm       = 0.061658
  Prefactor  = 20.5883
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.9926
  norm       = 3.95342
  Prefactor  = 8.67613
  Prefactor  = 0.0001
  norm       = 27.0903
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.6894
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 16.3681
  Prefactor  = 6.74925
  Prefactor  = 0.0001
  Prefactor  = 16.3433
  Prefactor  = 39.0675
  Normalizat = 0.676644
  Prefactor  = 1.05834
 **********
 **   18 **HESSE 
 **********

 FCN=   3997.502     FROM HESSE     STATUS=OK           380 CALLS     2930 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.0503        .16390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .86895        2.9933        .19024E-03   -1.5522    
   3  norm          .61658E-01    15.338        .52224E-01   -1.5658    
   4  Prefactor     20.588        19.349        .88344E-04   -1.4800    
   5  Prefactor     .10000E-03    20.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.2038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.993        16.514        .94418E-04   -1.4859    
   8  norm          3.9534        1.5449        .46646E-04   -1.5310    
   9  Prefactor     8.6761        12.093        .13606E-03   -1.5119    
  10  Prefactor     .10000E-03    28.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          27.090        13.019        .76971E-04   -1.4667    
  12  Prefactor     .10000E-03    5.3574        .14247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    105.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.6894        12.700        .12873E-03   -1.5085    
  15  Prefactor     .10000E-03    11.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    41.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          16.368        19.333        .98994E-04   -1.4899    
  18  Prefactor     6.7493        5.1207        .11637E-03   -1.5188    
  19  Prefactor     .10000E-03    45.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.343        20.372        .99064E-04   -1.4899    
  21  Prefactor     39.068        23.955        .64122E-04   -1.4457    
  22  Normalizat    .67664        .31252        .35470E-03   -1.0482    
  23  Prefactor     1.0583        .20503        .19979E-03   -.90809    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99258e-09
Minuit parameter uncertainties:
  1  1.08617e-05
  2  2.99379
  3  1.94385
  4  19.3551
  5  1.0123e-05
  6  5.79315e-06
  7  16.5179
  8  1.54493
  9  12.0967
  10  1.29868e-06
  11  13.0204
  12  1.50693e-06
  13  2.20598e-07
  14  12.7034
  15  3.25746e-06
  16  0.000488881
  17  19.3399
  18  5.12103
  19  4.97089e-05
  20  20.3806
  21  23.9607
  22  0.313346
  23  0.205184
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.634e+01  2.038e+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.058e+00  2.052e-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.766e-01  3.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 3.26e-08 +/- 4.07e-08
Energy Flux (Fixed Index): 9.84e-06 +/- 1.23e-05

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

Saving results to:
/scratch/kocevski/154998/likelihoodResults_577843201_578102401_4FGL_J2349.4+0534_daily_bin1306.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) = 3996.94303832
delta logL = 0.558762246492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3996.90180505
delta logL = 0.599995512029

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.350       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6227       1.0000          .0000       10.000    
     3 'Normalizat'    .69639       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0500       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=   3996.902     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      217 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.379        27.973        .20723E-02   -.45981E-04
   2  Index         1.6246        .58476        .24273       -.22465E-04
   3  Normalizat    .69597        .25437        .79032E-01    .25804E-04
   4  Prefactor     1.0504        .17674        .39912E-01    .16814E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.3787
  Index      = 1.62457
  Normalizat = 0.695974
  Prefactor  = 1.05035
 **********
 **   18 **HESSE 
 **********

 FCN=   3996.902     FROM HESSE     STATUS=OK            31 CALLS      248 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.379        27.348        .41447E-03   -1.4741    
   2  Index         1.6246        .67458        .90640E-02   -.74108    
   3  Normalizat    .69597        .28783        .34993E-03   -1.0405    
   4  Prefactor     1.0504        .20087        .20033E-03   -.91069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80657e-10
Minuit parameter uncertainties:
  1  27.3628
  2  0.678395
  3  0.288457
  4  0.201015
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/154998': 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) = 3996.90179944
delta logL = 0.600001128093

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  2.338e+01  2.736e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  1.625e+00  6.784e-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:  1.050e+00  2.010e-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.960e-01  2.885e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.65
Ra Dec: 357.356 5.579
Photon Index (Free Index): 1.62 +/- 0.68
Photon Flux (Free Index): 1.56e-08 +/- 2.23e-08
Energy Flux (Free Index): 3.24e-05 +/- 5.60e-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/154998/cmap_HighResolution_577843201_578102401_4FGL_J2349.4+0534_daily_bin1306.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', comment='SUCCESS', photon_flux='3.26e-08', energy_flux2='3.24e-05', photon_flux_error='4.07e-08', dlogl='6.00e-01', energy_flux='9.84e-06', photon_flux2='1.56e-08', job_status='DONE', time_completed='2021-09-30 07:10:43.483792', photon_index_error2='0.68', photon_index2='1.62', ts='1.46', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.57e-07', energy_flux_error2='5.60e-05', EG='0.68', time_epoch_completed='1633011043.48', return_code='0', job_id='154998', GAL2='1.05', EG2='0.70', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='2.23e-08', ts2='2.65', photon_index='2.47' WHERE bin_id='1306' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:10:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 154998: <4FGL_J2349.4+0534_daily_bin1306> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1306 357.356 5.579 577843201 578102401 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 :                                   542.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             242.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            923 sec.

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

