/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 165 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 = 7393
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2349.4+0534_daily_bin307
RA = 357.356, Dec = 5.579
tmin = 318902401, tmax = 319161601
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='149399', job_status='RUN', time_executed='2021-09-30 06:38:45.997454', time_epoch_executed='1633009126.0' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149399

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149399/ft1_4FGL_J2349.4+0534_daily_bin307.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149399/ft2_4FGL_J2349.4+0534_daily_bin307.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149399/ft1_4FGL_J2349.4+0534_daily_bin307.fits outfile=/scratch/kocevski/149399/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin307.fits ra=357.356 dec=5.579 rad=12.0 tmin=318902401.0 tmax=319161601.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.40
user 3.17
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149399/ft1_filtered_4FGL_J2349.4+0534_daily_bin307.fits" evtable="EVENTS" scfile=/scratch/kocevski/149399/ft2_4FGL_J2349.4+0534_daily_bin307.fits sctable="SC_DATA" outfile=/scratch/kocevski/149399/ltcube_318902401_319161601_4FGL_J2349.4+0534_daily_bin307.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/149399/ft2_4FGL_J2349.4+0534_daily_bin307.fits
.....................!
real 12.13
user 11.77
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149399/ft1_filtered_4FGL_J2349.4+0534_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/149399/ft2_4FGL_J2349.4+0534_daily_bin307.fits sctable="SC_DATA" expcube=/scratch/kocevski/149399/ltcube_318902401_319161601_4FGL_J2349.4+0534_daily_bin307.fits outfile=/scratch/kocevski/149399/expmap_318902401_319161601_4FGL_J2349.4+0534_daily_bin307.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/149399/ltcube_318902401_319161601_4FGL_J2349.4+0534_daily_bin307.fits
.....................!
real 189.80
user 185.35
sys 4.03

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/149399/ft1_filtered_4FGL_J2349.4+0534_daily_bin307.fits scfile=/scratch/kocevski/149399/ft2_4FGL_J2349.4+0534_daily_bin307.fits outfile=/scratch/kocevski/149399/cmap_318902401_319161601_4FGL_J2349.4+0534_daily_bin307.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149399/ft1_filtered_4FGL_J2349.4+0534_daily_bin307.fits scfile=/scratch/kocevski/149399/ft2_4FGL_J2349.4+0534_daily_bin307.fits outfile=/scratch/kocevski/149399/cmap_HighResolution_318902401_319161601_4FGL_J2349.4+0534_daily_bin307.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .84328       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.869       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .26935       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .26785       1.0000         .10000E-03   10000.    
    13 'Prefactor '    66.136       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7454       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10589       1.0000         .10000E-03   10000.    
    16 'norm      '    7.5464       1.0000         .10000E-03   10000.    
    17 'norm      '    30.434       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10554E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4098       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.289       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .76413       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99623       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=   6770.368     FROM MIGRAD    STATUS=CONVERGED    909 CALLS     3394 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8601        .13585E-02** at limit **
   2  norm          .84340        1.5532        .14523E-02    .20256E-03
   3  norm          .10000E-03    1.7021        .10436E-02** at limit **
   4  Prefactor     .10000E-03    21.697        .36285E-03** at limit **
   5  Prefactor     .10000E-03    10.682        .18142E-02** at limit **
   6  Prefactor     17.876        12.989        .94747E-04    .21838E-04
   7  Prefactor     .10000E-03    6.7806        .18142E-02** at limit **
   8  norm          .26977        .83060        .11686E-03    .14106E-03
   9  Prefactor     .10000E-03    4.0610        .16147E-02** at limit **
  10  Prefactor     .10000E-03    19.600        .18142E-02** at limit **
  11  norm          .10000E-03    6.2696        .18142E-02** at limit **
  12  Prefactor     .26551        60.145        .30134E-02    .42122E-04
  13  Prefactor     65.959        220.09        .24675E-03   -.26492E-04
  14  Prefactor     4.7370        13.549        .18471E-03   -.62596E-04
  15  Prefactor     .53079E-01    28.311        .94843E-01    .76304E-04
  16  norm          7.5405        9.6829        .14599E-03    .81768E-05
  17  norm          30.446        24.717        .72628E-04   -.89725E-04
  18  Prefactor     .10000E-03    3.7635        .30505E-03** at limit **
  19  Prefactor     .10000E-03    38.389        .18142E-02** at limit **
  20  Prefactor     4.4064        16.198        .19178E-03    .17191E-05
  21  Prefactor     11.280        9.8661        .11924E-03   -.78183E-05
  22  Normalizat    .76413        .20581        .29761E-03    .83315E-04
  23  Prefactor     .99632        .14086        .18823E-03    .32179E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.8434
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.8758
  Prefactor  = 0.0001
  norm       = 0.269773
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.26551
  Prefactor  = 65.9586
  Prefactor  = 4.737
  Prefactor  = 0.0530787
  norm       = 7.54048
  norm       = 30.4464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.40638
  Prefactor  = 11.2805
  Normalizat = 0.764127
  Prefactor  = 0.996318
 **********
 **   18 **HESSE 
 **********

 FCN=   6770.368     FROM HESSE     STATUS=OK           360 CALLS     3754 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8601        .27169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .84340        1.5505        .58093E-04   -1.5524    
   3  norm          .10000E-03    1.7023        .20873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.698        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.682        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.876        12.985        .37899E-05   -1.4862    
   7  Prefactor     .10000E-03    6.7813        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .26977        .82977        .46746E-05   -1.5604    
   9  Prefactor     .10000E-03    4.0615        .32294E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.601        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.2710        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .26551        57.644        .12054E-03   -1.5605    
  13  Prefactor     65.959        219.78        .98702E-05   -1.4082    
  14  Prefactor     4.7370        13.528        .73883E-05   -1.5273    
  15  Prefactor     .53079E-01    24.689        .10148       -1.5662    
  16  norm          7.5405        9.6769        .58395E-05   -1.5159    
  17  norm          30.446        24.703        .14526E-04   -1.4604    
  18  Prefactor     .10000E-03    3.7636        .61011E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    38.409        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.4064        16.193        .76711E-05   -1.5288    
  21  Prefactor     11.280        9.8639        .47695E-05   -1.5036    
  22  Normalizat    .76413        .20449        .11904E-04   -1.0141    
  23  Prefactor     .99632        .14084        .37645E-04   -.92852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59713e-10
