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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1239
RA = 357.356, Dec = 5.579
tmin = 560476801, tmax = 560736001
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='154899', job_status='RUN', time_executed='2021-09-30 06:59:21.292109', time_epoch_executed='1633010361.29' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1239'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/154899

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/154899/ft1_4FGL_J2349.4+0534_daily_bin1239.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/154899/ft2_4FGL_J2349.4+0534_daily_bin1239.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/154899/ft1_4FGL_J2349.4+0534_daily_bin1239.fits outfile=/scratch/kocevski/154899/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1239.fits ra=357.356 dec=5.579 rad=12.0 tmin=560476801.0 tmax=560736001.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.77
user 3.57
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/154899/ft1_filtered_4FGL_J2349.4+0534_daily_bin1239.fits evtable="EVENTS" scfile=/scratch/kocevski/154899/ft2_4FGL_J2349.4+0534_daily_bin1239.fits sctable="SC_DATA" expcube=/scratch/kocevski/154899/ltcube_560476801_560736001_4FGL_J2349.4+0534_daily_bin1239.fits outfile=/scratch/kocevski/154899/expmap_560476801_560736001_4FGL_J2349.4+0534_daily_bin1239.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/154899/ltcube_560476801_560736001_4FGL_J2349.4+0534_daily_bin1239.fits
.....................!
real 191.65
user 186.05
sys 5.25

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/154899/ft1_filtered_4FGL_J2349.4+0534_daily_bin1239.fits scfile=/scratch/kocevski/154899/ft2_4FGL_J2349.4+0534_daily_bin1239.fits outfile=/scratch/kocevski/154899/cmap_560476801_560736001_4FGL_J2349.4+0534_daily_bin1239.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.55
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.214       1.0000         .10000E-03   10000.    
     2 'norm      '    .31832       1.0000         .10000E-03   10000.    
     3 'norm      '    6.9380       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    84.176       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13620E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10786E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    76.489       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .25528E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    151.75       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4363       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10174E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    87.747       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.648       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.1509       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .72874       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0235       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=   5784.038     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2671 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.209        15.290       -.12772E-06   -.19273E-03
   2  norm          .32259        1.8250        .76634E-06   -.31721E-03
   3  norm          6.9390        5.3547        .41127E-06   -.38249E-04
   4  Prefactor     .10000E-03    5.1708       -.60225E-08** at limit **
   5  Prefactor     84.151        58.388       -.10551E-05   -.60896E-04
   6  Prefactor     .10000E-03    3.8492       -.12783E-07** at limit **
   7  Prefactor     .10000E-03    55.121       -.83074E-06** at limit **
   8  norm          .10002E-03    .55542        .58081E-06** at limit **
   9  Prefactor     .10000E-03    3.2158       -.22245E-07** at limit **
  10  Prefactor     76.486        63.698       -.93506E-06   -.49346E-04
  11  norm          .10000E-03    4.9181        .28341E-07** at limit **
  12  Prefactor     .10008E-03    5.9141       -.44880E-06** at limit **
  13  Prefactor     152.08        233.80        .80217E-05   -.20372E-05
  14  Prefactor     2.4324        9.7255       -.12403E-05   -.22639E-03
  15  Prefactor     .10000E-03    103.77        .11372E-06** at limit **
  16  norm          .10000E-03    8.1105        .46869E-07** at limit **
  17  norm          .10000E-03    10.557       -.85347E-06** at limit **
  18  Prefactor     .10000E-03    4.1480        .17791E-05** at limit **
  19  Prefactor     87.754        45.786        .37484E-06   -.40038E-04
  20  Prefactor     13.645        27.209        .12247E-05   -.16005E-04
  21  Prefactor     4.1518        8.0687        .48960E-05   -.67313E-04
  22  Normalizat    .72860        .21086       -.37103E-05   -.24613E-03
  23  Prefactor     1.0235        .13921       -.20178E-06   -.43087E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.209
  norm       = 0.322586
  norm       = 6.93905
  Prefactor  = 0.0001
  Prefactor  = 84.1513
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 76.4863
  norm       = 0.0001
  Prefactor  = 0.000100084
  Prefactor  = 152.083
  Prefactor  = 2.43243
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 87.7538
  Prefactor  = 13.6451
  Prefactor  = 4.15183
  Normalizat = 0.728597
  Prefactor  = 1.02353
 **********
 **   18 **HESSE 
 **********

 FCN=   5784.038     FROM HESSE     STATUS=OK           366 CALLS     3037 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.209        15.148        .72891E-04   -1.4608    
   2  norm          .32259        3.2694        .18163E-02   -1.5594    
   3  norm          6.9390        5.3511        .14705E-03   -1.5181    
   4  Prefactor     .10000E-03    5.1905        .16884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     84.151        58.435        .43783E-04   -1.3871    
   6  Prefactor     .10000E-03    3.8501        .14573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    55.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10002E-03    3.0784        .10370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.2199        .13319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     76.486        63.599        .45913E-04   -1.3957    
  11  norm          .10000E-03    4.9550        .16455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10008E-03    30.147        .35473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     152.08        236.88        .16360E-03   -1.3235    
  14  Prefactor     2.4324        9.6758        .26215E-03   -1.5396    
  15  Prefactor     .10000E-03    108.18        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.1206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.2608        .30115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     87.754        45.795        .42891E-04   -1.3832    
  20  Prefactor     13.645        27.203        .10842E-03   -1.4969    
  21  Prefactor     4.1518        8.0660        .98918E-03   -1.5300    
  22  Normalizat    .72860        .23582        .32539E-03   -1.0277    
  23  Prefactor     1.0235        .15914        .19718E-03   -.91949    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40853e-08
