/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 236 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7550
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1660
RA = 357.356, Dec = 5.579
tmin = 669600001, tmax = 669859201
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='994477', job_status='RUN', time_executed='2022-03-25 00:44:24.181219', time_epoch_executed='1648194264.18' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1660'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994477

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994477/ft1_4FGL_J2349.4+0534_daily_bin1660.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994477/ft2_4FGL_J2349.4+0534_daily_bin1660.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994477/ft1_4FGL_J2349.4+0534_daily_bin1660.fits outfile=/scratch/kocevski/994477/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1660.fits ra=357.356 dec=5.579 rad=12.0 tmin=669600001.0 tmax=669859201.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 4.57
user 4.33
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/994477/ft2_4FGL_J2349.4+0534_daily_bin1660.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/994477/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1660.fits evtable="EVENTS" outfile="/scratch/kocevski/994477/ft1_filtered_4FGL_J2349.4+0534_daily_bin1660.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.61
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 560

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994477/ft1_filtered_4FGL_J2349.4+0534_daily_bin1660.fits evtable="EVENTS" scfile=/scratch/kocevski/994477/ft2_4FGL_J2349.4+0534_daily_bin1660.fits sctable="SC_DATA" expcube=/scratch/kocevski/994477/ltcube_669600001_669859201_4FGL_J2349.4+0534_daily_bin1660.fits outfile=/scratch/kocevski/994477/expmap_669600001_669859201_4FGL_J2349.4+0534_daily_bin1660.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/994477/ltcube_669600001_669859201_4FGL_J2349.4+0534_daily_bin1660.fits
.....................!
real 192.57
user 187.04
sys 5.08

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/994477/ft1_filtered_4FGL_J2349.4+0534_daily_bin1660.fits scfile=/scratch/kocevski/994477/ft2_4FGL_J2349.4+0534_daily_bin1660.fits outfile=/scratch/kocevski/994477/cmap_669600001_669859201_4FGL_J2349.4+0534_daily_bin1660.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=357.356 yref=5.579 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/994477/ft1_filtered_4FGL_J2349.4+0534_daily_bin1660.fits scfile=/scratch/kocevski/994477/ft2_4FGL_J2349.4+0534_daily_bin1660.fits outfile=/scratch/kocevski/994477/cmap_HighResolution_669600001_669859201_4FGL_J2349.4+0534_daily_bin1660.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    174.55       1.0000         .10000E-03   10000.    
     2 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.6597       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.470       1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.514       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5852       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4440       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.854       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.841       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.5018       1.0000         .10000E-03   10000.    
    17 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7957       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8596       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .75832E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .93325       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0989       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=   6200.158     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     2946 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     174.54        37.519       -.37673E-05   -.12794E-05
   2  norm          .10000E-03    2.8747        .25492E-06** at limit **
   3  norm          7.6591        6.0961       -.23071E-05   -.11395E-03
   4  Prefactor     16.471        19.982        .44807E-06    .67568E-05
   5  Prefactor     40.501        44.693       -.14910E-04    .16194E-04
   6  Prefactor     .10000E-03    8.1720       -.63743E-06** at limit **
   7  Prefactor     .10000E-03    15.981       -.34140E-05** at limit **
   8  norm          1.5853        1.2549        .17219E-06   -.13563E-02
   9  Prefactor     .10000E-03    14.487       -.18476E-05** at limit **
  10  Prefactor     .10000E-03    14.800       -.21807E-05** at limit **
  11  norm          .10000E-03    3.9737        .12938E-06** at limit **
  12  Prefactor     3.4429        6.9151       -.18213E-05   -.34464E-03
  13  Prefactor     18.759        692.37       -.21678E-03   -.17106E-04
  14  Prefactor     14.843        16.091        .70436E-06   -.47615E-03
  15  Prefactor     .10000E-03    58.664        .32404E-05** at limit **
  16  norm          7.5017        10.852       -.28434E-06   -.13539E-04
  17  norm          .10000E-03    18.188        .65985E-05** at limit **
  18  Prefactor     1.7949        8.5273        .11366E-04   -.62318E-03
  19  Prefactor     4.8604        46.310        .54968E-06   -.10583E-04
  20  Prefactor     .10033E-03    16.974       -.37356E-05** at limit **
  21  Prefactor     .10000E-03    11.187        .20584E-05** at limit **
  22  Normalizat    .93338        .23638        .81043E-06    .98933E-04
  23  Prefactor     1.0988        .15246        .21925E-05    .71739E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 174.54
  norm       = 0.0001
  norm       = 7.65906
  Prefactor  = 16.4714
  Prefactor  = 40.5013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.58527
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.4429
  Prefactor  = 18.759
  Prefactor  = 14.8425
  Prefactor  = 0.0001
  norm       = 7.50175
  norm       = 0.000100001
  Prefactor  = 1.79486
  Prefactor  = 4.86044
  Prefactor  = 0.000100335
  Prefactor  = 0.0001
  Normalizat = 0.933379
  Prefactor  = 1.09883
 **********
 **   18 **HESSE 
 **********

 FCN=   6200.158     FROM HESSE     STATUS=OK           368 CALLS     3314 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     174.54        37.548        .15272E-03   -1.3058    
   2  norm          .10000E-03    2.9487        .25983E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.6591        6.0960        .14490E-03   -1.5154    
   4  Prefactor     16.471        19.997        .98690E-04   -1.4896    
   5  Prefactor     40.501        44.761        .62976E-04   -1.4434    
   6  Prefactor     .10000E-03    8.2653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5853        1.2392        .73674E-04   -1.5456    
   9  Prefactor     .10000E-03    14.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.9858        .15308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.4429        6.9199        .21794E-03   -1.5337    
  13  Prefactor     18.759        683.58        .92241E-04   -1.4841    
  14  Prefactor     14.843        15.493        .10397E-03   -1.4937    
  15  Prefactor     .10000E-03    60.857        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.5017        10.845        .14642E-03   -1.5160    
  17  norm          .10000E-03    18.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.7949        7.4426        .31204E-03   -1.5440    
  19  Prefactor     4.8604        46.127        .18248E-03   -1.5267    
  20  Prefactor     .10033E-03    86.549        .61863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .93338        .26916        .33550E-03   -.95297    
  23  Prefactor     1.0988        .17461        .21504E-03   -.89504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12669e-09
