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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin806
RA = 357.356, Dec = 5.579
tmin = 448243201, tmax = 448502401
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='153253', job_status='RUN', time_executed='2021-09-30 06:51:50.720049', time_epoch_executed='1633009910.72' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='806'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153253

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153253/ft1_4FGL_J2349.4+0534_daily_bin806.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153253/ft2_4FGL_J2349.4+0534_daily_bin806.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153253/ft1_4FGL_J2349.4+0534_daily_bin806.fits outfile=/scratch/kocevski/153253/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin806.fits ra=357.356 dec=5.579 rad=12.0 tmin=448243201.0 tmax=448502401.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 5.19
user 4.96
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/153253/ft2_4FGL_J2349.4+0534_daily_bin806.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/153253/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin806.fits evtable="EVENTS" outfile="/scratch/kocevski/153253/ft1_filtered_4FGL_J2349.4+0534_daily_bin806.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/153253/ft1_filtered_4FGL_J2349.4+0534_daily_bin806.fits" evtable="EVENTS" scfile=/scratch/kocevski/153253/ft2_4FGL_J2349.4+0534_daily_bin806.fits sctable="SC_DATA" outfile=/scratch/kocevski/153253/ltcube_448243201_448502401_4FGL_J2349.4+0534_daily_bin806.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/153253/ft2_4FGL_J2349.4+0534_daily_bin806.fits
.....................!
real 12.03
user 11.63
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153253/ft1_filtered_4FGL_J2349.4+0534_daily_bin806.fits evtable="EVENTS" scfile=/scratch/kocevski/153253/ft2_4FGL_J2349.4+0534_daily_bin806.fits sctable="SC_DATA" expcube=/scratch/kocevski/153253/ltcube_448243201_448502401_4FGL_J2349.4+0534_daily_bin806.fits outfile=/scratch/kocevski/153253/expmap_448243201_448502401_4FGL_J2349.4+0534_daily_bin806.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/153253/ltcube_448243201_448502401_4FGL_J2349.4+0534_daily_bin806.fits
.....................!
real 190.79
user 185.17
sys 5.30

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/153253/ft1_filtered_4FGL_J2349.4+0534_daily_bin806.fits scfile=/scratch/kocevski/153253/ft2_4FGL_J2349.4+0534_daily_bin806.fits outfile=/scratch/kocevski/153253/cmap_448243201_448502401_4FGL_J2349.4+0534_daily_bin806.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/153253/ft1_filtered_4FGL_J2349.4+0534_daily_bin806.fits scfile=/scratch/kocevski/153253/ft2_4FGL_J2349.4+0534_daily_bin806.fits outfile=/scratch/kocevski/153253/cmap_HighResolution_448243201_448502401_4FGL_J2349.4+0534_daily_bin806.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.136       1.0000         .10000E-03   10000.    
     2 'norm      '    .12116E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.4589       1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.053       1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.607       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10446E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.3135       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10377E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.006       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.491       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.111       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.914       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.397       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.743       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .75708       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.5467       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=   5102.874     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2588 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.139        36.157       -.23447E-05   -.87124E-04
   2  norm          .10002E-03    3.4956        .41069E-06** at limit **
   3  norm          1.4593        4.8018        .10482E-05   -.26302E-04
   4  Prefactor     35.054        24.565       -.45794E-06   -.64832E-04
   5  Prefactor     31.612        58.213        .39688E-06   -.31015E-05
   6  Prefactor     .10000E-03    12.289       -.21990E-07** at limit **
   7  Prefactor     .10000E-03    56.534        .39211E-06** at limit **
   8  norm          8.3135        2.3379       -.64978E-08   -.54319E-04
   9  Prefactor     .10000E-03    6.2620        .34904E-07** at limit **
  10  Prefactor     .10000E-03    31.156        .38953E-07** at limit **
  11  norm          .10000E-03    4.7605        .27683E-07** at limit **
  12  Prefactor     .10000E-03    4.3239        .12894E-07** at limit **
  13  Prefactor     .10000E-03    133.85       -.19816E-06** at limit **
  14  Prefactor     10.998        27.425        .26282E-05   -.13097E-04
  15  Prefactor     19.495        44.511       -.27635E-07   -.40804E-05
  16  norm          .10000E-03    5.8947       -.10220E-07** at limit **
  17  norm          12.180        177.79       -.94623E-05    .25198E-05
  18  Prefactor     16.909        13.424        .47590E-06   -.35280E-04
  19  Prefactor     .10000E-03    47.707       -.19771E-06** at limit **
  20  Prefactor     29.402        33.035       -.10234E-06   -.70529E-05
  21  Prefactor     17.741        35.358       -.21745E-06   -.22167E-04
  22  Normalizat    .75746        .34059        .20717E-05   -.84213E-04
  23  Prefactor     1.5464        .21815       -.10854E-05   -.30075E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.1389
  norm       = 0.000100015
  norm       = 1.45926
  Prefactor  = 35.0545
  Prefactor  = 31.6119
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.31349
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9982
  Prefactor  = 19.4952
  norm       = 0.0001
  norm       = 12.1797
  Prefactor  = 16.9088
  Prefactor  = 0.0001
  Prefactor  = 29.4019
  Prefactor  = 17.741
  Normalizat = 0.757462
  Prefactor  = 1.54641
 **********
 **   18 **HESSE 
 **********

 FCN=   5102.874     FROM HESSE     STATUS=OK           374 CALLS     2962 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.139        34.341        .81536E-04   -1.4725    
   2  norm          .10002E-03    31.405        .22663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.4593        4.7109        .26894E-03   -1.5466    
   4  Prefactor     35.054        24.508        .67686E-04   -1.4523    
   5  Prefactor     31.612        58.200        .71271E-04   -1.4583    
   6  Prefactor     .10000E-03    12.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    56.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.3135        2.3363        .54897E-04   -1.5131    
   9  Prefactor     .10000E-03    6.2696        .17454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    31.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.7712        .15217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.3443        .14503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    133.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.998        26.934        .12076E-03   -1.5045    
  15  Prefactor     19.495        44.463        .90721E-04   -1.4825    
  16  norm          .10000E-03    5.8958        .16939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.180        169.52        .11511E-03   -1.5010    
  18  Prefactor     16.909        13.385        .97386E-04   -1.4885    
  19  Prefactor     .10000E-03    47.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     29.402        33.020        .73894E-04   -1.4623    
  21  Prefactor     17.741        35.336        .95084E-04   -1.4865    
  22  Normalizat    .75746        .36893        .44036E-03   -1.0167    
  23  Prefactor     1.5464        .24193        .22691E-03   -.76248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.03325e-10