Minuit parameter uncertainties:
  1  15.1501
  2  2.05375
  3  5.35143
  4  7.39285e-06
  5  58.4746
  6  2.52998e-06
  7  0.000376783
  8  0.000489175
  9  6.13517e-06
  10  63.6552
  11  2.4126e-05
  12  0.00317487
  13  238.383
  14  9.68201
  15  0.000781475
  16  1.24738e-05
  17  1.67218e-05
  18  8.62969e-06
  19  45.8132
  20  27.2272
  21  8.06816
  22  0.236152
  23  0.159215
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.365e+01  2.723e+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.024e+00  1.592e-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.286e-01  2.362e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/154899/likelihoodResults_560476801_560736001_4FGL_J2349.4+0534_daily_bin1239.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) = 5783.88700444
delta logL = 0.151088653556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5783.87098216
delta logL = 0.167110930102

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5522       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3634       1.0000          .0000       10.000    
     3 'Normalizat'    .69766       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0371       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=   5783.871     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      301 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5446        427.26        .17050E-03    .43607E-04
   2  Index         3.3653        5.9104        .81428E-02    .34202E-04
   3  Normalizat    .69754        .23381        .33200E-03    .17601E-03
   4  Prefactor     1.0372        .17192        .19601E-03   -.39707E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.54463
  Index      = 3.36531
  Normalizat = 0.697542
  Prefactor  = 1.03717
 **********
 **   18 **HESSE 
 **********

 FCN=   5783.871     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5446        24.563        .68201E-05   -1.5237    
   2  Index         3.3653        2.2147        .32571E-03   -.33306    
   3  Normalizat    .69754        .23257        .13280E-04   -1.0399    
   4  Prefactor     1.0372        .16234        .39202E-04   -.91501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25199e-09
Minuit parameter uncertainties:
  1  23.3562
  2  2.305
  3  0.232899
  4  0.162421
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/154899': 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) = 5783.8709804
delta logL = 0.167112693575

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  5.545e+00  2.336e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  3.365e+00  2.305e+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.037e+00  1.624e-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.975e-01  2.329e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.30
Ra Dec: 357.356 5.579

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', job_status='DONE', photon_flux_upper_limit='1.42e-07', time_completed='2021-09-30 07:09:46.999644', job_id='154899', GAL2='1.04', fit_tolerance='1e-08', EG2='0.70', EG='0.73', time_epoch_completed='1633010987.0', return_code2='0', ts='0.30', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.67e-01', ts2='0.65', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1239' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:09:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 154899: <4FGL_J2349.4+0534_daily_bin1239> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1239 357.356 5.579 560476801 560736001 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 :                                   621.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            874 sec.

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