Minuit parameter uncertainties:
  1  37.5533
  2  5.24249e-05
  3  6.09654
  4  20.0053
  5  44.7986
  6  3.07993e-06
  7  2.78431e-05
  8  1.23922
  9  3.56891e-05
  10  1.13319e-05
  11  1.6837e-05
  12  6.92152
  13  229.368
  14  15.4975
  15  0.00016586
  16  10.8482
  17  0.000206425
  18  7.3112
  19  29.9764
  20  0.0107847
  21  4.32571e-05
  22  0.269547
  23  0.174697
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.003e-04  1.078e-02  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.099e+00  1.747e-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:  9.334e-01  2.695e-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: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/994477/likelihoodResults_669600001_669859201_4FGL_J2349.4+0534_daily_bin1660.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) = 6200.15814865
delta logL = -5.39367028978e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6200.15809469
delta logL = 2.02207957045e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10558E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6096       1.0000          .0000       10.000    
     3 'Normalizat'    .93338       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0988       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=   6200.158     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      250 TOTAL
                     EDM=   .42E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .26229        .13530    ** at limit **
   2  Index         2.6080        8.6638        .50000        .16835E-06
   3  Normalizat    .93338        .94697E-03    .75809E-01    .26382E-04
   4  Prefactor     1.0988        .65605E-03    .37631E-01    .98801E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.60802
  Normalizat = 0.933377
  Prefactor  = 1.09883
 **********
 **   18 **HESSE 
 **********

 FCN=   6200.158     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      285 TOTAL
                     EDM=   .84E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    106.17        .46923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6080        5.8058        .50000       -.49883    
   3  Normalizat    .93338        .59730E-02    .33550E-03   -.95297    
   4  Prefactor     1.0988        .41455E-02    .21504E-03   -.89504    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.38416e-12
Minuit parameter uncertainties:
  1  0.000339258
  2  121.266
  3  0.00597296
  4  0.00414547
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994477': 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) = 6200.15809466
delta logL = 4.92664185003e-08

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  3.393e-04  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.608e+00  1.213e+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.099e+00  4.145e-03  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:  9.334e-01  5.973e-03  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/994477/cmap_HighResolution_669600001_669859201_4FGL_J2349.4+0534_daily_bin1660.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.89e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2022-03-25 00:55:50.946298', job_id='994477', GAL2='1.10', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1648194950.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='4.93e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1660' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar 25 00:55:50 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 994477: <4FGL_J2349.4+0534_daily_bin1660> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin1660> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Mar 25 00:40:15 2022
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar 25 00:40:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar 25 00:40:17 2022
Terminated at Fri Mar 25 00:55:53 2022
Results reported at Fri Mar 25 00:55:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1660 357.356 5.579 669600001 669859201 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 :                                   688.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             231.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            938 sec.

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

