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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin365
RA = 357.356, Dec = 5.579
tmin = 333936001, tmax = 334195201
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='150490', job_status='RUN', time_executed='2021-09-30 06:43:25.719574', time_epoch_executed='1633009405.72' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='365'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150490

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150490/ft1_4FGL_J2349.4+0534_daily_bin365.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150490/ft2_4FGL_J2349.4+0534_daily_bin365.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150490/ft1_4FGL_J2349.4+0534_daily_bin365.fits outfile=/scratch/kocevski/150490/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin365.fits ra=357.356 dec=5.579 rad=12.0 tmin=333936001.0 tmax=334195201.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.54
user 3.32
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150490/ft1_filtered_4FGL_J2349.4+0534_daily_bin365.fits evtable="EVENTS" scfile=/scratch/kocevski/150490/ft2_4FGL_J2349.4+0534_daily_bin365.fits sctable="SC_DATA" expcube=/scratch/kocevski/150490/ltcube_333936001_334195201_4FGL_J2349.4+0534_daily_bin365.fits outfile=/scratch/kocevski/150490/expmap_333936001_334195201_4FGL_J2349.4+0534_daily_bin365.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/150490/ltcube_333936001_334195201_4FGL_J2349.4+0534_daily_bin365.fits
.....................!
real 190.73
user 185.04
sys 5.05

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/150490/ft1_filtered_4FGL_J2349.4+0534_daily_bin365.fits scfile=/scratch/kocevski/150490/ft2_4FGL_J2349.4+0534_daily_bin365.fits outfile=/scratch/kocevski/150490/cmap_333936001_334195201_4FGL_J2349.4+0534_daily_bin365.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.56
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/150490/ft1_filtered_4FGL_J2349.4+0534_daily_bin365.fits scfile=/scratch/kocevski/150490/ft2_4FGL_J2349.4+0534_daily_bin365.fits outfile=/scratch/kocevski/150490/cmap_HighResolution_333936001_334195201_4FGL_J2349.4+0534_daily_bin365.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8448       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0193       1.0000         .10000E-03   10000.    
     3 'norm      '    5.7288       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.189       1.0000         .10000E-03   10000.    
     5 'Prefactor '    44.701       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.8112       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6322       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.569       1.0000         .10000E-03   10000.    
    11 'norm      '    7.0401       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .21942E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.376       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.218       1.0000         .10000E-03   10000.    
    16 'norm      '    42.400       1.0000         .10000E-03   10000.    
    17 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    39.824       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.5458       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .46305       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0893       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=   5396.954     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2533 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8456        13.697       -.14191E-05   -.57239E-04
   2  norm          1.0191        2.6283        .17829E-06   -.17417E-03
   3  norm          5.7288        4.1843       -.77187E-07   -.21292E-04
   4  Prefactor     14.189        12.992        .55512E-06    .22071E-04
   5  Prefactor     44.706        39.086       -.83840E-06   -.16473E-04
   6  Prefactor     .10000E-03    5.9487        .51696E-08** at limit **
   7  Prefactor     .10000E-03    7.4980        .20409E-07** at limit **
   8  norm          2.8111        1.4489        .18141E-06   -.33623E-04
   9  Prefactor     3.6316        4.8701        .83242E-06   -.10563E-02
  10  Prefactor     16.571        39.093       -.88921E-06   -.13248E-04
  11  norm          7.0402        8.1956       -.42140E-06   -.51397E-04
  12  Prefactor     .10000E-03    3.7461       -.89528E-09** at limit **
  13  Prefactor     .10000E-03    369.19       -.19309E-05** at limit **
  14  Prefactor     15.375        14.259       -.28050E-05   -.16904E-03
  15  Prefactor     12.218        19.659       -.25038E-05   -.55460E-04
  16  norm          42.399        21.050        .20660E-05    .12950E-03
  17  norm          .10000E-03    12.031        .15845E-06** at limit **
  18  Prefactor     .10000E-03    4.0326        .21921E-06** at limit **
  19  Prefactor     39.823        45.913       -.13410E-06   -.13404E-04
  20  Prefactor     .10000E-03    23.629        .34021E-07** at limit **
  21  Prefactor     9.5458        9.3117        .24093E-06    .21129E-04
  22  Normalizat    .46303        .22790        .12807E-05   -.11640E-04
  23  Prefactor     1.0893        .15234       -.18438E-06    .81311E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.84558
  norm       = 1.0191
  norm       = 5.72882
  Prefactor  = 14.1894
  Prefactor  = 44.7056
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.81112
  Prefactor  = 3.63156
  Prefactor  = 16.5715
  norm       = 7.0402
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3745
  Prefactor  = 12.2183
  norm       = 42.3992
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.8234
  Prefactor  = 0.0001
  Prefactor  = 9.54581
  Normalizat = 0.463026
  Prefactor  = 1.08932
 **********
 **   18 **HESSE 
 **********

 FCN=   5396.954     FROM HESSE     STATUS=OK           376 CALLS     2909 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8456        13.438        .14316E-03   -1.5148    
   2  norm          1.0191        2.5289        .16860E-03   -1.5506    
   3  norm          5.7288        4.1809        .12313E-03   -1.5229    
   4  Prefactor     14.189        12.963        .10633E-03   -1.4954    
   5  Prefactor     44.706        39.086        .59966E-04   -1.4370    
   6  Prefactor     .10000E-03    5.9640        .17499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.5245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.8111        1.4434        .58899E-04   -1.5373    
   9  Prefactor     3.6316        10.262        .10599E-02   -1.5327    
  10  Prefactor     16.571        39.078        .98394E-04   -1.4894    
  11  norm          7.0402        8.4535        .15119E-03   -1.5177    
  12  Prefactor     .10000E-03    3.7671        .13870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    369.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.375        14.301        .10214E-03   -1.4924    
  15  Prefactor     12.218        19.655        .11460E-03   -1.5009    
  16  norm          42.399        21.019        .61564E-04   -1.4405    
  17  norm          .10000E-03    12.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.1726        .28789E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     39.823        45.859        .63517E-04   -1.4445    
  20  Prefactor     .10000E-03    23.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.5458        9.3129        .12971E-03   -1.5090    
  22  Normalizat    .46303        .24401        .38176E-03   -1.1416    
  23  Prefactor     1.0893        .16709        .18415E-03   -.89809    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25551e-09
