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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin908
RA = 357.356, Dec = 5.579
tmin = 474681601, tmax = 474940801
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='153402', job_status='RUN', time_executed='2021-09-30 06:54:33.132764', time_epoch_executed='1633010073.13' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='908'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153402

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153402/ft1_4FGL_J2349.4+0534_daily_bin908.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153402/ft2_4FGL_J2349.4+0534_daily_bin908.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153402/ft1_4FGL_J2349.4+0534_daily_bin908.fits outfile=/scratch/kocevski/153402/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin908.fits ra=357.356 dec=5.579 rad=12.0 tmin=474681601.0 tmax=474940801.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 2.75
user 2.50
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/153402/ft2_4FGL_J2349.4+0534_daily_bin908.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/153402/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin908.fits evtable="EVENTS" outfile="/scratch/kocevski/153402/ft1_filtered_4FGL_J2349.4+0534_daily_bin908.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.42
user 0.26
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153402/ft1_filtered_4FGL_J2349.4+0534_daily_bin908.fits evtable="EVENTS" scfile=/scratch/kocevski/153402/ft2_4FGL_J2349.4+0534_daily_bin908.fits sctable="SC_DATA" expcube=/scratch/kocevski/153402/ltcube_474681601_474940801_4FGL_J2349.4+0534_daily_bin908.fits outfile=/scratch/kocevski/153402/expmap_474681601_474940801_4FGL_J2349.4+0534_daily_bin908.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/153402/ltcube_474681601_474940801_4FGL_J2349.4+0534_daily_bin908.fits
.....................!
real 140.49
user 137.20
sys 3.06

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/153402/ft1_filtered_4FGL_J2349.4+0534_daily_bin908.fits scfile=/scratch/kocevski/153402/ft2_4FGL_J2349.4+0534_daily_bin908.fits outfile=/scratch/kocevski/153402/cmap_474681601_474940801_4FGL_J2349.4+0534_daily_bin908.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.45
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153402/ft1_filtered_4FGL_J2349.4+0534_daily_bin908.fits scfile=/scratch/kocevski/153402/ft2_4FGL_J2349.4+0534_daily_bin908.fits outfile=/scratch/kocevski/153402/cmap_HighResolution_474681601_474940801_4FGL_J2349.4+0534_daily_bin908.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.44
user 0.30
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    1.5978       1.0000         .10000E-03   10000.    
     3 'norm      '    .12583       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.0382       1.0000         .10000E-03   10000.    
     5 'Prefactor '    161.56       1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.792       1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.894       1.0000         .10000E-03   10000.    
     8 'norm      '    2.0673       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .97867       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.3355       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .22430E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    17.837       1.0000         .10000E-03   10000.    
    17 'norm      '    14.539       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    45.724       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.273       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .57414       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2278       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .71856       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=   7446.666     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2607 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5373        .17799E-06** at limit **
   2  norm          1.5984        1.8482        .11114E-06   -.15777E-05
   3  norm          .11189        2.8121       -.26256E-06    .29908E-03
   4  Prefactor     7.0520        12.401       -.10583E-05   -.63490E-05
   5  Prefactor     161.57        48.606       -.32566E-07   -.43649E-04
   6  Prefactor     29.792        18.059        .10793E-06   -.14880E-04
   7  Prefactor     30.900        16.953        .17931E-06    .17881E-04
   8  norm          2.0676        .84988       -.16784E-07    .26073E-04
   9  Prefactor     .98404        1.4974        .27914E-06   -.97441E-03
  10  Prefactor     .10000E-03    32.356       -.12693E-05** at limit **
  11  norm          6.3168        6.5584       -.96326E-06   -.26155E-03
  12  Prefactor     .72099E-01    5.5066        .14023E-05   -.14966E-03
  13  Prefactor     .10000E-03    54.663       -.10683E-05** at limit **
  14  Prefactor     .10000E-03    2.6616       -.16387E-06** at limit **
  15  Prefactor     .10000E-03    11.116        .90951E-07** at limit **
  16  norm          17.833        14.439       -.30857E-07   -.38902E-04
  17  norm          14.542        14.078       -.52225E-07    .99015E-05
  18  Prefactor     .10000E-03    1.1061       -.36370E-07** at limit **
  19  Prefactor     45.743        37.822       -.54212E-06   -.41875E-04
  20  Prefactor     17.278        15.683        .98438E-07   -.35645E-05
  21  Prefactor     .72793        59.875        .52434E-05    .33941E-04
  22  Normalizat    1.2274        .19481        .29968E-06   -.35917E-03
  23  Prefactor     .71859        .13018       -.24774E-05   -.78422E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.59837
  norm       = 0.111893
  Prefactor  = 7.05205
  Prefactor  = 161.57
  Prefactor  = 29.7917
  Prefactor  = 30.8999
  norm       = 2.0676
  Prefactor  = 0.984041
  Prefactor  = 0.0001
  norm       = 6.31679
  Prefactor  = 0.0720993
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.8335
  norm       = 14.5424
  Prefactor  = 0.0001
  Prefactor  = 45.7432
  Prefactor  = 17.2776
  Prefactor  = 0.727929
  Normalizat = 1.22744
  Prefactor  = 0.71859
 **********
 **   18 **HESSE 
 **********

 FCN=   7446.666     FROM HESSE     STATUS=OK           388 CALLS     2995 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5411        .15851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5984        1.8380        .12050E-03   -1.5455    
   3  norm          .11189        32.277        .23890E-02   -1.5641    
   4  Prefactor     7.0520        12.420        .15121E-03   -1.5177    
   5  Prefactor     161.57        48.626        .15864E-03   -1.3159    
   6  Prefactor     29.792        18.072        .73404E-04   -1.4616    
   7  Prefactor     30.900        16.966        .72086E-04   -1.4596    
   8  norm          2.0676        .84896        .49370E-04   -1.5420    
   9  Prefactor     .98404        14.455        .26180E-02   -1.5510    
  10  Prefactor     .10000E-03    32.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.3168        6.7513        .15947E-03   -1.5205    
  12  Prefactor     .72099E-01    7.0173        .54804E-01   -1.5654    
  13  Prefactor     .10000E-03    54.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.6619        .13733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          17.833        14.445        .94833E-04   -1.4863    
  17  norm          14.542        14.067        .10504E-03   -1.4945    
  18  Prefactor     .10000E-03    1.1117        .88558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     45.743        37.916        .59294E-04   -1.4354    
  20  Prefactor     17.278        15.695        .96367E-04   -1.4876    
  21  Prefactor     .72793        61.864        .46669E-02   -1.5537    
  22  Normalizat    1.2274        .22493        .26861E-03   -.85759    
  23  Prefactor     .71859        .14423        .23423E-03   -1.0280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.38674e-09