Minuit parameter uncertainties:
  1  3.40359e-06
  2  1.55054
  3  1.75018e-06
  4  4.56968e-05
  5  1.01155e-05
  6  12.987
  7  9.18887e-06
  8  0.829807
  9  3.33769e-06
  10  1.9726e-05
  11  8.44781e-06
  12  7.83053
  13  222.579
  14  13.5369
  15  2.28829
  16  9.6789
  17  24.711
  18  5.05587e-05
  19  9.18505e-05
  20  16.2093
  21  9.86533
  22  0.204691
  23  0.140896
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  4.406e+00  1.621e+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:  9.963e-01  1.409e-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.641e-01  2.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/149399/likelihoodResults_318902401_319161601_4FGL_J2349.4+0534_daily_bin307.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) = 6770.33808692
delta logL = 0.0299411179685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6770.31618081
delta logL = 0.0518472260992

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0201       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0254       1.0000          .0000       10.000    
     3 'Normalizat'    .76862       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99222       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=   6770.316     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      228 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9959        1581.9        .33363E-02    .26784E-04
   2  Index         2.0241        5.6546        .25645        .19248E-05
   3  Normalizat    .76850        .59871E-01    .67085E-01   -.32786E-06
   4  Prefactor     .99227        .43488E-01    .46170E-01   -.99368E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.99586
  Index      = 2.02411
  Normalizat = 0.768496
  Prefactor  = 0.992275
 **********
 **   18 **HESSE 
 **********

 FCN=   6770.316     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9959        23.355        .13345E-03   -1.5108    
   2  Index         2.0241        1.1199        .15834E-01   -.63749    
   3  Normalizat    .76850        .19294        .29682E-03   -1.0125    
   4  Prefactor     .99227        .13944        .18855E-03   -.92987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.23421e-12
Minuit parameter uncertainties:
  1  23.3792
  2  1.13495
  3  0.193115
  4  0.13949
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149399': 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) = 6770.31617906
delta logL = 0.0518489787473

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  8.996e+00  2.338e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.024e+00  1.135e+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:  9.923e-01  1.395e-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.685e-01  1.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/149399/cmap_HighResolution_318902401_319161601_4FGL_J2349.4+0534_daily_bin307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.01e-03', job_status='DONE', photon_flux_upper_limit='9.03e-08', time_completed='2021-09-30 06:50:58.150825', job_id='149399', GAL2='0.99', fit_tolerance='1e-08', EG2='0.77', EG='0.76', time_epoch_completed='1633009858.15', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='5.18e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='307' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:50:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 149399: <4FGL_J2349.4+0534_daily_bin307> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin307> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 06:35:50 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:35:51 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:35:51 2021
Terminated at Thu Sep 30 06:50:58 2021
Results reported at Thu Sep 30 06:50:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin307 357.356 5.579 318902401 319161601 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 :                                   728.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            908 sec.

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