Minuit parameter uncertainties:
  1  13.4436
  2  2.52914
  3  4.18108
  4  12.9656
  5  39.1089
  6  4.59774e-07
  7  1.81428e-06
  8  1.44343
  9  10.2666
  10  39.1382
  11  8.45488
  12  1.9071e-06
  13  0.000307779
  14  14.3041
  15  19.6654
  16  21.0229
  17  6.18417e-05
  18  6.40875e-05
  19  45.8994
  20  1.62273e-05
  21  9.31436
  22  0.244573
  23  0.167167
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  1.623e-05  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.089e+00  1.672e-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:  4.630e-01  2.446e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/150490/likelihoodResults_333936001_334195201_4FGL_J2349.4+0534_daily_bin365.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): 102
logL (Free Index) = 5396.95396746
delta logL = -0.000199928636903

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5396.95376745
delta logL = 7.94389052317e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10570E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8484       1.0000          .0000       10.000    
     3 'Normalizat'    .46302       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0893       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=   5396.954     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      249 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.833        .90712E-02** at limit **
   2  Index         2.8468        5.5915        .50000        .54981E-06
   3  Normalizat    .46303        .37809E-02    .86174E-01    .40199E-04
   4  Prefactor     1.0893        .27336E-02    .38007E-01    .10125E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.84684
  Normalizat = 0.463026
  Prefactor  = 1.08932
 **********
 **   18 **HESSE 
 **********

 FCN=   5396.954     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      282 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    731.05        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8468        6.4199        .50000       -.44519    
   3  Normalizat    .46303        .27174E-01    .38176E-03   -1.1416    
   4  Prefactor     1.0893        .19701E-01    .18415E-03   -.89809    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.40854e-09
Minuit parameter uncertainties:
  1  0.00034128
  2  656.976
  3  0.0271748
  4  0.0197008
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150490': 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): 102
logL (Free Index) = 5396.95376735
delta logL = 1.88591911865e-07

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  3.413e-04  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.847e+00  6.570e+02  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.089e+00  1.970e-02  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:  4.630e-01  2.717e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/150490/cmap_HighResolution_333936001_334195201_4FGL_J2349.4+0534_daily_bin365.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.08e-03', job_status='DONE', photon_flux_upper_limit='9.12e-08', time_completed='2021-09-30 06:53:24.027930', job_id='150490', GAL2='1.09', fit_tolerance='1e-08', EG2='0.46', EG='0.46', time_epoch_completed='1633010004.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.89e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='365' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:53:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 150490: <4FGL_J2349.4+0534_daily_bin365> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin365> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 06:40:11 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:40: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:40:14 2021
Terminated at Thu Sep 30 06:53:24 2021
Results reported at Thu Sep 30 06:53:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin365 357.356 5.579 333936001 334195201 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 :                                   596.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            793 sec.

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