Minuit parameter uncertainties:
  1  2.13007e-06
  2  1.83802
  3  3.8012
  4  12.4248
  5  48.6379
  6  18.0751
  7  16.9687
  8  0.848961
  9  7.54494
  10  3.22371e-05
  11  6.75211
  12  1.42178
  13  0.000187305
  14  6.30107e-06
  15  2.73175e-05
  16  14.4481
  17  14.0703
  18  3.57879e-06
  19  37.9363
  20  15.6984
  21  13.4347
  22  0.225104
  23  0.144307
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.728e+01  1.570e+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:  7.186e-01  1.443e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.227e+00  2.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.48
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 3.45e-08 +/- 3.13e-08
Energy Flux (Fixed Index): 1.04e-05 +/- 9.45e-06

TS (Fixed Index): 2.48
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153402/likelihoodResults_474681601_474940801_4FGL_J2349.4+0534_daily_bin908.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) = 7446.39416869
delta logL = 0.271345949093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7446.35884626
delta logL = 0.306668379628

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.300       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8545       1.0000          .0000       10.000    
     3 'Normalizat'    1.2477       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71020       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=   7446.359     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      209 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.300        887.54        .21205E-02   -.10658E-03
   2  Index         1.8545        5.1832        .26700       -.27243E-04
   3  Normalizat    1.2477        .21272        .60310E-01    .28472E-05
   4  Prefactor     .71021        .91233E-01    .42537E-01    .26774E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.3
  Index      = 1.85452
  Normalizat = 1.2477
  Prefactor  = 0.710205
 **********
 **   18 **HESSE 
 **********

 FCN=   7446.359     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.300        20.240        .84821E-04   -1.4763    
   2  Index         1.8545        .68170        .10927E-01   -.68039    
   3  Normalizat    1.2477        .20654        .26673E-03   -.85141    
   4  Prefactor     .71021        .14206        .23541E-03   -1.0313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13233e-10
Minuit parameter uncertainties:
  1  20.2459
  2  0.685249
  3  0.206677
  4  0.14213
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153402': 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) = 7446.35884625
delta logL = 0.306668384173

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  2.230e+01  2.025e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  1.855e+00  6.852e-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:  7.102e-01  1.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:  1.248e+00  2.067e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.09
Ra Dec: 357.356 5.579
Photon Index (Free Index): 1.85 +/- 0.69
Photon Flux (Free Index): 1.86e-08 +/- 2.37e-08
Energy Flux (Free Index): 1.90e-05 +/- 2.65e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/153402/cmap_HighResolution_474681601_474940801_4FGL_J2349.4+0534_daily_bin908.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.48e-03', comment='SUCCESS', photon_flux='3.45e-08', energy_flux2='1.90e-05', photon_flux_error='3.13e-08', dlogl='3.07e-01', energy_flux='1.04e-05', photon_flux2='1.86e-08', job_status='DONE', time_completed='2021-09-30 07:03:27.782509', photon_index_error2='0.69', photon_index2='1.85', ts='2.48', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='2.65e-05', EG='1.23', time_epoch_completed='1633010607.78', return_code='0', job_id='153402', GAL2='0.71', EG2='1.25', return_code2='0', energy_flux_error='9.45e-06', photon_flux_error2='2.37e-08', ts2='3.09', photon_index='2.47' WHERE bin_id='908' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:03:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 153402: <4FGL_J2349.4+0534_daily_bin908> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin908 357.356 5.579 474681601 474940801 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 :                                   533.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            781 sec.

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

