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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin973
RA = 357.356, Dec = 5.579
tmin = 491529601, tmax = 491788801
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='153496', job_status='RUN', time_executed='2021-09-30 06:51:16.345586', time_epoch_executed='1633009876.35' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='973'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153496

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153496/ft1_4FGL_J2349.4+0534_daily_bin973.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153496/ft2_4FGL_J2349.4+0534_daily_bin973.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153496/ft1_4FGL_J2349.4+0534_daily_bin973.fits outfile=/scratch/kocevski/153496/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin973.fits ra=357.356 dec=5.579 rad=12.0 tmin=491529601.0 tmax=491788801.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.48
user 3.25
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/153496/ft1_filtered_4FGL_J2349.4+0534_daily_bin973.fits" evtable="EVENTS" scfile=/scratch/kocevski/153496/ft2_4FGL_J2349.4+0534_daily_bin973.fits sctable="SC_DATA" outfile=/scratch/kocevski/153496/ltcube_491529601_491788801_4FGL_J2349.4+0534_daily_bin973.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/153496/ft2_4FGL_J2349.4+0534_daily_bin973.fits
.....................!
real 11.99
user 11.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153496/ft1_filtered_4FGL_J2349.4+0534_daily_bin973.fits evtable="EVENTS" scfile=/scratch/kocevski/153496/ft2_4FGL_J2349.4+0534_daily_bin973.fits sctable="SC_DATA" expcube=/scratch/kocevski/153496/ltcube_491529601_491788801_4FGL_J2349.4+0534_daily_bin973.fits outfile=/scratch/kocevski/153496/expmap_491529601_491788801_4FGL_J2349.4+0534_daily_bin973.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/153496/ltcube_491529601_491788801_4FGL_J2349.4+0534_daily_bin973.fits
.....................!
real 190.43
user 185.47
sys 4.58

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/153496/ft1_filtered_4FGL_J2349.4+0534_daily_bin973.fits scfile=/scratch/kocevski/153496/ft2_4FGL_J2349.4+0534_daily_bin973.fits outfile=/scratch/kocevski/153496/cmap_491529601_491788801_4FGL_J2349.4+0534_daily_bin973.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.52
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47059       1.0000         .10000E-03   10000.    
     2 'norm      '    .85455E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .58965       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    42.869       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .85285       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    49.607       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .65636E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.1708       1.0000         .10000E-03   10000.    
    19 'Prefactor '    49.297       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .98468       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4564       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .59992       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=   6639.092     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2584 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40299        117.43        .61238E-05   -.10449E-03
   2  norm          .10019E-03    1.4534        .21803E-06** at limit **
   3  norm          .58916        2.9852       -.16198E-05   -.11887E-03
   4  Prefactor     .10000E-03    3.7015       -.93399E-07** at limit **
   5  Prefactor     42.840        44.159       -.13224E-05    .97715E-04
   6  Prefactor     .10000E-03    10.657        .52505E-06** at limit **
   7  Prefactor     .10000E-03    21.347        .12083E-05** at limit **
   8  norm          .85271        .87047        .34728E-07   -.52293E-04
   9  Prefactor     .10000E-03    3.6748        .23120E-06** at limit **
  10  Prefactor     .10000E-03    23.597       -.39517E-07** at limit **
  11  norm          49.600        13.113       -.72274E-06   -.43040E-03
  12  Prefactor     .10002E-03    7.1629        .11846E-05** at limit **
  13  Prefactor     .10000E-03    111.95       -.21180E-05** at limit **
  14  Prefactor     .10000E-03    4.1448       -.95506E-07** at limit **
  15  Prefactor     .10000E-03    26.064        .39442E-06** at limit **
  16  norm          .10000E-03    4.7501        .53245E-07** at limit **
  17  norm          .10000E-03    11.317       -.39856E-06** at limit **
  18  Prefactor     8.1729        4.8232        .12040E-06   -.71315E-04
  19  Prefactor     49.291        31.345       -.11911E-06    .18732E-04
  20  Prefactor     .99320        10.870        .67172E-06   -.50820E-04
  21  Prefactor     .10000E-03    6.3300        .77842E-07** at limit **
  22  Normalizat    1.4566        .20135       -.46326E-06   -.34469E-03
  23  Prefactor     .59988        .12805       -.67071E-06   -.21006E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.402991
  norm       = 0.000100191
  norm       = 0.589163
  Prefactor  = 0.0001
  Prefactor  = 42.8404
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.852712
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 49.5996
  Prefactor  = 0.00010002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.1729
  Prefactor  = 49.2908
  Prefactor  = 0.993199
  Prefactor  = 0.0001
  Normalizat = 1.45663
  Prefactor  = 0.599883
 **********
 **   18 **HESSE 
 **********

 FCN=   6639.092     FROM HESSE     STATUS=OK           370 CALLS     2954 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .40299        120.74        .47283E-02   -1.5581    
   2  norm          .10019E-03    17.471        .15637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .58916        2.9928        .27136E-03   -1.5554    
   4  Prefactor     .10000E-03    3.7119        .15304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     42.840        43.993        .61228E-04   -1.4398    
   6  Prefactor     .10000E-03    10.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .85271        .83116        .74172E-03   -1.5523    
   9  Prefactor     .10000E-03    3.6882        .15265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          49.600        12.865        .56937E-04   -1.4298    
  12  Prefactor     .10002E-03    27.728        .39407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    111.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.1499        .16185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    26.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.7537        .17344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.1729        4.8201        .13049E-03   -1.5136    
  19  Prefactor     49.291        31.334        .57115E-04   -1.4303    
  20  Prefactor     .99320        45.475        .51232E-02   -1.5509    
  21  Prefactor     .10000E-03    6.3444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4566        .22942        .24965E-03   -.79004    
  23  Prefactor     .59988        .14675        .24708E-03   -1.0759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6588e-08