Minuit parameter uncertainties:
  1  34.3695
  2  0.00138592
  3  4.71213
  4  24.5148
  5  58.3045
  6  1.58707e-08
  7  0.000117857
  8  2.33631
  9  1.84677e-06
  10  1.22272e-05
  11  1.58431e-06
  12  1.23362e-06
  13  0.000107292
  14  26.964
  15  44.5387
  16  4.1713e-08
  17  91.1939
  18  13.3869
  19  0.000106633
  20  33.0409
  21  35.3777
  22  0.370152
  23  0.242107
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  2.940e+01  3.304e+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.546e+00  2.421e-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.575e-01  3.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.35
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 5.87e-08 +/- 6.59e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.99e-05

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

Saving results to:
/scratch/kocevski/153253/likelihoodResults_448243201_448502401_4FGL_J2349.4+0534_daily_bin806.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) = 5102.83233884
delta logL = 0.0419447989816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5102.82987198
delta logL = 0.0444116581857

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.785       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1271       1.0000          .0000       10.000    
     3 'Normalizat'    .77876       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5378       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=   5102.830     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      262 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.785        1395.9        .16987E-02   -.92995E-04
   2  Index         2.1271        5.0458        .25105       -.36673E-04
   3  Normalizat    .77872        .23534        .98093E-01    .24161E-04
   4  Prefactor     1.5378        .84817E-01    .51438E-01   -.37118E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.7847
  Index      = 2.12712
  Normalizat = 0.778718
  Prefactor  = 1.53783
 **********
 **   18 **HESSE 
 **********

 FCN=   5102.830     FROM HESSE     STATUS=OK            31 CALLS      293 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.785        39.714        .67947E-04   -1.4528    
   2  Index         2.1271        1.0342        .10986E-01   -.61208    
   3  Normalizat    .77872        .33584        .43469E-03   -1.0086    
   4  Prefactor     1.5378        .23628        .22738E-03   -.76486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10377e-10
Minuit parameter uncertainties:
  1  39.7443
  2  1.0455
  3  0.336734
  4  0.236449
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153253': 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) = 5102.82987197
delta logL = 0.0444116654417

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  3.478e+01  3.974e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.127e+00  1.046e+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.538e+00  2.364e-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.787e-01  3.367e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.43
Ra Dec: 357.356 5.579
Photon Index (Free Index): 2.13 +/- 1.05
Photon Flux (Free Index): 4.13e-08 +/- 6.81e-08
Energy Flux (Free Index): 2.14e-05 +/- 3.13e-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/153253/cmap_HighResolution_448243201_448502401_4FGL_J2349.4+0534_daily_bin806.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.69e-02', comment='SUCCESS', photon_flux='5.87e-08', energy_flux2='2.14e-05', photon_flux_error='6.59e-08', dlogl='4.44e-02', energy_flux='1.77e-05', photon_flux2='4.13e-08', job_status='DONE', time_completed='2021-09-30 07:02:12.229347', photon_index_error2='1.05', photon_index2='2.13', ts='1.35', fit_tolerance='1e-08', GAL='1.55', photon_index_error='0.00', photon_flux_upper_limit='2.18e-07', energy_flux_error2='3.13e-05', EG='0.76', time_epoch_completed='1633010532.23', return_code='0', job_id='153253', GAL2='1.54', EG2='0.78', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='6.81e-08', ts2='1.43', photon_index='2.47' WHERE bin_id='806' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:02:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 153253: <4FGL_J2349.4+0534_daily_bin806> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin806> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 06:50:17 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:50:19 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:50:19 2021
Terminated at Thu Sep 30 07:02:12 2021
Results reported at Thu Sep 30 07:02:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin806 357.356 5.579 448243201 448502401 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 :                                   588.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            715 sec.

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