Minuit parameter uncertainties:
  1  13.9779
  2  0.00365273
  3  2.65574
  4  6.97458e-06
  5  44.026
  6  8.35154e-07
  7  1.41116e-05
  8  0.831168
  9  1.18676e-05
  10  4.58672e-05
  11  12.8661
  12  0.00149319
  13  0.000659066
  14  1.62071e-06
  15  0.000155572
  16  6.92505e-07
  17  2.0853e-05
  18  4.82029
  19  31.3446
  20  13.4512
  21  7.30129e-07
  22  0.22958
  23  0.146844
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  9.932e-01  1.345e+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:  5.999e-01  1.468e-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.457e+00  2.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/153496/likelihoodResults_491529601_491788801_4FGL_J2349.4+0534_daily_bin973.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) = 6639.08611971
delta logL = 0.00563171969225

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6639.07916743
delta logL = 0.0125839980192

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0259       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0604       1.0000          .0000       10.000    
     3 'Normalizat'    1.4584       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59776       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6639.079     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      282 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0352        28.124        .23329E-03   -.40389E-03
   2  Index         2.0593        1.8849        .14172E-01   -.24773E-03
   3  Normalizat    1.4584        .21735        .24953E-03   -.10120E-02
   4  Prefactor     .59777        .14605        .24749E-03   -.39607E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.03523
  Index      = 2.05934
  Normalizat = 1.45838
  Prefactor  = 0.597769
 **********
 **   18 **HESSE 
 **********

 FCN=   6639.079     FROM HESSE     STATUS=OK            23 CALLS      305 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0352        27.025        .93315E-05   -1.5360    
   2  Index         2.0593        1.8515        .56688E-03   -.62875    
   3  Normalizat    1.4584        .21746        .49906E-04   -.78955    
   4  Prefactor     .59777        .14611        .98994E-05   -1.0768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57128e-08
Minuit parameter uncertainties:
  1  18.1243
  2  1.92321
  3  0.217598
  4  0.146201
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153496': 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) = 6639.07916721
delta logL = 0.0125842108173

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  3.035e+00  1.812e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.059e+00  1.923e+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:  5.978e-01  1.462e-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.458e+00  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 357.356 5.579

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/153496/cmap_HighResolution_491529601_491788801_4FGL_J2349.4+0534_daily_bin973.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.00e-03', job_status='DONE', photon_flux_upper_limit='7.73e-08', time_completed='2021-09-30 07:02:52.196128', job_id='153496', GAL2='0.60', fit_tolerance='1e-08', EG2='1.46', EG='1.46', time_epoch_completed='1633010572.2', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='1.26e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='973' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:02:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 153496: <4FGL_J2349.4+0534_daily_bin973> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin973 357.356 5.579 491529601 491788801 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 :                                   678.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            738 sec.

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

